Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ All notable changes to `claude-red` are documented here. The library follows a p

### Fixed

- Shortened 18 over-long `description` fields to the Agent Skills 1024-character limit, keeping the trigger phrases, tool names and CVE/ATT&CK/CWE mappings. `tools/check_descriptions.py` checks `name` and `description` against the spec for the whole `Skills/` tree.
- Corrected FreeMarker resolver prerequisites, Velocity constructor lookup, the PHP 8.0 PHAR boundary, and Apollo Sandbox's introspection requirement.
- Corrected the Touchlink master key and key derivation terminology in the IoT and wireless skills, and distinguished PLC identity documents from operation logs.
- Clarified JWT critical-header validation and signing prerequisites; corrected SQL/JSON WAF examples and their attribution to Team82's 2022 research.
Expand Down
2 changes: 1 addition & 1 deletion Skills/api/offensive-api-abuse/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: offensive-api-abuse
description: "Advanced API exploitation methodology focused on business logic abuse and sophisticated attack patterns that bypass traditional security controls. Covers business logic bypass through API call chaining and workflow manipulation. Addresses GraphQL-specific attacks including batching for credential brute-force, query depth exploitation, and introspection abuse. Includes pagination exploitation for data exfiltration, webhook hijacking for SSRF and data interception, and resource exhaustion through algorithmic complexity attacks. Covers race conditions in API transactions using parallel request techniques. Provides comprehensive JWT manipulation including algorithm confusion, kid injection, jku/x5u abuse, and claim tampering. Details API key leakage detection across source repositories, client-side code, and error messages. Covers undocumented endpoint discovery through predictable naming, debug routes, and source map analysis. Tooling includes Arjun, ParamSpider, jwt_tool, and GraphQL Voyager. Designed for authorized penetration testers targeting business logic layers that automated scanners miss."
description: "API exploitation methodology for business logic abuse that bypasses traditional controls: API call chaining and workflow manipulation, pagination exploitation for data exfiltration, webhook hijacking for SSRF and data interception, resource exhaustion via algorithmic complexity, and race conditions using parallel requests. GraphQL-specific attacks cover batching for credential brute-force, query depth exploitation, and introspection abuse. Covers JWT manipulation (algorithm confusion, kid injection, jku/x5u abuse, claim tampering), API key leakage detection across source repositories, client-side code and error messages, and undocumented endpoint discovery through predictable naming, debug routes and source map analysis. Tooling: Arjun, ParamSpider, jwt_tool, GraphQL Voyager. Use for authorized penetration tests of business logic layers that automated scanners miss."
---

# Offensive API Abuse and Advanced Exploitation
Expand Down
2 changes: 1 addition & 1 deletion Skills/cicd/offensive-cicd-pipeline/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: offensive-cicd-pipeline
description: "Comprehensive CI/CD pipeline exploitation methodology covering GitHub Actions injection vectors (expression injection via PR titles and issue bodies, workflow_run event abuse, GITHUB_TOKEN over-scoping, composite action supply chain compromise), Jenkins attack paths (Groovy sandbox escapes, script console remote code execution, Java remoting deserialization, credential store dumping, shared library injection), GitLab CI exploitation (YAML anchor injection, runner registration token abuse, CI variable extraction, protected branch bypass via merge request pipelines), and Azure DevOps pipeline agent compromise with service connection theft. Includes artifact poisoning techniques across all platforms, tooling guidance for gato and jenkins-attack-framework, and maps to MITRE ATT&CK T1195.002 (Supply Chain Compromise: Compromise Software Supply Chain). Covers enumeration of pipeline configurations, privilege escalation from contributor to code execution, lateral movement through pipeline trust boundaries, and persistence via modified workflow definitions. Each technique section provides working exploitation code, detection indicators, and defensive countermeasures."
description: "CI/CD pipeline exploitation methodology covering GitHub Actions injection vectors (expression injection via PR titles and issue bodies, workflow_run event abuse, GITHUB_TOKEN over-scoping, composite action supply chain compromise), Jenkins attack paths (Groovy sandbox escapes, script console remote code execution, Java remoting deserialization, credential store dumping, shared library injection), GitLab CI exploitation (YAML anchor injection, runner registration token abuse, CI variable extraction, protected branch bypass via merge request pipelines), and Azure DevOps pipeline agent compromise with service connection theft. Covers artifact poisoning across all platforms, enumeration of pipeline configurations, privilege escalation from contributor to code execution, lateral movement through pipeline trust boundaries, persistence via modified workflow definitions, and tooling for gato and jenkins-attack-framework. Maps to MITRE ATT&CK T1195.002 (Supply Chain Compromise)."
---

