# Mitm Security Audit

> Comprehensive security audit of mitmproxy traffic. Use when user wants to analyze captured HTTP traffic for vulnerabilities, or mentions pentesting, security testing, or vulnerability assessment.

- Skill: `instavm/mitm-security-audit` (Agent Skill)
- Install (CLI): `npx skillmds@latest add instavm/mitm-security-audit`
- Raw SKILL.md: https://api.skillmd.com/api/skills/instavm/mitm-security-audit/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- Author: instavm (https://skillmd.com/u/instavm)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/instavm/mitm-security-audit

---


# Security Audit of Captured Traffic

Perform a comprehensive security audit of the mitmproxy dump (log.txt) for: $ARGUMENTS

> **Requires**: `log.txt` in the current directory. If it's missing, capture traffic first:
> ```bash
> mitmdump --set flow_detail=3 2>&1 | tee log.txt
> ```

## Audit Checklist

Run these checks systematically:

### 1. Reconnaissance
- [ ] List all unique domains/subdomains seen
- [ ] List all API endpoints with methods
- [ ] Identify API patterns (REST, GraphQL, etc.)

### 2. Authentication & Session
- [ ] Check for missing authentication on sensitive endpoints
- [ ] Look for session tokens in URLs or GET params
- [ ] Check cookie security flags (Secure, HttpOnly, SameSite)
- [ ] Identify predictable session/token patterns

### 3. Authorization (IDOR)
- [ ] Find sequential/enumerable IDs in URLs
- [ ] Check for base64 encoded IDs (easy to decode/iterate)
- [ ] Look for user IDs, order IDs, transaction IDs
- [ ] Test if one user's token works for another's resources

### 4. Data Exposure
- [ ] PII in responses (email, phone, address)
- [ ] Partial/full credit card numbers
- [ ] Passwords or hashes in responses
- [ ] Internal IPs, file paths, stack traces

### 5. Secrets & Keys
- [ ] API keys in requests/responses
- [ ] Hardcoded tokens or salts
- [ ] Cloud credentials (AWS, GCP, Azure)
- [ ] Third-party service keys

### 6. Payment Security
- [ ] Checksum/hash validation on callbacks
- [ ] Amount manipulation possibilities
- [ ] Status parameter tampering
- [ ] Signature collision vulnerabilities

### 7. Input Validation
- [ ] OTP in response (should only be sent via SMS/email)
- [ ] Rate limiting on sensitive endpoints
- [ ] Enumerable endpoints without protection

### 8. Transport Security
- [ ] HTTP instead of HTTPS for sensitive data
- [ ] Missing security headers
- [ ] Referer leakage to third parties

## Output Format

For each finding, provide:
- **Endpoint**: The vulnerable URL/API
- **Vulnerability**: Type of issue
- **Evidence**: What was found in the traffic
- **Severity**: Critical/High/Medium/Low/Info
- **Recommendation**: How to fix

Prioritize findings by severity and exploitability.

