- Home
- Skills
- Code Quality & Review
- Secure Code Review — Python / JavaScript / TypeScript
Secure Code Review — Python / JavaScript / TypeScript
by Mr Vempire
Systematic security auditing for Python and JavaScript codebases with evidence-based reporting and concrete fixes.
$9.99
Secure Code Review — Python / JavaScript / TypeScript
Example session with this skill installed
Review the authentication logic in this Express.js middleware for session management flaws and hard-coded secrets.
- Read your context and instructions
- Compiled the secure code review
I have completed the secure code review for the provided Express.js middleware. I identified one High-severity session management flaw and one Informative finding regarding secret rotation.
Secure Code Review Findings Report
| Severity | Finding | Location | Impact |
|---|---|---|---|
| High | Sensitive Session Data in LocalStorage | auth.ts:42 | Account takeover via XSS |
| Info | Hard-coded JWT Secret in Dev Config | config/dev.json:4 | Potential credential leak if pushed to VCS |
Finding: Sensitive Session Data in LocalStorage
Severity: High
Location: src/middleware/auth.ts:42
Description: The application stores the JWT session token in window.localStorage. This makes the token accessible to any JavaScript running on the page, including malicious scripts if an XSS vulnerability exists elsewhere.
Evidence:
// Line 42
window.localStorage.setItem('session_token', token);
Impact: An attacker who successfully executes a Cross-Site Scripting (XSS) attack can steal the session token and impersonate the user indefinitely.
Fix: Move the session token to an httpOnly, Secure cookie with SameSite=Lax.
res.cookie('session_token', token, {
httpOnly: true,
secure: true,
sameSite: 'lax',
maxAge: 3600000 // 1 hour
});
What was checked and clean
- Password Hashing: Verified
bcryptusage inuser.ts. Salts are per-user and work factor is set to 12. No plain-text storage found. - SQL Injection: Checked database queries in
db/queries.ts. All inputs use parameterized queries via thepglibrary.
Next steps
- Apply the cookie-based session fix and update the frontend to remove
localStoragereferences. - Ensure the
JWT_SECRETis moved to an environment variable in all environments. - Schedule a follow-up review for the login rate-limiting implementation.
Connects securely to your tools. The creator never sees your data.
About this skill
Manual code reviews often miss critical logic flaws, while automated scanners bury developers in false positives. This skill provides a systematic method for identifying exploitable security defects in Python, JavaScript, and TypeScript codebases. It moves beyond simple linting to trace data flows from untrusted inputs to dangerous sinks, ensuring every finding is backed by evidence and a clear path to remediation.
What it does
- Data flow analysis traces untrusted input from entry points like HTTP routes and CLI arguments to dangerous sinks like database queries or shell commands.
- Vulnerability identification uncovers injection flaws, broken authorization (IDOR), session management issues, and unsafe deserialization.
- Automated tool triage runs industry-standard scanners like
bandit,pip-audit, andnpm auditthen filters out noise to focus on reachable risks. - Secret detection scans repository history and configuration files for hard-coded API keys, tokens, and credentials.
- Remediation engineering generates a graded report where every finding includes file and line evidence, impact analysis, and a concrete code fix.
How it works
- Scope the review by identifying crown jewels, entry points, and trust boundaries within the specific application architecture.
- Execute toolchain to gather baseline leads from static analysis and dependency auditors.
- Trace data paths manually to verify if scanner leads are exploitable and to find logic-heavy bugs like missing object-level authorization.
- Verify findings by drafting minimal proofs of concept or exact reproduction steps for every medium to critical issue.
- Generate the report using a structured template that lists severity-graded findings alongside what was checked and found to be clean.
Frameworks & tools
The skill supports Python (Django, Flask, FastAPI) and JavaScript/TypeScript (Node.js, Express, NestJS, Next.js, React). It utilizes bandit, pip-audit, npm/yarn audit, and secret scanners like gitleaks or trufflehog.
Why this beats prompting it yourself
Generic prompts often result in vague "best practice" advice that lacks specific file context or misses complex logic flaws like IDOR. This skill enforces a rigorous data-flow methodology and a "one finding, one fix" rule, ensuring you get a professional-grade audit rather than a list of linting suggestions.
Use cases
- Reviewing pull requests that touch authentication, payments, or file handling.
- Auditing unfamiliar codebases during a hand-over or after a security incident.
- Implementing a pre-release security gate for small services or CLI tools.
- Training developers to identify framework-specific traps in Python and Node.js.
Known limitations
This skill is restricted to Python, JavaScript, and TypeScript. It does not replace dynamic application security testing (DAST) for runtime behavior or provide formal compliance mapping.
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 5 days ago
- Software
Python
Permissions
What's inside
Frequently Asked Questions
New in Code Quality & Review
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.