- Home
- Skills
- Frontend & Web Apps
- Zero-Trust Frontend Security Audit
Works with the AI Agents you already use
Zero-Trust Frontend Security Audit
Adversarial frontend security audit: 202-item catalog, auditor → refuter → judge, zero-trust backend.
Free
Zero-Trust Frontend Security Audit
Example session with this skill installed
Do a full security audit of this Next.js frontend. Start with the deterministic recon so I can see the raw candidates.
- Read your context and instructions
- Compiled the zero-trust frontend security
- Generated the document
Summary
Recon and candidate scan finished on the react-next test fixture that ships with the skill (18 files). The scanner produced
24 candidates and the dependency checker
8 findings, including a
malicious axios release. These are candidates, not findings yet: next, each one goes through the auditors, the independent refuter and the judge.
Dependencies (check-deps.mjs)
| Severity | Package | Issue |
|---|---|---|
| critical | axios@1.14.1 | Malicious publish (MAL-2026-2307) pulling a postinstall RAT. Remove, reinstall from a clean lockfile, rotate credentials |
| critical | next@15.2.0 | CVE-2025-66478, React2Shell (RSC RCE) |
| critical | next@15.2.0 | CVE-2025-29927, middleware bypass via x-middleware-subrequest |
| high | next@15.2.0 | CVE-2025-55184, RSC DoS / source exposure |
| medium | dompurify@3.3.1 | CVE-2026-0540, rawtext elements sanitization bypass |
| medium | (hygiene) | No lockfile; .npmrc without ignore-scripts=true |
Top code candidates (scan.mjs)
| ID | Sev | Catalog | Location | Pattern |
|---|---|---|---|---|
| C-0001 | high | FE-DATA-001 | .env:2 | Secret-looking variable with NEXT_PUBLIC_ prefix |
| C-0024 | high | FE-SSR-006 | app/profile/page.tsx:7 | Server-side fetch of a request-controlled URL |
| C-0017 | high | FE-MSG-001 | components/Bridge.tsx:7 | message listener without exact origin check |
| C-0016 | high | FE-XSS-001 | components/Bridge.tsx:9 | innerHTML = e.data.html |
| C-0019 | high | FE-FW-001 | components/NotificationList.tsx:13 | dangerouslySetInnerHTML with API data |
| C-0015 | medium | FE-URL-002 | lib/redirect.ts:4 | Open redirect from ?next= |
| C-0011 | medium | FE-AUTH-001 | lib/auth.ts:5 | Access token in localStorage |
| C-0010 | medium | FE-ZT-010 | lib/auth.ts:10 | Decoded JWT claims used for authorization |
| C-0003 | medium | FE-HDR-002 | next.config.js:14 | CSP with 'unsafe-inline' 'unsafe-eval' |
…plus 15 more medium candidates (unvalidated API casts, CSPT in API paths, Math.random nonce, wildcard next/image host, auth only in middleware).
Next steps
fe-reconbuilds the threat model, then 6fe-auditoragents sweep the categories in parallel and promote candidates only with a cited source → sink trace.fe-refuterchallenges every claim; disputes go tofe-judge.- You get
report.md+findings.sarifin.frontend-security-audit/, then approve the IDs you want fixed andfe-fixerapplies and re-verifies them.
page.tsx
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Generic AI security reviews treat the frontend as an afterthought: they assume "React escapes everything", downplay open redirects and prototype pollution, and accept "the backend sanitizes it" as a defense. This skill runs an adversarial, evidence-based audit of your frontend codebase and assumes your backend is already compromised.
Built by Antonio Luis Rossi, author of Segurança Front-end (Casa do Código). Open source (MIT): https://github.com/luisrossi/frontend-security-agent-skills
What it does
- 202-entry vulnerability catalog in 21 categories (DOM XSS, framework escape hatches, URL/navigation, postMessage, prototype pollution, CSP/Trusted Types, CORS/CSRF/XS-Leaks, auth/session, OAuth/OIDC in SPAs, sensitive data exposure, SSR/RSC, supply chain, LLM output rendering and more), each mapped to CWE, OWASP Top 10 2025 and ASVS 5.0 with detection, validation, false-positive conditions and fix code.
- Auditor → refuter → judge pipeline. Parallel category auditors must cite a source → sink trace (
file:line). An independent refuter, who never sees the auditor's reasoning, tries to kill each finding with concrete evidence. Disputes go to a one-round judge. - Dependency risk triage. Combines Dependabot alerts,
npm audit, OSV and a curated list of malicious releases, then checks whether the vulnerable functions are actually reachable in your app. Returns a P0–P3 upgrade plan. - Deterministic tooling (Node 18+, zero dependencies): stack detector, candidate scanner (147 rules), dependency checker, security header evaluator, SARIF 2.1.0 exporter, Markdown report and a loopback-only Playwright PoC runner.
- Fixes only with your approval, then re-verified.
Frameworks
React/Next.js, Vue/Nuxt, Angular, Svelte/SvelteKit, Astro, vanilla JS/jQuery/Lit/htmx, plus playbooks for 15 high-risk libraries (axios, lodash, DOMPurify, marked, markdown-it, react-markdown, qs, jwt-decode, js-cookie, socket.io, pdf.js and others).
Safety
The audit writes only to .frontend-security-audit/ in your project. PoCs use benign canaries and run only against loopback URLs you provide. Nothing is sent to third-party or production systems.
Known limitations
Requires Node.js 18+. Not for backend-only code, mobile native apps, IaC or smart contracts. Subagent parallelism needs an agent with subagents (e.g. Claude Code); other agents run the same roles sequentially.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Frontend & Web Apps.
Requires Node.js 18+. Audits are restricted to frontend code; backend, native mobile, and smart contracts are out of scope. Dynamic PoCs require a local URL.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
1 use
Times used to date
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 25 days ago
- Free with an Agensi account
- Accounts
GitHub
Osv
- Software
Node.js 18+@lavamoat/allow-scriptsretirelockfile-lintzizmor@cyclonedx/cyclonedx-npmgitleaksfix-react2shell-next
Git
- Optional
- Playwrightosv-scanner
GitHub CLI
Permissions
Allowed Hosts
Shell: runs the bundled Node.js scripts (scanner, dependency/header checks, report). Read files: audits your source code. Write files: writes only to .frontend-security-audit/; project files change only for fixes you approve. Network: optional OSV / GitHub Dependabot lookups and header checks. Browser: optional Playwright PoCs, loopback URLs only.