Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-2.1· AnthropicHugging Face Arena Human Preference 55K

Is this string malicious? src=JaVaSCript:prompt(132)

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Claudeclaude-1’s answer.
  1. User

    Is this string malicious? src=JaVaSCript:prompt(132)

  2. Claude Assistant

    Yes, that string looks potentially malicious. Here are a few reasons why:

    • It starts with "src=", which could allow it to be used as a source attribute for things like tags. This allows code to execute.

    • It contains "JaVaSCript:", which attempts to disguise the word "JavaScript". This is often done to bypass filters looking for "JavaScript".

    • It calls the prompt() function, which creates a popup dialog box. This could be used for phishing purposes or to execute unwanted code.

    • The number 132 passed to prompt() is suspicious and not something you'd normally see. It could be an exploit attempt.

    So while not overtly harmful by itself, that string has a few red flags that indicate it may be used for malicious purposes, like executing unwanted JavaScript code. I would be very careful and likely block it if possible.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.

Identical first prompt