# Offensive CI/CD Pipeline Exploitation
Expand Down
2 changes: 1 addition & 1 deletion Skills/cicd/offensive-cicd-secrets/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: offensive-cicd-secrets
description: "Comprehensive secrets extraction methodology targeting CI/CD environments across all major platforms. Covers environment variable extraction from build contexts, exploitation of vault and secrets-manager misconfigurations (HashiCorp Vault, AWS Secrets Manager, Azure Key Vault, GCP Secret Manager), runner and agent token abuse for lateral movement, OIDC federation attacks exploiting trust relationships between CI/CD providers and cloud platforms, build log leakage analysis for inadvertently exposed credentials, cache poisoning techniques for credential exfiltration, platform-specific credential store exploitation (GitHub Actions secrets, GitLab CI variables, Jenkins credential providers), service connection and service account abuse in Azure DevOps and GCP, and Docker registry credential theft from build environments. Maps to MITRE ATT&CK T1552 (Unsecured Credentials) and its sub-techniques. Each section provides enumeration procedures, extraction techniques, and post-exploitation pivoting guidance for using recovered secrets to expand access."
description: "Secrets extraction methodology for CI/CD environments across all major platforms: environment variable extraction from build contexts, vault and secrets-manager misconfigurations (HashiCorp Vault, AWS Secrets Manager, Azure Key Vault, GCP Secret Manager), runner and agent token abuse for lateral movement, OIDC federation attacks exploiting CI/CD-to-cloud trust relationships, build log leakage analysis for inadvertently exposed credentials, cache poisoning for credential exfiltration, platform-specific credential stores (GitHub Actions secrets, GitLab CI variables, Jenkins credential providers), service connection and service account abuse in Azure DevOps and GCP, and Docker registry credential theft. Maps to MITRE ATT&CK T1552 (Unsecured Credentials) and sub-techniques. Each section covers enumeration, extraction, and pivoting with recovered secrets."
---

# Offensive CI/CD Secrets Extraction
Expand Down
2 changes: 1 addition & 1 deletion Skills/cloud/offensive-cloud/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: offensive-cloud
description: "Cloud security attack methodology covering AWS, Azure, and GCP. Includes credential harvesting (IMDS, ~/.aws, env vars, leaked CI secrets, instance roles), enumeration with cloud-specific tools (pacu, ScoutSuite, Prowler, ROADtools, gcp_enum), privilege escalation paths (IAM PassRole, AssumeRole chains, Lambda/Functions privilege flips, Azure Owner-on-self, GCP serviceAccountTokenCreator), persistence techniques (IAM user/key creation, AAD app registration, GCP svc account key creation, EventBridge/Logic Apps backdoors), data exfiltration (S3/Blob/GCS, snapshot share, RDS/CosmosDB/Cloud SQL exfil), cloud-native lateral movement (cross-account assume, Azure AD multi-tenant, GCP project hierarchy), serverless attacks (Lambda env vars, layer hijack, Step Functions), Kubernetes-on-cloud (EKS/AKS/GKE-specific paths to node and AWS metadata), and CSPM evasion (CloudTrail blind spots, GuardDuty mute, Sentinel rule shaping). Use when the engagement scope is cloud accounts, when you've stolen cloud credentials, or when assessing cloud posture."
description: "Cloud attack methodology covering AWS, Azure and GCP: credential harvesting (IMDS, ~/.aws, env vars, leaked CI secrets, instance roles), enumeration with pacu, ScoutSuite, Prowler, ROADtools and gcp_enum, privilege escalation (IAM PassRole, AssumeRole chains, Lambda/Functions privilege flips, Azure Owner-on-self, GCP serviceAccountTokenCreator), persistence (IAM user/key creation, AAD app registration, GCP service account keys, EventBridge/Logic Apps backdoors), data exfiltration (S3/Blob/GCS, snapshot share, RDS/CosmosDB/Cloud SQL), cloud-native lateral movement (cross-account assume, Azure AD multi-tenant, GCP project hierarchy), serverless attacks (Lambda env vars, layer hijack, Step Functions), Kubernetes-on-cloud paths on EKS/AKS/GKE, and CSPM evasion (CloudTrail blind spots, GuardDuty mute, Sentinel rule shaping). Use when the scope is cloud accounts, after stealing cloud credentials, or when assessing cloud posture."
---

