Vulnerability Scanner
Think like an attacker, defend like an expert. 2025 threat landscape awareness.
🔧 Runtime Scripts
Execute for automated validation:
| Script |
Purpose |
Usage |
scripts/security_scan.py |
Validate security principles applied |
python scripts/security_scan.py <project_path> |
📋 Reference Files
| File |
Purpose |
| checklists.md |
OWASP Top 10, Auth, API, Data protection checklists |
1. Security Expert Mindset
Core Principles
| Principle |
Application |
| Assume Breach |
Design as if attacker already inside |
| Zero Trust |
Never trust, always verify |
| Defense in Depth |
Multiple layers, no single point |
| Least Privilege |
Minimum required access only |
| Fail Secure |
On error, deny access |
Threat Modeling Questions
Before scanning, ask:
- What are we protecting? (Assets)
- Who would attack? (Threat actors)
- How would they attack? (Attack vectors)
- What's the impact? (Business risk)
2. OWASP Top 10:2025
Risk Categories
| Rank |
Category |
Think About |
| A01 |
Broken Access Control |
Who can access what? IDOR, SSRF |
| A02 |
Security Misconfiguration |
Defaults, headers, exposed services |
| A03 |
Software Supply Chain 🆕 |
Dependencies, CI/CD, build integrity |
| A04 |
Cryptographic Failures |
Weak crypto, exposed secrets |
| A05 |
Injection |
User input → system commands |
| A06 |
Insecure Design |
Flawed architecture |
| A07 |
Authentication Failures |
Session, credential management |
| A08 |
Integrity Failures |
Unsigned updates, tampered data |
| A09 |
Logging & Alerting |
Blind spots, no monitoring |
| A10 |
Exceptional Conditions 🆕 |
Error handling, fail-open states |
2025 Key Changes
2021 → 2025 Shifts:
├── SSRF merged into A01 (Access Control)
├── A02 elevated (Cloud/Container configs)
├── A03 NEW: Supply Chain (major focus)
├── A10 NEW: Exceptional Conditions
└── Focus shift: Root causes > Symptoms
3. Supply Chain Security (A03)
Attack Surface
| Vector |
Risk |
Question to Ask |
| Dependencies |
Malicious packages |
Do we audit new deps? |
| Lock files |
Integrity attacks |
Are they committed? |
| Build pipeline |
CI/CD compromise |
Who can modify? |
| Registry |
Typosquatting |
Verified sources? |
Defense Principles
- Verify package integrity (checksums)
- Pin versions, audit updates
- Use private registries for critical deps
- Sign and verify artifacts
4. Attack Surface Mapping
What to Map
| Category |
Elements |
| Entry Points |
APIs, forms, file uploads |
| Data Flows |
Input → Process → Output |
| Trust Boundaries |
Where auth/authz checked |
| Assets |
Secrets, PII, business data |
Prioritization Matrix
Risk = Likelihood × Impact
High Impact + High Likelihood → CRITICAL
High Impact + Low Likelihood → HIGH
Low Impact + High Likelihood → MEDIUM
Low Impact + Low Likelihood → LOW
5. Risk Prioritization
CVSS + Context
| Factor |
Weight |
Question |
| CVSS Score |
Base severity |
How severe is the vuln? |
| EPSS Score |
Exploit likelihood |
Is it being exploited? |
| Asset Value |
Business context |
What's at risk? |
| Exposure |
Attack surface |
Internet-facing? |
Prioritization Decision Tree
Is it actively exploited (EPSS >0.5)?
├── YES → CRITICAL: Immediate action
└── NO → Check CVSS
├── CVSS ≥9.0 → HIGH
├── CVSS 7.0-8.9 → Consider asset value
└── CVSS <7.0 → Schedule for later
6. Exceptional Conditions (A10 - New)
Fail-Open vs Fail-Closed
| Scenario |
Fail-Open (BAD) |
Fail-Closed (GOOD) |
| Auth error |
Allow access |
Deny access |
| Parsing fails |
Accept input |
Reject input |
| Timeout |
Retry forever |
Limit + abort |
What to Check
- Exception handlers that catch-all and ignore
- Missing error handling on security operations
- Race conditions in auth/authz
- Resource exhaustion scenarios
7. Scanning Methodology
Phase-Based Approach
1. RECONNAISSANCE
└── Understand the target
├── Technology stack
├── Entry points
└── Data flows
2. DISCOVERY
└── Identify potential issues
├── Configuration review
├── Dependency analysis
└── Code pattern search
3. ANALYSIS
└── Validate and prioritize
├── False positive elimination
├── Risk scoring
└── Attack chain mapping
4. REPORTING
└── Actionable findings
├── Clear reproduction steps
├── Business impact
└── Remediation guidance
8. Code Pattern Analysis
High-Risk Patterns
| Pattern |
Risk |
Look For |
| String concat in queries |
Injection |
"SELECT * FROM " + user_input |
| Dynamic code execution |
RCE |
eval(), exec(), Function() |
| Unsafe deserialization |
RCE |
pickle.loads(), unserialize() |
| Path manipulation |
Traversal |
User input in file paths |
| Disabled security |
Various |
verify=False, --insecure |
Secret Patterns
| Type |
Indicators |
| API Keys |
api_key, apikey, high entropy |
| Tokens |
token, bearer, jwt |
| Credentials |
password, secret, key |
| Cloud |
AWS_, AZURE_, GCP_ prefixes |
9. Cloud Security Considerations
Shared Responsibility
| Layer |
You Own |
Provider Owns |
| Data |
✅ |
❌ |
| Application |
✅ |
❌ |
| OS/Runtime |
Depends |
Depends |
| Infrastructure |
❌ |
✅ |
Cloud-Specific Checks
- IAM: Least privilege applied?
- Storage: Public buckets?
- Network: Security groups tightened?
- Secrets: Using secrets manager?
10. Anti-Patterns
| ❌ Don't |
✅ Do |
| Scan without understanding |
Map attack surface first |
| Alert on every CVE |
Prioritize by exploitability + asset |
| Ignore false positives |
Maintain verified baseline |
| Fix symptoms only |
Address root causes |
| Scan once before deploy |
Continuous scanning |
| Trust third-party deps blindly |
Verify integrity, audit code |
11. Reporting Principles
Finding Structure
Each finding should answer:
- What? - Clear vulnerability description
- Where? - Exact location (file, line, endpoint)
- Why? - Root cause explanation
- Impact? - Business consequence
- How to fix? - Specific remediation
Severity Classification
| Severity |
Criteria |
| Critical |
RCE, auth bypass, mass data exposure |
| High |
Data exposure, privilege escalation |
| Medium |
Limited scope, requires conditions |
| Low |
Informational, best practice |
Remember: Vulnerability scanning finds issues. Expert thinking prioritizes what matters. Always ask: "What would an attacker do with this?"
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
1---2name: vulnerability-scanner3description: "Advanced vulnerability analysis principles. OWASP 2025, Supply Chain Security, attack surface mapping, risk prioritization."4version: 1.0.05author:6 name: "sickn33 / Antigravity Community"7 github: sickn338tags: [vulnerability, scanner, security]9category: security10platforms: [macos, linux, windows]11license: MIT12metadata:13 hermes:14 source: https://skillmd.com/skills/nous-hermeshub/vulnerability-scanner15 upstream: "antigravity-awesome-skills"16 risk: "unknown"17 date_added: "2026-02-27"18 original_author: "Antigravity Community"19---2021# Vulnerability Scanner2223> Think like an attacker, defend like an expert. 2025 threat landscape awareness.2425## 🔧 Runtime Scripts2627**Execute for automated validation:**2829| Script | Purpose | Usage |30|--------|---------|-------|31| `scripts/security_scan.py` | Validate security principles applied | `python scripts/security_scan.py <project_path>` |3233## 📋 Reference Files3435| File | Purpose |36|------|---------|37| [checklists.md](checklists.md) | OWASP Top 10, Auth, API, Data protection checklists |3839---4041## 1. Security Expert Mindset4243### Core Principles4445| Principle | Application |46|-----------|-------------|47| **Assume Breach** | Design as if attacker already inside |48| **Zero Trust** | Never trust, always verify |49| **Defense in Depth** | Multiple layers, no single point |50| **Least Privilege** | Minimum required access only |51| **Fail Secure** | On error, deny access |5253### Threat Modeling Questions5455Before scanning, ask:561. What are we protecting? (Assets)572. Who would attack? (Threat actors)583. How would they attack? (Attack vectors)594. What's the impact? (Business risk)6061---6263## 2. OWASP Top 10:20256465### Risk Categories6667| Rank | Category | Think About |68|------|----------|-------------|69| **A01** | Broken Access Control | Who can access what? IDOR, SSRF |70| **A02** | Security Misconfiguration | Defaults, headers, exposed services |71| **A03** | Software Supply Chain 🆕 | Dependencies, CI/CD, build integrity |72| **A04** | Cryptographic Failures | Weak crypto, exposed secrets |73| **A05** | Injection | User input → system commands |74| **A06** | Insecure Design | Flawed architecture |75| **A07** | Authentication Failures | Session, credential management |76| **A08** | Integrity Failures | Unsigned updates, tampered data |77| **A09** | Logging & Alerting | Blind spots, no monitoring |78| **A10** | Exceptional Conditions 🆕 | Error handling, fail-open states |7980### 2025 Key Changes8182```832021 → 2025 Shifts:84├── SSRF merged into A01 (Access Control)85├── A02 elevated (Cloud/Container configs)86├── A03 NEW: Supply Chain (major focus)87├── A10 NEW: Exceptional Conditions88└── Focus shift: Root causes > Symptoms89```9091---9293## 3. Supply Chain Security (A03)9495### Attack Surface9697| Vector | Risk | Question to Ask |98|--------|------|-----------------|99| **Dependencies** | Malicious packages | Do we audit new deps? |100| **Lock files** | Integrity attacks | Are they committed? |101| **Build pipeline** | CI/CD compromise | Who can modify? |102| **Registry** | Typosquatting | Verified sources? |103104### Defense Principles105106- Verify package integrity (checksums)107- Pin versions, audit updates108- Use private registries for critical deps109- Sign and verify artifacts110111---112113## 4. Attack Surface Mapping114115### What to Map116117| Category | Elements |118|----------|----------|119| **Entry Points** | APIs, forms, file uploads |120| **Data Flows** | Input → Process → Output |121| **Trust Boundaries** | Where auth/authz checked |122| **Assets** | Secrets, PII, business data |123124### Prioritization Matrix125126```127Risk = Likelihood × Impact128129High Impact + High Likelihood → CRITICAL130High Impact + Low Likelihood → HIGH131Low Impact + High Likelihood → MEDIUM132Low Impact + Low Likelihood → LOW133```134135---136137## 5. Risk Prioritization138139### CVSS + Context140141| Factor | Weight | Question |142|--------|--------|----------|143| **CVSS Score** | Base severity | How severe is the vuln? |144| **EPSS Score** | Exploit likelihood | Is it being exploited? |145| **Asset Value** | Business context | What's at risk? |146| **Exposure** | Attack surface | Internet-facing? |147148### Prioritization Decision Tree149150```151Is it actively exploited (EPSS >0.5)?152├── YES → CRITICAL: Immediate action153└── NO → Check CVSS154 ├── CVSS ≥9.0 → HIGH155 ├── CVSS 7.0-8.9 → Consider asset value156 └── CVSS <7.0 → Schedule for later157```158159---160161## 6. Exceptional Conditions (A10 - New)162163### Fail-Open vs Fail-Closed164165| Scenario | Fail-Open (BAD) | Fail-Closed (GOOD) |166|----------|-----------------|---------------------|167| Auth error | Allow access | Deny access |168| Parsing fails | Accept input | Reject input |169| Timeout | Retry forever | Limit + abort |170171### What to Check172173- Exception handlers that catch-all and ignore174- Missing error handling on security operations175- Race conditions in auth/authz176- Resource exhaustion scenarios177178---179180## 7. Scanning Methodology181182### Phase-Based Approach183184```1851. RECONNAISSANCE186 └── Understand the target187 ├── Technology stack188 ├── Entry points189 └── Data flows1901912. DISCOVERY192 └── Identify potential issues193 ├── Configuration review194 ├── Dependency analysis195 └── Code pattern search1961973. ANALYSIS198 └── Validate and prioritize199 ├── False positive elimination200 ├── Risk scoring201 └── Attack chain mapping2022034. REPORTING204 └── Actionable findings205 ├── Clear reproduction steps206 ├── Business impact207 └── Remediation guidance208```209210---211212## 8. Code Pattern Analysis213214### High-Risk Patterns215216| Pattern | Risk | Look For |217|---------|------|----------|218| **String concat in queries** | Injection | `"SELECT * FROM " + user_input` |219| **Dynamic code execution** | RCE | `eval()`, `exec()`, `Function()` |220| **Unsafe deserialization** | RCE | `pickle.loads()`, `unserialize()` |221| **Path manipulation** | Traversal | User input in file paths |222| **Disabled security** | Various | `verify=False`, `--insecure` |223224### Secret Patterns225226| Type | Indicators |227|------|-----------|228| API Keys | `api_key`, `apikey`, high entropy |229| Tokens | `token`, `bearer`, `jwt` |230| Credentials | `password`, `secret`, `key` |231| Cloud | `AWS_`, `AZURE_`, `GCP_` prefixes |232233---234235## 9. Cloud Security Considerations236237### Shared Responsibility238239| Layer | You Own | Provider Owns |240|-------|---------|---------------|241| Data | ✅ | ❌ |242| Application | ✅ | ❌ |243| OS/Runtime | Depends | Depends |244| Infrastructure | ❌ | ✅ |245246### Cloud-Specific Checks247248- IAM: Least privilege applied?249- Storage: Public buckets?250- Network: Security groups tightened?251- Secrets: Using secrets manager?252253---254255## 10. Anti-Patterns256257| ❌ Don't | ✅ Do |258|----------|-------|259| Scan without understanding | Map attack surface first |260| Alert on every CVE | Prioritize by exploitability + asset |261| Ignore false positives | Maintain verified baseline |262| Fix symptoms only | Address root causes |263| Scan once before deploy | Continuous scanning |264| Trust third-party deps blindly | Verify integrity, audit code |265266---267268## 11. Reporting Principles269270### Finding Structure271272Each finding should answer:2731. **What?** - Clear vulnerability description2742. **Where?** - Exact location (file, line, endpoint)2753. **Why?** - Root cause explanation2764. **Impact?** - Business consequence2775. **How to fix?** - Specific remediation278279### Severity Classification280281| Severity | Criteria |282|----------|----------|283| **Critical** | RCE, auth bypass, mass data exposure |284| **High** | Data exposure, privilege escalation |285| **Medium** | Limited scope, requires conditions |286| **Low** | Informational, best practice |287288---289290> **Remember:** Vulnerability scanning finds issues. Expert thinking prioritizes what matters. Always ask: "What would an attacker do with this?"291292## When to Use293This skill is applicable to execute the workflow or actions described in the overview.294295## Limitations296- Use this skill only when the task clearly matches the scope described above.297- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.298- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.