ThreatLens
Perform evidence-based static security audits for application code, cloud configs, and infrastructure manifests.
$11.99
Works with the AI Agents you already use
ThreatLens
Example session with this skill installed
Perform a security audit on this Node.js Express snippet and the associated Dockerfile to check for common web vulnerabilities and misconfigurations.
- Read your context and instructions
- Compiled the threatlens
I have completed a static security audit of the provided Node.js and Docker configuration. The analysis identified three high-priority findings related to input handling and container permissions.
Security Summary
The audit detected potential SQL injection due to unsanitized input and a container running with elevated privileges. While authentication logic appears sound, the infrastructure layer requires hardening.
Findings
| ID | Severity | Confidence | Area | Location | Finding |
|---|---|---|---|---|---|
| SEC-01 | High | High | Injection | app.js:42 | Direct concatenation of req.query.id into SQL string. |
| SEC-02 | Medium | High | Config | Dockerfile:4 | Container running as root user. |
| SEC-03 | Low | Medium | Headers | app.js:12 | Missing Content-Security-Policy and X-Frame-Options. |
Remediation
SEC-01: SQL Injection
Replace string concatenation with parameterized queries or an ORM.
// Before
const user = await db.query("SELECT * FROM users WHERE id = " + req.query.id);
// After
const user = await db.query("SELECT * FROM users WHERE id = $1", [req.query.id]);
SEC-02: Root Container
Add a non-privileged user to your Dockerfile to follow the principle of least privilege.
RUN groupadd -r nodejs && useradd -r -g nodejs nodejs
USER nodejs
Verification Plan
- Attempt a manual Boolean-based SQL injection on the
/userendpoint. - Run
docker inspecton the built image to verify theUserfield is not empty or root. - Use a browser inspector to verify security headers are present in API responses.
Next steps
- Apply the parameterized query fix to all database interaction logic.
- Update the Dockerfile to use a non-root user.
- Add the
helmetmiddleware to the Express app for automated header management.
Connects securely to your tools. The creator never sees your data.
About this skill
Manual security reviews are slow and prone to oversight. This skill automates the detection of critical vulnerabilities in your source code, configuration files, and infrastructure manifests using a structured, evidence-based approach.
What it does
- Vulnerability detection identifies SQL injection, XSS, CSRF, and path traversal risks.
- Access control audit evaluates authentication and authorization logic for bypasses.
- Secret scanning flags hardcoded credentials, API keys, and private tokens.
- Config analysis reviews CORS policies, security headers, and debug settings.
- Remediation mapping provides specific code fixes for every identified risk.
How it works
- Analyze scope by scanning the provided repository, files, or snippets for attack surface.
- Identify flaws across specific categories like input handling and data exposure.
- Classify risks using severity and confidence levels based on code evidence.
- Generate report including a findings table and a structured verification plan.
Frameworks & tools
Works with any language or configuration format including JavaScript/TypeScript, Python, Go, Java, Dockerfiles, Kubernetes manifests, and Terraform HCL.
Why this beats prompting it yourself
Generic prompts often miss context-specific logic flaws or produce vague "hallucinated" vulnerabilities. This skill enforces a strict evidence-based methodology, requiring specific file locations and confidence scores to reduce noise and false positives.
Use cases
- Audit a Pull Request for security regressions before merging to main.
- Review infrastructure-as-code files for overly permissive permissions.
- Conduct a pre-deployment check on API authentication and rate-limiting logic.
- Identify sensitive data leakage in logs or error handling routines.
Known limitations
Static analysis cannot identify runtime-only vulnerabilities or complex multi-step logic exploits. Findings marked with NEEDS VERIFICATION require manual review of execution context.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.
Cannot perform dynamic testing or penetration testing. Requires source code or config files; cannot analyze compiled binaries without metadata.
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
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 2 months ago
Permissions
No special permissions declared or detected