# Cloud (AWS / Azure / GCP) — Offensive Testing Methodology
Expand Down
2 changes: 1 addition & 1 deletion Skills/container/offensive-k8s-attacks/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: offensive-k8s-attacks
description: "Kubernetes cluster attack techniques covering the full attack lifecycle from initial foothold in a pod to cluster-wide compromise. Covers service account token theft and impersonation, RBAC misconfiguration exploitation including wildcard permissions and privilege escalation via role binding, direct etcd access for secret extraction, kubelet API abuse on port 10250 and read-only port 10255, pod escape via hostPID hostNetwork and hostPath volume mounts, Kubernetes secrets enumeration and decoding, admission controller bypass techniques, network policy bypass and lateral movement, cloud metadata service access from pods for credential theft on AWS EKS GCP GKE and Azure AKS, CRD and operator abuse for persistence, and node compromise via DaemonSet deployment. Tools include kubectl, kube-hunter, peirates, kubeaudit, kdigger, kubeletctl. Maps to MITRE ATT&CK T1609 Container Administration Command, T1610 Deploy Container, T1613 Container and Resource Discovery. Use this skill when assessing Kubernetes clusters, attacking from within a compromised pod, exploiting RBAC or kubelet misconfigurations, or performing cloud-native lateral movement."
description: "Kubernetes attack techniques covering the lifecycle from a pod foothold to cluster-wide compromise: service account token theft and impersonation, RBAC misconfiguration exploitation including wildcard permissions and privilege escalation via role binding, direct etcd access for secret extraction, kubelet API abuse on ports 10250 and 10255, pod escape via hostPID, hostNetwork and hostPath mounts, secrets enumeration and decoding, admission controller bypass, network policy bypass and lateral movement, cloud metadata access from pods for credential theft on EKS, GKE and AKS, CRD and operator abuse for persistence, and node compromise via DaemonSet. Tools: kubectl, kube-hunter, peirates, kubeaudit, kdigger, kubeletctl. Maps to MITRE ATT&CK T1609, T1610, T1613. Use when assessing clusters, attacking from a compromised pod, exploiting RBAC or kubelet misconfigurations, or performing cloud-native lateral movement."
---

# Kubernetes Cluster Attacks
Expand Down
2 changes: 1 addition & 1 deletion Skills/crypto/offensive-crypto-attacks/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: offensive-crypto-attacks
description: "Systematic methodology for identifying and exploiting cryptographic implementation weaknesses in real-world applications. Covers padding oracle attacks against CBC-mode ciphers with PKCS7 padding (Vaudenay's original attack through modern padbuster automation), ECB mode exploitation including block cut-and-paste and byte-at-a-time decryption, hash length extension attacks against SHA1/SHA256/MD5-based MACs using HashPump, RSA vulnerabilities including small public exponent, common modulus, Bleichenbacher PKCS1v1.5 padding oracle, and Coppersmith's method for partial key recovery. Addresses weak PRNG exploitation targeting time-seeded generators and Mersenne Twister MT19937 state recovery from observed outputs, timing side-channel attacks against comparison operations, nonce reuse in AES-GCM leading to authentication key recovery, and key derivation weaknesses including insufficient iteration counts and missing salts. Primary tooling includes padbuster, RsaCtfTool, hashpump, and PyCryptodome for building custom exploit payloads. Maps to CWE-327 (Use of a Broken or Risky Cryptographic Algorithm), CWE-328 (Use of Weak Hash), and CWE-330 (Use of Insufficiently Random Values). Emphasizes black-box identification of vulnerable implementations before transitioning to targeted exploitation."
description: "Methodology for identifying and exploiting cryptographic implementation weaknesses in real applications: padding oracle attacks against CBC-mode ciphers with PKCS7 padding (Vaudenay through padbuster), ECB mode exploitation including block cut-and-paste and byte-at-a-time decryption, hash length extension against SHA1/SHA256/MD5-based MACs with HashPump, RSA vulnerabilities including small public exponent, common modulus, Bleichenbacher PKCS1v1.5 and Coppersmith partial key recovery, weak PRNG exploitation against time-seeded generators and MT19937 state recovery, timing side channels against comparisons, AES-GCM nonce reuse leading to authentication key recovery, and key derivation weaknesses such as low iteration counts and missing salts. Tooling: padbuster, RsaCtfTool, hashpump, PyCryptodome. Maps to CWE-327, CWE-328, CWE-330. Emphasises black-box identification before targeted exploitation."
---

