Threat-model your app with your own AI agent
Pick a security category, copy the prompt, and paste it into the AI coding agent you already use (Claude Code, Cursor, Codex…). It reads your codebase and produces a two-part report: an audit of your code that finds the security bugs and integrity flaws, and the runtime detections & mitigations to build — so you harden security at both the code level and the runtime level.
What is threat modeling — in plain words
Threat modeling is asking, for one area of your app: “what could an attacker do here, and are we protected?” — then writing it down as a checklist of concrete threats, each mapped to the fix and the way you’d detect it. Instead of doing that by hand, you hand a focused, expert prompt to your AI agent and it does the legwork against your actual repo. You get two complementary outputs:
Find the threats & bugs in your code
The Code Findings report audits your real files and lists each weakness with a file:line, the exact risk, a severity, and the described fix — missing auth checks, injection sinks, leaked secrets, unpinned dependencies, weak CSP, and more. It’s an audit: it describes fixes, it never edits your code.
Build the detections & defenses at runtime
The Detection & Mitigation report is the operational runbook: ready-to-run rules that catch the attack in live traffic, plus the edge controls to contain it (firewall, rate-limit, challenge, block, revoke). Code fixes close the hole; runtime detection catches anyone who tries — together that’s robust security at the code and runtime level.
How it works — 4 steps, a couple of minutes
- 1
Install SecureNow in your project
In your repo’s terminal. (Optional but recommended:
npx securenow loginconnects it to your free trial so the prompt can ground its rules in your real setup.)$ npm install securenow$ npx securenow login - 2
Copy a category’s prompt
Pick any of the 25 categories below and hit Copy prompt.
- 3
Paste it into your AI coding agent
Open Claude Code, Cursor, Codex (or similar) at the root of your project and paste. The agent inventories your code, enumerates the threats, and audits your files — all in your environment.
- 4
Open the report it generates locally
It writes four files into a new
threat/<category>/folder in your repo — two Markdown reports and two self-contained HTML pages. Just double-click the…-code-findings.htmland…-detection-mitigation.htmlto open them in your browser — no server, no internet needed.threat/<category>/
├─ <category>-code-findings.html # the code audit (open this)
├─ <category>-code-findings.md
├─ <category>-detection-mitigation.html # rules & defenses (open this)
└─ <category>-detection-mitigation.md
🔒 No repository upload to SecureNow is required
Use the prompt with the coding agent you choose against your project. Your agent, its provider, and its tools determine where code is processed and whether data is shared. Review their permissions and data policies before running an audit. SecureNow setup and CLI/MCP commands can make network calls. The prompts request self-contained HTML reports that can be opened offline; review the generated output and keep sensitive findings in an environment you control.
- ✓ No repository upload to SecureNow required
- ✓ Reports are offline, self-contained HTML
- ✓ It audits and describes fixes — never edits your code
- ✓ Works on any stack the agent can read
Browse the 25 threat categories
Each is a self-contained, copy-paste prompt mapped to OWASP / API / LLM frameworks. Copy one, or open it to read the full prompt first.
Web app· 12
Authentication
Login, sessions, password reset, MFA, and account-takeover paths.
Authorization
BOLA/IDOR, broken function-level auth, mass assignment, privilege escalation, multi-tenant.
XSS / CSRF / CORS
Client-side injection, cross-site request forgery, and cross-origin misconfiguration.
Client-Side Supply Chain
Magecart, tag managers, analytics pixels, CDN scripts, and SRI/CSP on shipped code.
Injection (SQLi / RCE / SSTI)
SQL/NoSQL injection, command injection, SSTI, and path traversal — server-side sinks.
OAuth / SSO / Integrations
OIDC/SAML flows, PAT/API tokens, and third-party app access & consent.
Admin & Support Tools
Internal consoles, impersonation, bulk operations, and support back-doors.
Payment & Business Logic
Checkout, refunds, coupons, race conditions, and money-flow abuse.
File Upload / Download
Ingest, media processing, and serving of user-supplied files.
Messaging & Notifications
Email/SMS/push abuse, toll-fraud, spoofing, and outbound-comms flows.
Rate Limits & Abuse
Flooding, scraping, enumeration, and bot anti-automation.
Legacy Endpoints
Deprecated, shadow, and non-prod routes — inventory drift.
API· 4
API Security — OWASP API Top 10
The full OWASP API Security Top 10 (2023) for your HTTP/REST surface.
GraphQL Security
Introspection, query cost/depth, batching, and resolver authorization.
Webhooks
Inbound signature/replay verification and outbound SSRF on dispatch.
Realtime — WebSocket / SSE
Long-lived & streaming connections: authz, resource use, message abuse.
Cloud / Serverless / Infra· 5
Serverless & Edge
FaaS & edge functions, event-source injection, and denial-of-wallet.
Cloud Infrastructure
Network/SG, compute, containers/k8s, and IaC misconfiguration.
Secrets & Cloud IAM
Key exposure, IAM role escalation, assume-role chains, and IMDS-SSRF.
DNS / TLS / Certificates
Subdomain takeover, certificate posture, and transport trust.
Supply Chain & CI/CD
Dependency integrity, pipeline injection, and artifact signing & provenance.
Platform / Cross-cutting· 3
Storage & Logs
Object storage and telemetry: at-rest access and log leakage.
Data Privacy / PII
PII inventory, redaction, retention, and over-returned response fields.
Secret & API-Key Hygiene
Secret-leak detection across code, history, bundles & logs — rotation & vaulting.
AI / LLM· 1
AI / LLM Features
Prompt injection, agents & tools, RAG, and denial-of-wallet.
Find the bugs. Build the defenses. Both, free.
Start with one category that matters most for your app — authentication, payments, or your API surface — and work outward. When you’re ready to catch these threats live, SecureNow turns the detections into running rules — 14-day free trial, then $99 per app per month.