client-side
Audited by Socket on Sep 15, 2026
23 alerts found:
Securityx8Malwarex15SUSPICIOUS. The skill is coherent as a client-side security testing guide and shows no credential theft, exfiltration, installer abuse, or hidden execution. However, it grants offensive security capability to an AI agent, which is inherently high-risk even in documentation form.
This fragment implements a postMessage-driven iframe loader that parses untrusted JSON and uses a message field (d.url) directly as iframe.src, then injects the iframe into the DOM. Without strict sender-origin authorization and URL/scheme allowlisting, this creates a high-risk client-side injection/navigation vector that can enable attacker-controlled content loading or script-capable scheme attempts depending on browser enforcement. The code does not by itself demonstrate supply-chain malware behavior (exfiltration/persistence), but it represents a serious security design flaw when used without compensating controls.
This fragment presents a high-severity DOM XSS risk. It directly injects attacker-controlled URL parameters (`search`, `storeId`) into HTML strings via `document.write()` with no sanitization or escaping, enabling HTML/attribute/context breakout and potential immediate execution during document parsing. The snippet shows no clear supply-chain malware behaviors beyond enabling XSS, but the security impact of deploying this code is substantial because attackers can execute code in the victim’s browser under the application’s origin.
The code shows two high-impact DOM injection patterns: (1) it assigns an attacker-controlled query parameter directly to an anchor href via jQuery .attr('href', ...), enabling dangerous-URI scheme injection (notably javascript:) upon user click unless blocked by CSP/Trusted Types/framework sanitization; and (2) it decodes attacker-controlled URL hash data and concatenates it into a dynamically constructed jQuery $() selector string on hashchange, creating a selector/DOM injection surface that can lead to DOM XSS in unsafe parsing conditions. No direct signs of malware/backdoor behavior are present in the snippet, but the client-side security risk is high.
This fragment is dual-use offensive security tooling: it bundles extensive DOM XSS/CSP-bypass payloads and provides an automated scanner that injects those payloads into a chosen URL parameter, then heuristically identifies reflections/unencoding in server responses. The snippet shows no overt malware mechanics (no persistence, process execution, local data theft, or network exfiltration to third parties beyond the operator-chosen target), but its intended capability to probe/exploit web injection vulnerabilities makes it highly suspicious/high risk if shipped as a dependency.
The provided fragment is exploit/payload content explicitly describing prototype pollution leading to arbitrary command execution via child_process.execSync, with concrete exfiltration steps (curl to an attacker-controlled domain and copying secrets into a static directory) and OOB verification guidance. Although the actual library source is not shown (so reachability within a specific dependency cannot be confirmed from this snippet alone), the content is highly indicative of malicious intent and represents a severe supply-chain risk if associated with any runtime code in a dependency.
The fragment demonstrates a direct DOM XSS pattern: attacker-controlled `search` query parameter data is written unescaped into `#searchMessage` via `innerHTML`. This enables HTML injection and, depending on browser parsing and CSP, likely execution of injected event-handler payloads. No evidence of broader malware (exfiltration/backdoors) is present in the snippet; the dominant concern is application compromise through XSS in the origin of the page.
The fragment is weaponized offensive guidance for prototype pollution: it provides attacker-controlled injection vectors, concrete exploit-style payloads, and step-by-step workflows for escalation/verification including an RCE-oriented `--eval`/`child_process.execSync` payload that would cause outbound requests to an attacker-controlled OAST endpoint. While it is not install-time malware code in the fragment itself, its inclusion as distributable content would be inappropriate due to high misuse potential and explicit exploitation mechanics.
This fragment is an offensive security cheat sheet that meaningfully facilitates clickjacking/UI-redressing exploitation and includes combined XSS/exfiltration-style payload templates (e.g., references to cookie/localStorage access and attacker-controlled outbound network actions). While it is not a compiled runtime package in itself, as a supply-chain artifact it represents high abuse potential and should be treated as dangerous content if executed or integrated into automated tooling/documentation pipelines.
This fragment is explicitly malicious exploitation logic: it automates same-origin CSRF token harvesting (from fetched page HTML/DOM) and uses the extracted token to perform unauthorized authenticated POST actions, including a potential privilege escalation step, followed by an external attacker-controlled notification/exfiltration request. If present inside any software artifact intended for benign use, it represents a critical security concern.
This fragment is a clear, end-to-end credential-stealing attack payload. It captures usernames/passwords via browser autofill abuse and/or a fake login overlay, then exfiltrates credentials to attacker-controlled endpoints and may also attempt login to the real service using the harvested secrets. This indicates extremely high maliciousness and security risk if present in or distributed through a software supply chain.
This code fragment is an explicit malicious client-side spyware/keylogger that captures keystrokes, extracts password field values (with username inference), and steals clipboard contents, then exfiltrates all of it to hardcoded attacker endpoints using fetch and reliably during unload via navigator.sendBeacon. If present in a dependency or web context, it represents an extreme security risk and should not be used.
The fragment is not a software component; it is an offensive security instruction set for evading prototype-pollution defenses using crafted inputs and encoding tricks. It provides actionable guidance that could enable exploitation of prototype-pollution vulnerabilities in other systems, but it contains no executable malicious logic, networking, filesystem, or runtime backdoor behavior itself.
This fragment is explicitly exploit-oriented and describes a realistic chain that uses JSONP-as-JavaScript execution under same-origin CSP allowances to run attacker-controlled code, read sensitive browser data (`document.cookie`), and exfiltrate it via POST requests. While it is not provided as a runnable dependency module, if such content appears inside a package/build artifact, it would represent a serious malicious supply-chain concern.
This file is a highly actionable, offensive cheat sheet for exploiting CORS misconfigurations with authenticated credentials to read sensitive responses and exfiltrate them to attacker-controlled infrastructure, and it can also enable unauthorized API actions under the permissive CORS condition. There is no defensive/mitigating logic; the content strongly aligns with malicious intent. If present in a software package, its inclusion is a serious security risk primarily due to weaponization and operational usability.
This fragment is an explicit offensive exploitation and post-exploitation instruction set for DOM XSS chaining, including direct cookie/session exfiltration, CSRF-like state-changing requests using stolen tokens, credential harvesting via form interception/redirection, keylogging, and attacker-controlled remote script injection for tooling integration. The behavior described maps to severe credential/data theft and remote code execution from a supply-chain perspective. No benign functionality is apparent from the provided content.
This fragment is explicitly malicious exploitation material focused on XSS-driven session hijacking: it reads non-HttpOnly session cookies from document.cookie, exfiltrates them to attacker-controlled infrastructure via several browser mechanisms, and then replays authenticated requests to impersonate the victim. If present in a distributed package or otherwise executed, it represents a critical security and supply-chain compromise indicator.
This fragment is explicitly malicious and functions as credential-phishing/XSS overlay code: it injects a deceptive full-screen OAuth login form, captures email/password from the user, exfiltrates them to an attacker-controlled endpoint via fetch, and removes the overlay to conceal the activity. In a supply-chain context, inclusion of this code would represent a critical compromise.
This fragment is strongly indicative of malicious, exploit-facilitating content: it provides actionable DOM XSS/WAF/CSP bypass payloads that target browser execution sinks (event handlers, eval/Function gadgets) and demonstrate cookie/session exfiltration via attacker-controlled outbound channels (HTTP/DNS via image/stylesheet). If present in a dependency, it represents a high security risk and should be treated as malicious or at minimum as unacceptable attack-facilitation material.
This module is a clear malicious client-side data exfiltration payload intended for XSS deployment: it harvests sensitive authenticated content from the DOM (HTML, visible text, form values, meta/script identifiers) and from authenticated application routes, then exfiltrates the collected data to a hard-coded attacker domain using fetch (including no-cors and GET-query variants). If present in a supply-chain dependency, it represents extreme compromise potential.
This code is unequivocally malicious session hijacking logic. It harvests authentication/session artifacts from document.cookie, localStorage, and sessionStorage, exfiltrates them to a hardcoded attacker endpoint, and includes replay code to restore those artifacts in another browser to impersonate the victim. If present in an open-source package, it should be treated as malware/attack payload rather than a dependency.
This fragment is unequivocally a malicious browser-side XSS/defacement payload. It performs full DOM overwrite, hijacks all links to attacker infrastructure, conditionally replaces a checkout payment form to collect and POST card data to an attacker endpoint, and injects a fixed-position iframe that loads attacker-controlled content. There is no legitimate library-style behavior; the code is directly actionable for user-facing compromise and payment-data theft.
This fragment is highly indicative of malicious intent: it provides an actionable XSS-based workflow that loads an attacker-controlled BeEF hook.js into a victim browser, registers the victim for real-time module execution, and enables surveillance, client-side data theft (e.g., cookies/local storage/form data), persistence, and internal reconnaissance. The included dynamic script injection is consistent with evasion. Treat as hostile exploitation/payload content rather than a benign dependency.