# Cryptographic Implementation Attacks
Expand Down
2 changes: 1 addition & 1 deletion Skills/crypto/offensive-tls-attacks/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: offensive-tls-attacks
description: "Comprehensive methodology for auditing and exploiting TLS/SSL implementations and misconfigurations across network services and mobile applications. Covers protocol downgrade attacks including POODLE (CVE-2014-3566) against SSLv3 CBC padding, DROWN (CVE-2016-0800) cross-protocol attack leveraging SSLv2 export ciphers to decrypt TLS sessions, and FREAK (CVE-2015-0204) forcing RSA export-grade key exchange. Addresses BEAST (CVE-2011-3389) exploiting CBC IV predictability in TLS 1.0, CRIME (CVE-2012-4929) and BREACH targeting TLS-level and HTTP-level compression oracles respectively, and Heartbleed (CVE-2014-0160) for OpenSSL memory disclosure. Covers certificate validation bypass techniques for applications with improper hostname verification or chain validation, certificate pinning bypass using Frida and Objection for mobile application interception, HSTS bypass via NTP manipulation and subdomain exploitation, TLS 1.3 0-RTT replay attacks against non-idempotent endpoints, mutual TLS (mTLS) authentication attacks including client certificate theft and relay, and Certificate Transparency log monitoring for reconnaissance. Primary tooling includes testssl.sh for comprehensive TLS auditing, sslyze for Python-integrated scanning, sslscan for quick cipher enumeration, and tlsx for high-speed TLS probing at scale. Maps to CWE-295 (Improper Certificate Validation), CWE-319 (Cleartext Transmission of Sensitive Information), and CWE-757 (Selection of Less-Secure Algorithm During Negotiation)."
description: "Methodology for auditing and exploiting TLS/SSL implementations across network services and mobile applications: protocol downgrade attacks including POODLE (CVE-2014-3566) against SSLv3 CBC padding, DROWN (CVE-2016-0800) using SSLv2 export ciphers to decrypt TLS sessions, and FREAK (CVE-2015-0204) forcing RSA export-grade key exchange; BEAST (CVE-2011-3389) against CBC IV predictability in TLS 1.0; CRIME (CVE-2012-4929) and BREACH compression oracles; Heartbleed (CVE-2014-0160) memory disclosure; certificate validation bypass where hostname or chain checks are missing; certificate pinning bypass with Frida and Objection for mobile interception; HSTS bypass via NTP manipulation and subdomain takeover; TLS 1.3 0-RTT replay against non-idempotent endpoints; mTLS attacks including client certificate theft and relay; and Certificate Transparency monitoring for reconnaissance. Tooling: testssl.sh, sslyze, sslscan, tlsx. Maps to CWE-295, CWE-319, CWE-757."
---

# TLS/SSL Attacks and Misconfiguration Exploitation
Expand Down
2 changes: 1 addition & 1 deletion Skills/forensics/offensive-anti-forensics/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: offensive-anti-forensics
description: "Anti-forensics and evidence destruction techniques for red team operators conducting authorized engagements. Covers log clearing on Windows (wevtutil, Clear-EventLog, ETW provider patching) and Linux (journal truncation, utmp/wtmp binary editing, syslog manipulation), timestamp manipulation via Timestomp and SetMACE to defeat timeline analysis, filesystem-level anti-forensics including NTFS Alternate Data Streams for payload hiding and secure deletion with sdelete/shred, memory artifact removal to counter live forensics, disk artifact manipulation targeting MFT entries and USN journal records, network forensics evasion through encrypted C2 channels and DNS-over-HTTPS tunneling, and anti-VM/sandbox detection to avoid dynamic analysis environments. Tools: Timestomp, wevtutil, sdelete, shred, MimiPenguin, Invoke-Phant0m. Aligns to MITRE ATT&CK T1070 (Indicator Removal), T1027 (Obfuscated Files or Information), T1497 (Virtualization/Sandbox Evasion). Each technique includes the forensic artifact it targets, the destruction or manipulation method, and the defender perspective so operators understand detection gaps they must account for."
description: "Anti-forensics and evidence destruction for authorised red team engagements: log clearing on Windows (wevtutil, Clear-EventLog, ETW provider patching) and Linux (journal truncation, utmp/wtmp editing, syslog manipulation), timestamp manipulation with Timestomp and SetMACE to defeat timeline analysis, filesystem anti-forensics including NTFS Alternate Data Streams for payload hiding and secure deletion with sdelete/shred, memory artifact removal to counter live forensics, disk artifact manipulation targeting MFT entries and USN journal records, network evasion through encrypted C2 channels and DNS-over-HTTPS tunnelling, and anti-VM/sandbox detection to avoid dynamic analysis. Tools: Timestomp, wevtutil, sdelete, shred, MimiPenguin, Invoke-Phant0m. Aligns to MITRE ATT&CK T1070, T1027, T1497. Each technique names the artifact it targets, the manipulation method, and the defender view."
---

# Offensive Anti-Forensics
Expand Down
Loading