From ee0aead9d528f0a516c573081c8e5effa99c2e25 Mon Sep 17 00:00:00 2001 From: Goldloli <39011904+Goldloli@users.noreply.github.com> Date: Mon, 23 Nov 2026 18:16:23 +0800 Subject: [PATCH] fix(skills): keep every description within the 1024-character spec limit `description` is the always-loaded field of a skill: per the Agent Skills specification it must be 1-1024 characters. 18 of the 79 skills exceeded it (longest 1522), which pushes training material into the field agents match against and can make a client reject or truncate the frontmatter. Shorten each over-limit description, keeping the trigger phrases, tool names and CVE/ATT&CK/CWE identifiers that drive skill selection; the bodies are untouched. Add tools/check_descriptions.py, which validates name and description for the whole Skills/ tree against the spec, and resync the 18 affected claude-skills.json entries. Fixes #30 Signed-off-by: Goldloli <39011904+Goldloli@users.noreply.github.com> --- CHANGELOG.md | 1 + Skills/api/offensive-api-abuse/SKILL.md | 2 +- Skills/cicd/offensive-cicd-pipeline/SKILL.md | 2 +- Skills/cicd/offensive-cicd-secrets/SKILL.md | 2 +- Skills/cloud/offensive-cloud/SKILL.md | 2 +- .../container/offensive-k8s-attacks/SKILL.md | 2 +- .../crypto/offensive-crypto-attacks/SKILL.md | 2 +- Skills/crypto/offensive-tls-attacks/SKILL.md | 2 +- .../offensive-anti-forensics/SKILL.md | 2 +- .../offensive-c2-frameworks/SKILL.md | 2 +- .../offensive-data-exfiltration/SKILL.md | 2 +- .../offensive-persistence/SKILL.md | 2 +- .../privesc/offensive-linux-privesc/SKILL.md | 2 +- .../offensive-windows-privesc/SKILL.md | 2 +- .../offensive-phishing/SKILL.md | 2 +- .../offensive-social-engineering/SKILL.md | 2 +- .../offensive-dependency-confusion/SKILL.md | 2 +- .../offensive-supply-chain/SKILL.md | 2 +- Skills/web/offensive-graphql/SKILL.md | 2 +- claude-skills.json | 36 ++--- tools/check_descriptions.py | 123 ++++++++++++++++++ 21 files changed, 160 insertions(+), 36 deletions(-) create mode 100644 tools/check_descriptions.py diff --git a/CHANGELOG.md b/CHANGELOG.md index c1b1f0b..fa0eab3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/Skills/api/offensive-api-abuse/SKILL.md b/Skills/api/offensive-api-abuse/SKILL.md index 8b7aa8d..5225434 100644 --- a/Skills/api/offensive-api-abuse/SKILL.md +++ b/Skills/api/offensive-api-abuse/SKILL.md @@ -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 diff --git a/Skills/cicd/offensive-cicd-pipeline/SKILL.md b/Skills/cicd/offensive-cicd-pipeline/SKILL.md index b3cbe34..71158e1 100644 --- a/Skills/cicd/offensive-cicd-pipeline/SKILL.md +++ b/Skills/cicd/offensive-cicd-pipeline/SKILL.md @@ -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 diff --git a/Skills/cicd/offensive-cicd-secrets/SKILL.md b/Skills/cicd/offensive-cicd-secrets/SKILL.md index 7480889..136c4a1 100644 --- a/Skills/cicd/offensive-cicd-secrets/SKILL.md +++ b/Skills/cicd/offensive-cicd-secrets/SKILL.md @@ -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 diff --git a/Skills/cloud/offensive-cloud/SKILL.md b/Skills/cloud/offensive-cloud/SKILL.md index 2d374ac..d560bc1 100644 --- a/Skills/cloud/offensive-cloud/SKILL.md +++ b/Skills/cloud/offensive-cloud/SKILL.md @@ -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 diff --git a/Skills/container/offensive-k8s-attacks/SKILL.md b/Skills/container/offensive-k8s-attacks/SKILL.md index 6d7945e..c5163e8 100644 --- a/Skills/container/offensive-k8s-attacks/SKILL.md +++ b/Skills/container/offensive-k8s-attacks/SKILL.md @@ -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 diff --git a/Skills/crypto/offensive-crypto-attacks/SKILL.md b/Skills/crypto/offensive-crypto-attacks/SKILL.md index 531f20a..5721670 100644 --- a/Skills/crypto/offensive-crypto-attacks/SKILL.md +++ b/Skills/crypto/offensive-crypto-attacks/SKILL.md @@ -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 diff --git a/Skills/crypto/offensive-tls-attacks/SKILL.md b/Skills/crypto/offensive-tls-attacks/SKILL.md index 4e53542..4cb5c08 100644 --- a/Skills/crypto/offensive-tls-attacks/SKILL.md +++ b/Skills/crypto/offensive-tls-attacks/SKILL.md @@ -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 diff --git a/Skills/forensics/offensive-anti-forensics/SKILL.md b/Skills/forensics/offensive-anti-forensics/SKILL.md index 343404c..a510a1c 100644 --- a/Skills/forensics/offensive-anti-forensics/SKILL.md +++ b/Skills/forensics/offensive-anti-forensics/SKILL.md @@ -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 diff --git a/Skills/forensics/offensive-c2-frameworks/SKILL.md b/Skills/forensics/offensive-c2-frameworks/SKILL.md index 83c5ecb..3205da4 100644 --- a/Skills/forensics/offensive-c2-frameworks/SKILL.md +++ b/Skills/forensics/offensive-c2-frameworks/SKILL.md @@ -1,6 +1,6 @@ --- name: offensive-c2-frameworks -description: "Command and Control framework deployment, configuration, and operational tradecraft for red team engagements. Covers Cobalt Strike (malleable C2 profiles, Beacon types HTTP/HTTPS/DNS/SMB, Beacon Object Files for in-memory execution, sleep and jitter tuning, named pipe pivoting), Sliver (implant generation across mTLS/WireGuard/DNS transport, operator multiplayer mode, armory extensions), Mythic (agent ecosystem with Apollo/Poseidon/Medusa, C2 profile configuration, translation containers), Havoc (Demon agent with sleep obfuscation via Ekko/Zilean, indirect syscalls, dotnet inline execution), Metasploit (msfvenom payload generation, multi/handler staging, Meterpreter post-exploitation modules), redirector architecture using Apache mod_rewrite and Nginx, domain fronting through CDN providers, DNS-based C2 for restrictive network egress, and TLS certificate management for infrastructure OPSEC. Tools: Cobalt Strike, Sliver, Mythic, Havoc, Metasploit Framework. Aligns to MITRE ATT&CK T1071 (Application Layer Protocol), T1573 (Encrypted Channel), T1090 (Proxy/Connection Proxy)." +description: "Command and Control framework deployment, configuration and operational tradecraft for red team engagements: Cobalt Strike (malleable C2 profiles, HTTP/HTTPS/DNS/SMB Beacon types, Beacon Object Files for in-memory execution, sleep and jitter tuning, named pipe pivoting), Sliver (implants over mTLS/WireGuard/DNS, operator multiplayer mode, armory extensions), Mythic (Apollo/Poseidon/Medusa agents, C2 profiles, translation containers), Havoc (Demon agent with Ekko/Zilean sleep obfuscation, indirect syscalls, .NET inline execution), and Metasploit (msfvenom payloads, multi/handler staging, Meterpreter modules). Also covers redirector architecture with Apache mod_rewrite and Nginx, domain fronting through CDNs, DNS-based C2 for restrictive egress, and TLS certificate management for infrastructure OPSEC. Aligns to MITRE ATT&CK T1071, T1573, T1090." --- # Offensive C2 Frameworks diff --git a/Skills/post-exploitation/offensive-data-exfiltration/SKILL.md b/Skills/post-exploitation/offensive-data-exfiltration/SKILL.md index 3cc473f..753a5d4 100644 --- a/Skills/post-exploitation/offensive-data-exfiltration/SKILL.md +++ b/Skills/post-exploitation/offensive-data-exfiltration/SKILL.md @@ -1,6 +1,6 @@ --- name: offensive-data-exfiltration -description: "Dense methodology covering DNS exfiltration (dnscat2, iodine, dns2tcp), HTTPS tunneling (domain fronting, CDN abuse, legitimate service channels), ICMP tunneling (icmpsh, ptunnel-ng), cloud storage dead drops (S3 presigned URLs, Azure Blob SAS tokens, GCS signed URLs), email-based exfil (SMTP, EWS, draft method), steganography (image, audio, document metadata), encoding/encryption (base64 chunking, XOR, AES), covert channels (custom protocol tunneling, HTTP header encoding, timing channels), and data staging (compression, splitting, encryption). Tools: dnscat2, iodine, dns2tcp, PacketWhisper, chisel, stunnel, icmpsh, ptunnel-ng, steghide, zsteg, OpenStego. MITRE ATT&CK: T1048 (Exfiltration Over Alternative Protocol), T1041 (Exfiltration Over C2 Channel), T1567 (Exfiltration Over Web Service), T1029 (Scheduled Transfer), T1030 (Data Transfer Size Limits), T1132 (Data Encoding), T1001 (Data Obfuscation). Use when planning or executing data exfiltration during authorized red team engagements or post-exploitation." +description: "Methodology covering DNS exfiltration (dnscat2, iodine, dns2tcp), HTTPS tunnelling (domain fronting, CDN abuse, legitimate service channels), ICMP tunnelling (icmpsh, ptunnel-ng), cloud storage dead drops (S3 presigned URLs, Azure Blob SAS tokens, GCS signed URLs), email-based exfil (SMTP, EWS, draft method), steganography (image, audio, document metadata), encoding and encryption (base64 chunking, XOR, AES), covert channels (custom protocol tunnelling, HTTP header encoding, timing channels), and data staging (compression, splitting, encryption). Tools: dnscat2, iodine, dns2tcp, PacketWhisper, chisel, stunnel, icmpsh, ptunnel-ng, steghide, zsteg, OpenStego. MITRE ATT&CK: T1048, T1041, T1567, T1029, T1030, T1132, T1001. Use when planning or executing exfiltration during authorised red team engagements." --- # Data Exfiltration -- Offensive Methodology diff --git a/Skills/post-exploitation/offensive-persistence/SKILL.md b/Skills/post-exploitation/offensive-persistence/SKILL.md index 17080d0..bbf6b59 100644 --- a/Skills/post-exploitation/offensive-persistence/SKILL.md +++ b/Skills/post-exploitation/offensive-persistence/SKILL.md @@ -1,6 +1,6 @@ --- name: offensive-persistence -description: "Comprehensive persistence tradecraft for authorized red team engagements covering Windows and Linux mechanisms. Windows techniques include registry Run/RunOnce keys, scheduled tasks, WMI event subscriptions, DLL search order hijacking, COM object hijacking, Startup folder drops, service creation, Security Support Provider (SSP) DLL injection, and Active Directory persistence (AdminSDHolder abuse, DCShadow, Golden Ticket, Silver Ticket, Skeleton Key, SID History injection). Linux techniques include cron and at jobs, systemd timers and services, SSH authorized_keys injection, shell profile backdoors (.bashrc/.bash_profile), PAM module backdoors, LD_PRELOAD hijacking, kernel module rootkits, web shells, and Git hook abuse. Provides operator-ready command sequences for SharPersist, Impacket ticketer, schtasks, sc.exe, crontab, and systemctl with OPSEC considerations for each method. Maps to MITRE ATT&CK T1547 (Boot or Logon Autostart), T1053 (Scheduled Task/Job), T1546 (Event Triggered Execution), T1556 (Modify Authentication Process), and sub-techniques. Includes detection indicators and a rapid engagement cheatsheet." +description: "Persistence tradecraft for authorised red team engagements across Windows and Linux. Windows: registry Run/RunOnce keys, scheduled tasks, WMI event subscriptions, DLL search order hijacking, COM object hijacking, Startup folder drops, service creation, SSP DLL injection, and Active Directory persistence (AdminSDHolder abuse, DCShadow, Golden and Silver Tickets, Skeleton Key, SID History injection). Linux: cron and at jobs, systemd timers and services, SSH authorised_keys injection, shell profile backdoors, PAM module backdoors, LD_PRELOAD hijacking, kernel module rootkits, web shells, and Git hook abuse. Provides operator-ready sequences for SharPersist, Impacket ticketer, schtasks, sc.exe, crontab and systemctl with OPSEC notes. Maps to MITRE ATT&CK T1547, T1053, T1546, T1556 and sub-techniques. Includes detection indicators and a rapid cheatsheet." --- # Offensive Persistence diff --git a/Skills/privesc/offensive-linux-privesc/SKILL.md b/Skills/privesc/offensive-linux-privesc/SKILL.md index 2d1f30c..1f21ffb 100644 --- a/Skills/privesc/offensive-linux-privesc/SKILL.md +++ b/Skills/privesc/offensive-linux-privesc/SKILL.md @@ -1,6 +1,6 @@ --- name: offensive-linux-privesc -description: "Comprehensive Linux privilege escalation methodology for offensive security engagements. Covers the full attack surface from a low-privilege shell to root: SUID/SGID binary abuse via GTFOBins, Linux capabilities exploitation (cap_setuid, cap_dac_override, cap_dac_read_search), sudo misconfigurations including NOPASSWD rules and Baron Samedit (CVE-2021-3156), cron job abuse through writable scripts, PATH hijacking, and wildcard injection with tar/rsync/chown. Includes writable /etc/passwd attacks, NFS no_root_squash exploitation, kernel exploits (DirtyPipe CVE-2022-0847, DirtyCow CVE-2016-5195, PwnKit CVE-2021-4034), Docker group container escapes, LD_PRELOAD and LD_LIBRARY_PATH hijacking for shared library injection, systemd service misconfigurations, and sensitive file enumeration for credential harvesting. Integrates automated enumeration with LinPEAS, linux-exploit-suggester, pspy for process monitoring, and GTFOBins for binary exploitation. Each technique includes detection signatures and defender-side visibility to support purple team operations. Maps to MITRE ATT&CK T1548 (Abuse Elevation Control Mechanism) and related sub-techniques. Designed for authorized penetration testing, red team engagements, and CTF competitions where you hold a low-privilege shell and need to escalate to root." +description: "Linux privilege escalation methodology covering the attack surface from a low-privilege shell to root: SUID/SGID binary abuse via GTFOBins, Linux capabilities exploitation (cap_setuid, cap_dac_override, cap_dac_read_search), sudo misconfigurations including NOPASSWD rules and Baron Samedit (CVE-2021-3156), cron job abuse through writable scripts, PATH hijacking, and wildcard injection with tar/rsync/chown. Also covers writable /etc/passwd attacks, NFS no_root_squash, kernel exploits (DirtyPipe CVE-2022-0847, DirtyCow CVE-2016-5195, PwnKit CVE-2021-4034), Docker group container escapes, LD_PRELOAD and LD_LIBRARY_PATH hijacking, systemd service misconfigurations, and sensitive file enumeration for credentials. Enumeration with LinPEAS, linux-exploit-suggester, pspy and GTFOBins. Each technique includes detection signatures and defender visibility. Maps to MITRE ATT&CK T1548. Use when you hold a low-privilege shell and need root." --- # Linux Privilege Escalation diff --git a/Skills/privesc/offensive-windows-privesc/SKILL.md b/Skills/privesc/offensive-windows-privesc/SKILL.md index ed3f0cf..f27008e 100644 --- a/Skills/privesc/offensive-windows-privesc/SKILL.md +++ b/Skills/privesc/offensive-windows-privesc/SKILL.md @@ -1,6 +1,6 @@ --- name: offensive-windows-privesc -description: "Comprehensive Windows privilege escalation methodology for offensive security engagements. Covers the full attack surface from a standard user shell to NT AUTHORITY\\SYSTEM: token impersonation via SeImpersonate and SeAssignPrimaryToken privileges using JuicyPotato, PrintSpoofer, GodPotato, SweetPotato, and RoguePotato; service misconfigurations including unquoted service paths, weak service DACLs, writable service binaries, and insecure service creation permissions; AlwaysInstallElevated MSI exploitation; DLL hijacking through search order abuse, phantom DLL loading, and writable PATH directory injection; UAC bypass techniques via fodhelper.exe, eventvwr.exe, CMSTP, and environment variable manipulation; scheduled task abuse for writable task actions and new task creation; registry autorun exploitation for persistence and escalation; PrintNightmare (CVE-2021-34527) for remote and local privilege escalation; and credential harvesting from SAM database extraction, DPAPI blob decryption, LSA secret dumping, and Credential Manager enumeration. Integrates automated enumeration with WinPEAS, PowerUp, SharpUp, Seatbelt, and BeRoot. Each technique includes detection signatures and defender-side visibility for purple team operations. Maps to MITRE ATT&CK T1548 (Abuse Elevation Control Mechanism) and T1574 (Hijack Execution Flow). Designed for authorized penetration testing, red team engagements, and CTF competitions where you hold a standard user shell and need to escalate to SYSTEM or local Administrator." +description: "Windows privilege escalation methodology covering the attack surface from a standard user shell to SYSTEM: token impersonation via SeImpersonate and SeAssignPrimaryToken with JuicyPotato, PrintSpoofer, GodPotato, SweetPotato and RoguePotato; service misconfigurations including unquoted service paths, weak service DACLs, writable service binaries and insecure service creation permissions; AlwaysInstallElevated MSI exploitation; DLL hijacking through search order abuse, phantom DLL loading and writable PATH directory injection; UAC bypass via fodhelper.exe, eventvwr.exe, CMSTP and environment variable manipulation; scheduled task abuse; registry autorun exploitation; PrintNightmare (CVE-2021-34527); and credential harvesting from SAM extraction, DPAPI blob decryption, LSA secret dumping and Credential Manager enumeration. Enumeration with WinPEAS, PowerUp, SharpUp, Seatbelt and BeRoot. Maps to MITRE ATT&CK T1548 and T1574. Use when you hold a standard user shell and need SYSTEM or local Administrator." --- # Windows Privilege Escalation diff --git a/Skills/social-engineering/offensive-phishing/SKILL.md b/Skills/social-engineering/offensive-phishing/SKILL.md index 6abdde2..eb944c9 100644 --- a/Skills/social-engineering/offensive-phishing/SKILL.md +++ b/Skills/social-engineering/offensive-phishing/SKILL.md @@ -1,6 +1,6 @@ --- name: offensive-phishing -description: "Phishing campaign execution methodology for authorized red team engagements. Covers end-to-end campaign lifecycle: infrastructure provisioning (GoPhish, SMTP relay configuration, domain acquisition and aging, SPF/DKIM/DMARC alignment), payload delivery vectors (Office macro weaponization, HTA droppers, ISO/IMG container abuse, LNK shortcut hijacking, OneNote embedded payloads, HTML smuggling), email authentication bypass techniques (SPF softfail exploitation, DKIM replay attacks, display name spoofing, homoglyph and cousin domain registration), credential harvesting with MFA bypass (EvilGinx2 transparent proxy, Modlishka session relay, pixel-perfect HTML cloning), spear phishing pretext development informed by OSINT, email security gateway evasion, QR code phishing (quishing), and callback phishing for initial access. Integrates with GoPhish for campaign management, EvilGinx2 for adversary-in-the-middle credential interception, King Phisher for template design, and the Social Engineering Toolkit for payload generation. Maps to MITRE ATT&CK T1566 (Phishing) and sub-techniques T1566.001 (Spearphishing Attachment), T1566.002 (Spearphishing Link), T1566.003 (Spearphishing via Service). Assumes you have written authorization and a defined scope before any campaign execution." +description: "Phishing campaign execution methodology for authorised red team engagements, covering the campaign lifecycle: infrastructure provisioning (GoPhish, SMTP relay configuration, domain acquisition and ageing, SPF/DKIM/DMARC alignment), payload delivery (Office macro weaponisation, HTA droppers, ISO/IMG container abuse, LNK shortcut hijacking, OneNote embedded payloads, HTML smuggling), email authentication bypass (SPF softfail exploitation, DKIM replay, display name spoofing, homoglyph and cousin domain registration), credential harvesting with MFA bypass (EvilGinx2 transparent proxy, Modlishka session relay, pixel-perfect cloning), OSINT-informed spear phishing pretexts, email gateway evasion, QR code phishing (quishing), and callback phishing for initial access. Tooling: GoPhish, EvilGinx2, King Phisher, Social Engineering Toolkit. Maps to MITRE ATT&CK T1566, T1566.001, T1566.002, T1566.003. Requires written authorisation and a defined scope." --- # Offensive Phishing diff --git a/Skills/social-engineering/offensive-social-engineering/SKILL.md b/Skills/social-engineering/offensive-social-engineering/SKILL.md index 88a902f..dd13d36 100644 --- a/Skills/social-engineering/offensive-social-engineering/SKILL.md +++ b/Skills/social-engineering/offensive-social-engineering/SKILL.md @@ -1,6 +1,6 @@ --- name: offensive-social-engineering -description: "Social engineering attack techniques beyond email phishing for authorized red team and physical penetration testing engagements. Covers pretexting methodology (persona creation, authority and urgency psychological triggers, rapport building), vishing (voice phishing via caller ID spoofing, IVR system exploitation, VoIP infrastructure setup with Twilio/Asterisk), smishing (SMS-based phishing, carrier gateway abuse, short code impersonation), physical social engineering (tailgating and piggybacking, RFID badge cloning with Proxmark3, lock picking and bypass, dumpster diving for sensitive documents), USB drop attacks (Rubber Ducky keystroke injection, Bash Bunny multi-vector payloads, O.MG cable covert implants, BadUSB firmware attacks), watering hole attack planning and execution, and OSINT-driven targeting (LinkedIn harvesting, organizational chart reconstruction, employee pattern analysis). Integrates with the Social Engineering Toolkit for attack automation, Proxmark3 for RFID/NFC cloning, USB Rubber Ducky and Bash Bunny for physical payload delivery, and BeEF for browser exploitation. Maps to MITRE ATT&CK T1598 (Phishing for Information), T1566 (Phishing), T1091 (Replication Through Removable Media), and T1189 (Drive-by Compromise). All techniques require explicit written authorization and defined rules of engagement." +description: "Social engineering techniques beyond email phishing for authorised red team and physical penetration tests: pretexting methodology (persona creation, authority and urgency triggers, rapport building), vishing (caller ID spoofing, IVR exploitation, VoIP setup with Twilio/Asterisk), smishing (SMS phishing, carrier gateway abuse, short code impersonation), physical social engineering (tailgating and piggybacking, RFID badge cloning with Proxmark3, lock picking and bypass, dumpster diving), USB drop attacks (Rubber Ducky keystroke injection, Bash Bunny multi-vector payloads, O.MG cable implants, BadUSB firmware attacks), watering hole planning and execution, and OSINT-driven targeting (LinkedIn harvesting, org chart reconstruction, employee pattern analysis). Tooling: Social Engineering Toolkit, Proxmark3, USB Rubber Ducky, Bash Bunny, BeEF. Maps to MITRE ATT&CK T1598, T1566, T1091, T1189. All techniques require explicit written authorisation." --- # Offensive Social Engineering diff --git a/Skills/supply-chain/offensive-dependency-confusion/SKILL.md b/Skills/supply-chain/offensive-dependency-confusion/SKILL.md index 3352d59..900ca6f 100644 --- a/Skills/supply-chain/offensive-dependency-confusion/SKILL.md +++ b/Skills/supply-chain/offensive-dependency-confusion/SKILL.md @@ -1,6 +1,6 @@ --- name: offensive-dependency-confusion -description: "Deep-dive offensive methodology for dependency confusion and namespace attacks across all major package ecosystems. Covers npm scope confusion exploiting the gap between public and private scoped packages and .npmrc misconfigurations where registry mappings fail to pin internal scopes exclusively. Addresses PyPI namespace attacks through --extra-index-url resolution ordering, NuGet feed priority exploitation when multiple package sources are configured without clear directives, Maven and Gradle repository ordering where artifact resolution traverses repositories sequentially, Go module proxy abuse through GOPROXY misconfiguration, Ruby gems namespace squatting, and Docker image tag confusion with unqualified image references. Provides complete proof-of-concept methodology using safe callbacks including DNS canary via interactsh or Burp Collaborator and HTTP beacon with no destructive payload. Covers reconnaissance techniques for discovering internal package names through GitHub repository analysis, error message harvesting, JavaScript source map extraction, lock file parsing, job postings mentioning internal tools, and package manifest inspection. Directly references and builds upon Alex Birsan's seminal 2021 dependency confusion research. Each ecosystem section includes registry-specific exploitation mechanics, configuration vulnerabilities, and defensive countermeasures for engagement reporting." +description: "Offensive methodology for dependency confusion and namespace attacks across package ecosystems: npm scope confusion exploiting gaps between public and private scoped packages and .npmrc registry mappings that fail to pin internal scopes; PyPI namespace attacks through --extra-index-url resolution ordering; NuGet feed priority exploitation when multiple sources lack clear directives; Maven and Gradle repository ordering where artifacts resolve sequentially; Go module proxy abuse through GOPROXY misconfiguration; Ruby gems namespace squatting; and Docker image tag confusion with unqualified references. Proof-of-concept work uses safe callbacks only (interactsh or Burp Collaborator DNS canary, HTTP beacon, no destructive payload). Reconnaissance covers internal package names via GitHub analysis, error messages, source maps, lock files, job postings and manifests. Builds on Alex Birsan's 2021 research; each ecosystem section covers mechanics, flaws and countermeasures." --- # Offensive Dependency Confusion and Namespace Attacks diff --git a/Skills/supply-chain/offensive-supply-chain/SKILL.md b/Skills/supply-chain/offensive-supply-chain/SKILL.md index ecf5873..e121ff9 100644 --- a/Skills/supply-chain/offensive-supply-chain/SKILL.md +++ b/Skills/supply-chain/offensive-supply-chain/SKILL.md @@ -1,6 +1,6 @@ --- name: offensive-supply-chain -description: "Comprehensive offensive methodology for software supply chain attacks covering the full kill chain from reconnaissance through exploitation. Addresses dependency confusion across npm, PyPI, and NuGet ecosystems where internal registry override allows an attacker to inject malicious packages that shadow private dependencies. Covers typosquatting techniques for popular packages, compromised package injection via maintainer account takeover or social engineering, and build system attacks through Makefile injection, setup.py install hooks, and npm postinstall scripts. Extends into CI/CD artifact tampering where build outputs are replaced or modified in transit, code signing abuse through stolen or self-signed certificates, upstream repository compromise via commit injection or force-push to trusted repos, and container image supply chain attacks including base image trojaning and registry confusion. Maps to MITRE ATT&CK T1195.001 (Supply Chain Compromise: Compromise Software Dependencies and Development Tools) and T1195.002 (Supply Chain Compromise: Compromise Software Supply Chain). Integrates tooling such as confused for dependency confusion scanning and dependency-check for known vulnerable component detection. Each technique section provides reproducible proof-of-concept patterns, detection guidance for defenders, and engagement-safe execution notes for authorized red team operations." +description: "Offensive methodology for software supply chain attacks covering the kill chain from reconnaissance to exploitation: dependency confusion across npm, PyPI and NuGet where internal registry override lets an attacker inject packages that shadow private dependencies; typosquatting of popular packages; compromised package injection via maintainer account takeover or social engineering; build system attacks through Makefile injection, setup.py install hooks and npm postinstall scripts; CI/CD artifact tampering where build outputs are replaced in transit; code signing abuse with stolen or self-signed certificates; upstream repository compromise via commit injection or force-push; and container image attacks including base image trojaning and registry confusion. Maps to MITRE ATT&CK T1195.001 and T1195.002. Tooling: confused, dependency-check. Each technique includes reproducible proof-of-concept patterns, detection guidance and engagement-safe execution notes." --- # Offensive Supply Chain Attacks diff --git a/Skills/web/offensive-graphql/SKILL.md b/Skills/web/offensive-graphql/SKILL.md index 2ec08b7..d441552 100644 --- a/Skills/web/offensive-graphql/SKILL.md +++ b/Skills/web/offensive-graphql/SKILL.md @@ -1,6 +1,6 @@ --- name: offensive-graphql -description: "Offensive methodology for attacking GraphQL APIs during penetration tests and bug bounty engagements. Covers the full attack lifecycle: endpoint discovery, introspection abuse and blind schema reconstruction when introspection is disabled, authentication and authorization bypass through Relay node IDs and nested object traversal, injection via variables and directives, query batching for brute force and OTP bypass, denial of service through depth bombs and alias amplification, WebSocket subscription hijacking, information disclosure through verbose errors and field suggestion oracles, and file upload abuse via the multipart GraphQL specification. Includes tool-specific guidance for InQL, graphql-cop, CrackQL, BatchQL, Altair, GraphQL Voyager, and clairvoyance. Trigger on: GraphQL, graphql, introspection query, batching attack, query depth, GraphQL injection, GraphQL IDOR, field suggestion, GraphQL auth bypass, GraphQL DoS, GraphQL security, graphql-cop, InQL, CrackQL, BatchQL, Relay node, alias amplification, subscription abuse, multipart upload GraphQL, schema enumeration, __schema, __type." +description: "Offensive methodology for attacking GraphQL APIs during penetration tests and bug bounty engagements, covering the full attack lifecycle: endpoint discovery, introspection abuse and blind schema reconstruction when introspection is disabled, authentication and authorisation bypass through Relay node IDs and nested object traversal, injection via variables and directives, query batching for brute force and OTP bypass, denial of service through depth bombs and alias amplification, WebSocket subscription hijacking, information disclosure through verbose errors and field suggestion oracles, and file upload abuse via the multipart GraphQL specification. Tooling: InQL, graphql-cop, CrackQL, BatchQL, Altair, GraphQL Voyager, clairvoyance. Trigger on GraphQL, introspection query, batching attack, query depth, GraphQL injection, GraphQL IDOR, field suggestion, GraphQL auth bypass, GraphQL DoS, Relay node, alias amplification, subscription abuse, multipart upload, schema enumeration, __schema, __type." --- # Offensive GraphQL diff --git a/claude-skills.json b/claude-skills.json index 01d1f36..98131c1 100644 --- a/claude-skills.json +++ b/claude-skills.json @@ -153,7 +153,7 @@ "name": "offensive-api-abuse", "category": "api", "path": "Skills/api/offensive-api-abuse/SKILL.md", - "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." }, { "name": "offensive-api-security", @@ -177,19 +177,19 @@ "name": "offensive-cicd-pipeline", "category": "cicd", "path": "Skills/cicd/offensive-cicd-pipeline/SKILL.md", - "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)." }, { "name": "offensive-cicd-secrets", "category": "cicd", "path": "Skills/cicd/offensive-cicd-secrets/SKILL.md", - "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." }, { "name": "offensive-cloud", "category": "cloud", "path": "Skills/cloud/offensive-cloud/SKILL.md", - "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." }, { "name": "offensive-container-escape", @@ -201,19 +201,19 @@ "name": "offensive-k8s-attacks", "category": "container", "path": "Skills/container/offensive-k8s-attacks/SKILL.md", - "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." }, { "name": "offensive-crypto-attacks", "category": "crypto", "path": "Skills/crypto/offensive-crypto-attacks/SKILL.md", - "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." }, { "name": "offensive-tls-attacks", "category": "crypto", "path": "Skills/crypto/offensive-tls-attacks/SKILL.md", - "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." }, { "name": "offensive-basic-exploitation", @@ -255,13 +255,13 @@ "name": "offensive-anti-forensics", "category": "forensics", "path": "Skills/forensics/offensive-anti-forensics/SKILL.md", - "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." }, { "name": "offensive-c2-frameworks", "category": "forensics", "path": "Skills/forensics/offensive-c2-frameworks/SKILL.md", - "description": "Command and Control framework deployment, configuration, and operational tradecraft for red team engagements. Covers Cobalt Strike (malleable C2 profiles, Beacon types HTTP/HTTPS/DNS/SMB, Beacon Object Files for in-memory execution, sleep and jitter tuning, named pipe pivoting), Sliver (implant generation across mTLS/WireGuard/DNS transport, operator multiplayer mode, armory extensions), Mythic (agent ecosystem with Apollo/Poseidon/Medusa, C2 profile configuration, translation containers), Havoc (Demon agent with sleep obfuscation via Ekko/Zilean, indirect syscalls, dotnet inline execution), Metasploit (msfvenom payload generation, multi/handler staging, Meterpreter post-exploitation modules), redirector architecture using Apache mod_rewrite and Nginx, domain fronting through CDN providers, DNS-based C2 for restrictive network egress, and TLS certificate management for infrastructure OPSEC. Tools: Cobalt Strike, Sliver, Mythic, Havoc, Metasploit Framework. Aligns to MITRE ATT&CK T1071 (Application Layer Protocol), T1573 (Encrypted Channel), T1090 (Proxy/Connection Proxy)." + "description": "Command and Control framework deployment, configuration and operational tradecraft for red team engagements: Cobalt Strike (malleable C2 profiles, HTTP/HTTPS/DNS/SMB Beacon types, Beacon Object Files for in-memory execution, sleep and jitter tuning, named pipe pivoting), Sliver (implants over mTLS/WireGuard/DNS, operator multiplayer mode, armory extensions), Mythic (Apollo/Poseidon/Medusa agents, C2 profiles, translation containers), Havoc (Demon agent with Ekko/Zilean sleep obfuscation, indirect syscalls, .NET inline execution), and Metasploit (msfvenom payloads, multi/handler staging, Meterpreter modules). Also covers redirector architecture with Apache mod_rewrite and Nginx, domain fronting through CDNs, DNS-based C2 for restrictive egress, and TLS certificate management for infrastructure OPSEC. Aligns to MITRE ATT&CK T1071, T1573, T1090." }, { "name": "offensive-bug-identification", @@ -351,7 +351,7 @@ "name": "offensive-data-exfiltration", "category": "post-exploitation", "path": "Skills/post-exploitation/offensive-data-exfiltration/SKILL.md", - "description": "Dense methodology covering DNS exfiltration (dnscat2, iodine, dns2tcp), HTTPS tunneling (domain fronting, CDN abuse, legitimate service channels), ICMP tunneling (icmpsh, ptunnel-ng), cloud storage dead drops (S3 presigned URLs, Azure Blob SAS tokens, GCS signed URLs), email-based exfil (SMTP, EWS, draft method), steganography (image, audio, document metadata), encoding/encryption (base64 chunking, XOR, AES), covert channels (custom protocol tunneling, HTTP header encoding, timing channels), and data staging (compression, splitting, encryption). Tools: dnscat2, iodine, dns2tcp, PacketWhisper, chisel, stunnel, icmpsh, ptunnel-ng, steghide, zsteg, OpenStego. MITRE ATT&CK: T1048 (Exfiltration Over Alternative Protocol), T1041 (Exfiltration Over C2 Channel), T1567 (Exfiltration Over Web Service), T1029 (Scheduled Transfer), T1030 (Data Transfer Size Limits), T1132 (Data Encoding), T1001 (Data Obfuscation). Use when planning or executing data exfiltration during authorized red team engagements or post-exploitation." + "description": "Methodology covering DNS exfiltration (dnscat2, iodine, dns2tcp), HTTPS tunnelling (domain fronting, CDN abuse, legitimate service channels), ICMP tunnelling (icmpsh, ptunnel-ng), cloud storage dead drops (S3 presigned URLs, Azure Blob SAS tokens, GCS signed URLs), email-based exfil (SMTP, EWS, draft method), steganography (image, audio, document metadata), encoding and encryption (base64 chunking, XOR, AES), covert channels (custom protocol tunnelling, HTTP header encoding, timing channels), and data staging (compression, splitting, encryption). Tools: dnscat2, iodine, dns2tcp, PacketWhisper, chisel, stunnel, icmpsh, ptunnel-ng, steghide, zsteg, OpenStego. MITRE ATT&CK: T1048, T1041, T1567, T1029, T1030, T1132, T1001. Use when planning or executing exfiltration during authorised red team engagements." }, { "name": "offensive-lateral-movement", @@ -363,19 +363,19 @@ "name": "offensive-persistence", "category": "post-exploitation", "path": "Skills/post-exploitation/offensive-persistence/SKILL.md", - "description": "Comprehensive persistence tradecraft for authorized red team engagements covering Windows and Linux mechanisms. Windows techniques include registry Run/RunOnce keys, scheduled tasks, WMI event subscriptions, DLL search order hijacking, COM object hijacking, Startup folder drops, service creation, Security Support Provider (SSP) DLL injection, and Active Directory persistence (AdminSDHolder abuse, DCShadow, Golden Ticket, Silver Ticket, Skeleton Key, SID History injection). Linux techniques include cron and at jobs, systemd timers and services, SSH authorized_keys injection, shell profile backdoors (.bashrc/.bash_profile), PAM module backdoors, LD_PRELOAD hijacking, kernel module rootkits, web shells, and Git hook abuse. Provides operator-ready command sequences for SharPersist, Impacket ticketer, schtasks, sc.exe, crontab, and systemctl with OPSEC considerations for each method. Maps to MITRE ATT&CK T1547 (Boot or Logon Autostart), T1053 (Scheduled Task/Job), T1546 (Event Triggered Execution), T1556 (Modify Authentication Process), and sub-techniques. Includes detection indicators and a rapid engagement cheatsheet." + "description": "Persistence tradecraft for authorised red team engagements across Windows and Linux. Windows: registry Run/RunOnce keys, scheduled tasks, WMI event subscriptions, DLL search order hijacking, COM object hijacking, Startup folder drops, service creation, SSP DLL injection, and Active Directory persistence (AdminSDHolder abuse, DCShadow, Golden and Silver Tickets, Skeleton Key, SID History injection). Linux: cron and at jobs, systemd timers and services, SSH authorised_keys injection, shell profile backdoors, PAM module backdoors, LD_PRELOAD hijacking, kernel module rootkits, web shells, and Git hook abuse. Provides operator-ready sequences for SharPersist, Impacket ticketer, schtasks, sc.exe, crontab and systemctl with OPSEC notes. Maps to MITRE ATT&CK T1547, T1053, T1546, T1556 and sub-techniques. Includes detection indicators and a rapid cheatsheet." }, { "name": "offensive-linux-privesc", "category": "privesc", "path": "Skills/privesc/offensive-linux-privesc/SKILL.md", - "description": "Comprehensive Linux privilege escalation methodology for offensive security engagements. Covers the full attack surface from a low-privilege shell to root: SUID/SGID binary abuse via GTFOBins, Linux capabilities exploitation (cap_setuid, cap_dac_override, cap_dac_read_search), sudo misconfigurations including NOPASSWD rules and Baron Samedit (CVE-2021-3156), cron job abuse through writable scripts, PATH hijacking, and wildcard injection with tar/rsync/chown. Includes writable /etc/passwd attacks, NFS no_root_squash exploitation, kernel exploits (DirtyPipe CVE-2022-0847, DirtyCow CVE-2016-5195, PwnKit CVE-2021-4034), Docker group container escapes, LD_PRELOAD and LD_LIBRARY_PATH hijacking for shared library injection, systemd service misconfigurations, and sensitive file enumeration for credential harvesting. Integrates automated enumeration with LinPEAS, linux-exploit-suggester, pspy for process monitoring, and GTFOBins for binary exploitation. Each technique includes detection signatures and defender-side visibility to support purple team operations. Maps to MITRE ATT&CK T1548 (Abuse Elevation Control Mechanism) and related sub-techniques. Designed for authorized penetration testing, red team engagements, and CTF competitions where you hold a low-privilege shell and need to escalate to root." + "description": "Linux privilege escalation methodology covering the attack surface from a low-privilege shell to root: SUID/SGID binary abuse via GTFOBins, Linux capabilities exploitation (cap_setuid, cap_dac_override, cap_dac_read_search), sudo misconfigurations including NOPASSWD rules and Baron Samedit (CVE-2021-3156), cron job abuse through writable scripts, PATH hijacking, and wildcard injection with tar/rsync/chown. Also covers writable /etc/passwd attacks, NFS no_root_squash, kernel exploits (DirtyPipe CVE-2022-0847, DirtyCow CVE-2016-5195, PwnKit CVE-2021-4034), Docker group container escapes, LD_PRELOAD and LD_LIBRARY_PATH hijacking, systemd service misconfigurations, and sensitive file enumeration for credentials. Enumeration with LinPEAS, linux-exploit-suggester, pspy and GTFOBins. Each technique includes detection signatures and defender visibility. Maps to MITRE ATT&CK T1548. Use when you hold a low-privilege shell and need root." }, { "name": "offensive-windows-privesc", "category": "privesc", "path": "Skills/privesc/offensive-windows-privesc/SKILL.md", - "description": "Comprehensive Windows privilege escalation methodology for offensive security engagements. Covers the full attack surface from a standard user shell to NT AUTHORITY\\SYSTEM: token impersonation via SeImpersonate and SeAssignPrimaryToken privileges using JuicyPotato, PrintSpoofer, GodPotato, SweetPotato, and RoguePotato; service misconfigurations including unquoted service paths, weak service DACLs, writable service binaries, and insecure service creation permissions; AlwaysInstallElevated MSI exploitation; DLL hijacking through search order abuse, phantom DLL loading, and writable PATH directory injection; UAC bypass techniques via fodhelper.exe, eventvwr.exe, CMSTP, and environment variable manipulation; scheduled task abuse for writable task actions and new task creation; registry autorun exploitation for persistence and escalation; PrintNightmare (CVE-2021-34527) for remote and local privilege escalation; and credential harvesting from SAM database extraction, DPAPI blob decryption, LSA secret dumping, and Credential Manager enumeration. Integrates automated enumeration with WinPEAS, PowerUp, SharpUp, Seatbelt, and BeRoot. Each technique includes detection signatures and defender-side visibility for purple team operations. Maps to MITRE ATT&CK T1548 (Abuse Elevation Control Mechanism) and T1574 (Hijack Execution Flow). Designed for authorized penetration testing, red team engagements, and CTF competitions where you hold a standard user shell and need to escalate to SYSTEM or local Administrator." + "description": "Windows privilege escalation methodology covering the attack surface from a standard user shell to SYSTEM: token impersonation via SeImpersonate and SeAssignPrimaryToken with JuicyPotato, PrintSpoofer, GodPotato, SweetPotato and RoguePotato; service misconfigurations including unquoted service paths, weak service DACLs, writable service binaries and insecure service creation permissions; AlwaysInstallElevated MSI exploitation; DLL hijacking through search order abuse, phantom DLL loading and writable PATH directory injection; UAC bypass via fodhelper.exe, eventvwr.exe, CMSTP and environment variable manipulation; scheduled task abuse; registry autorun exploitation; PrintNightmare (CVE-2021-34527); and credential harvesting from SAM extraction, DPAPI blob decryption, LSA secret dumping and Credential Manager enumeration. Enumeration with WinPEAS, PowerUp, SharpUp, Seatbelt and BeRoot. Maps to MITRE ATT&CK T1548 and T1574. Use when you hold a standard user shell and need SYSTEM or local Administrator." }, { "name": "offensive-osint", @@ -393,25 +393,25 @@ "name": "offensive-phishing", "category": "social-engineering", "path": "Skills/social-engineering/offensive-phishing/SKILL.md", - "description": "Phishing campaign execution methodology for authorized red team engagements. Covers end-to-end campaign lifecycle: infrastructure provisioning (GoPhish, SMTP relay configuration, domain acquisition and aging, SPF/DKIM/DMARC alignment), payload delivery vectors (Office macro weaponization, HTA droppers, ISO/IMG container abuse, LNK shortcut hijacking, OneNote embedded payloads, HTML smuggling), email authentication bypass techniques (SPF softfail exploitation, DKIM replay attacks, display name spoofing, homoglyph and cousin domain registration), credential harvesting with MFA bypass (EvilGinx2 transparent proxy, Modlishka session relay, pixel-perfect HTML cloning), spear phishing pretext development informed by OSINT, email security gateway evasion, QR code phishing (quishing), and callback phishing for initial access. Integrates with GoPhish for campaign management, EvilGinx2 for adversary-in-the-middle credential interception, King Phisher for template design, and the Social Engineering Toolkit for payload generation. Maps to MITRE ATT&CK T1566 (Phishing) and sub-techniques T1566.001 (Spearphishing Attachment), T1566.002 (Spearphishing Link), T1566.003 (Spearphishing via Service). Assumes you have written authorization and a defined scope before any campaign execution." + "description": "Phishing campaign execution methodology for authorised red team engagements, covering the campaign lifecycle: infrastructure provisioning (GoPhish, SMTP relay configuration, domain acquisition and ageing, SPF/DKIM/DMARC alignment), payload delivery (Office macro weaponisation, HTA droppers, ISO/IMG container abuse, LNK shortcut hijacking, OneNote embedded payloads, HTML smuggling), email authentication bypass (SPF softfail exploitation, DKIM replay, display name spoofing, homoglyph and cousin domain registration), credential harvesting with MFA bypass (EvilGinx2 transparent proxy, Modlishka session relay, pixel-perfect cloning), OSINT-informed spear phishing pretexts, email gateway evasion, QR code phishing (quishing), and callback phishing for initial access. Tooling: GoPhish, EvilGinx2, King Phisher, Social Engineering Toolkit. Maps to MITRE ATT&CK T1566, T1566.001, T1566.002, T1566.003. Requires written authorisation and a defined scope." }, { "name": "offensive-social-engineering", "category": "social-engineering", "path": "Skills/social-engineering/offensive-social-engineering/SKILL.md", - "description": "Social engineering attack techniques beyond email phishing for authorized red team and physical penetration testing engagements. Covers pretexting methodology (persona creation, authority and urgency psychological triggers, rapport building), vishing (voice phishing via caller ID spoofing, IVR system exploitation, VoIP infrastructure setup with Twilio/Asterisk), smishing (SMS-based phishing, carrier gateway abuse, short code impersonation), physical social engineering (tailgating and piggybacking, RFID badge cloning with Proxmark3, lock picking and bypass, dumpster diving for sensitive documents), USB drop attacks (Rubber Ducky keystroke injection, Bash Bunny multi-vector payloads, O.MG cable covert implants, BadUSB firmware attacks), watering hole attack planning and execution, and OSINT-driven targeting (LinkedIn harvesting, organizational chart reconstruction, employee pattern analysis). Integrates with the Social Engineering Toolkit for attack automation, Proxmark3 for RFID/NFC cloning, USB Rubber Ducky and Bash Bunny for physical payload delivery, and BeEF for browser exploitation. Maps to MITRE ATT&CK T1598 (Phishing for Information), T1566 (Phishing), T1091 (Replication Through Removable Media), and T1189 (Drive-by Compromise). All techniques require explicit written authorization and defined rules of engagement." + "description": "Social engineering techniques beyond email phishing for authorised red team and physical penetration tests: pretexting methodology (persona creation, authority and urgency triggers, rapport building), vishing (caller ID spoofing, IVR exploitation, VoIP setup with Twilio/Asterisk), smishing (SMS phishing, carrier gateway abuse, short code impersonation), physical social engineering (tailgating and piggybacking, RFID badge cloning with Proxmark3, lock picking and bypass, dumpster diving), USB drop attacks (Rubber Ducky keystroke injection, Bash Bunny multi-vector payloads, O.MG cable implants, BadUSB firmware attacks), watering hole planning and execution, and OSINT-driven targeting (LinkedIn harvesting, org chart reconstruction, employee pattern analysis). Tooling: Social Engineering Toolkit, Proxmark3, USB Rubber Ducky, Bash Bunny, BeEF. Maps to MITRE ATT&CK T1598, T1566, T1091, T1189. All techniques require explicit written authorisation." }, { "name": "offensive-dependency-confusion", "category": "supply-chain", "path": "Skills/supply-chain/offensive-dependency-confusion/SKILL.md", - "description": "Deep-dive offensive methodology for dependency confusion and namespace attacks across all major package ecosystems. Covers npm scope confusion exploiting the gap between public and private scoped packages and .npmrc misconfigurations where registry mappings fail to pin internal scopes exclusively. Addresses PyPI namespace attacks through --extra-index-url resolution ordering, NuGet feed priority exploitation when multiple package sources are configured without clear directives, Maven and Gradle repository ordering where artifact resolution traverses repositories sequentially, Go module proxy abuse through GOPROXY misconfiguration, Ruby gems namespace squatting, and Docker image tag confusion with unqualified image references. Provides complete proof-of-concept methodology using safe callbacks including DNS canary via interactsh or Burp Collaborator and HTTP beacon with no destructive payload. Covers reconnaissance techniques for discovering internal package names through GitHub repository analysis, error message harvesting, JavaScript source map extraction, lock file parsing, job postings mentioning internal tools, and package manifest inspection. Directly references and builds upon Alex Birsan's seminal 2021 dependency confusion research. Each ecosystem section includes registry-specific exploitation mechanics, configuration vulnerabilities, and defensive countermeasures for engagement reporting." + "description": "Offensive methodology for dependency confusion and namespace attacks across package ecosystems: npm scope confusion exploiting gaps between public and private scoped packages and .npmrc registry mappings that fail to pin internal scopes; PyPI namespace attacks through --extra-index-url resolution ordering; NuGet feed priority exploitation when multiple sources lack clear directives; Maven and Gradle repository ordering where artifacts resolve sequentially; Go module proxy abuse through GOPROXY misconfiguration; Ruby gems namespace squatting; and Docker image tag confusion with unqualified references. Proof-of-concept work uses safe callbacks only (interactsh or Burp Collaborator DNS canary, HTTP beacon, no destructive payload). Reconnaissance covers internal package names via GitHub analysis, error messages, source maps, lock files, job postings and manifests. Builds on Alex Birsan's 2021 research; each ecosystem section covers mechanics, flaws and countermeasures." }, { "name": "offensive-supply-chain", "category": "supply-chain", "path": "Skills/supply-chain/offensive-supply-chain/SKILL.md", - "description": "Comprehensive offensive methodology for software supply chain attacks covering the full kill chain from reconnaissance through exploitation. Addresses dependency confusion across npm, PyPI, and NuGet ecosystems where internal registry override allows an attacker to inject malicious packages that shadow private dependencies. Covers typosquatting techniques for popular packages, compromised package injection via maintainer account takeover or social engineering, and build system attacks through Makefile injection, setup.py install hooks, and npm postinstall scripts. Extends into CI/CD artifact tampering where build outputs are replaced or modified in transit, code signing abuse through stolen or self-signed certificates, upstream repository compromise via commit injection or force-push to trusted repos, and container image supply chain attacks including base image trojaning and registry confusion. Maps to MITRE ATT&CK T1195.001 (Supply Chain Compromise: Compromise Software Dependencies and Development Tools) and T1195.002 (Supply Chain Compromise: Compromise Software Supply Chain). Integrates tooling such as confused for dependency confusion scanning and dependency-check for known vulnerable component detection. Each technique section provides reproducible proof-of-concept patterns, detection guidance for defenders, and engagement-safe execution notes for authorized red team operations." + "description": "Offensive methodology for software supply chain attacks covering the kill chain from reconnaissance to exploitation: dependency confusion across npm, PyPI and NuGet where internal registry override lets an attacker inject packages that shadow private dependencies; typosquatting of popular packages; compromised package injection via maintainer account takeover or social engineering; build system attacks through Makefile injection, setup.py install hooks and npm postinstall scripts; CI/CD artifact tampering where build outputs are replaced in transit; code signing abuse with stolen or self-signed certificates; upstream repository compromise via commit injection or force-push; and container image attacks including base image trojaning and registry confusion. Maps to MITRE ATT&CK T1195.001 and T1195.002. Tooling: confused, dependency-check. Each technique includes reproducible proof-of-concept patterns, detection guidance and engagement-safe execution notes." }, { "name": "offensive-fast-checking", @@ -447,7 +447,7 @@ "name": "offensive-graphql", "category": "web", "path": "Skills/web/offensive-graphql/SKILL.md", - "description": "Offensive methodology for attacking GraphQL APIs during penetration tests and bug bounty engagements. Covers the full attack lifecycle: endpoint discovery, introspection abuse and blind schema reconstruction when introspection is disabled, authentication and authorization bypass through Relay node IDs and nested object traversal, injection via variables and directives, query batching for brute force and OTP bypass, denial of service through depth bombs and alias amplification, WebSocket subscription hijacking, information disclosure through verbose errors and field suggestion oracles, and file upload abuse via the multipart GraphQL specification. Includes tool-specific guidance for InQL, graphql-cop, CrackQL, BatchQL, Altair, GraphQL Voyager, and clairvoyance. Trigger on: GraphQL, graphql, introspection query, batching attack, query depth, GraphQL injection, GraphQL IDOR, field suggestion, GraphQL auth bypass, GraphQL DoS, GraphQL security, graphql-cop, InQL, CrackQL, BatchQL, Relay node, alias amplification, subscription abuse, multipart upload GraphQL, schema enumeration, __schema, __type." + "description": "Offensive methodology for attacking GraphQL APIs during penetration tests and bug bounty engagements, covering the full attack lifecycle: endpoint discovery, introspection abuse and blind schema reconstruction when introspection is disabled, authentication and authorisation bypass through Relay node IDs and nested object traversal, injection via variables and directives, query batching for brute force and OTP bypass, denial of service through depth bombs and alias amplification, WebSocket subscription hijacking, information disclosure through verbose errors and field suggestion oracles, and file upload abuse via the multipart GraphQL specification. Tooling: InQL, graphql-cop, CrackQL, BatchQL, Altair, GraphQL Voyager, clairvoyance. Trigger on GraphQL, introspection query, batching attack, query depth, GraphQL injection, GraphQL IDOR, field suggestion, GraphQL auth bypass, GraphQL DoS, Relay node, alias amplification, subscription abuse, multipart upload, schema enumeration, __schema, __type." }, { "name": "offensive-idor", diff --git a/tools/check_descriptions.py b/tools/check_descriptions.py new file mode 100644 index 0000000..206d48b --- /dev/null +++ b/tools/check_descriptions.py @@ -0,0 +1,123 @@ +#!/usr/bin/env python3 +"""Validate SKILL.md frontmatter against the Agent Skills specification. + +Checks the required `name` and `description` fields for every SKILL.md under +Skills/ using the constraints from https://agentskills.io/specification: +`name` is 1-64 chars of lowercase letters, digits and hyphens, must not start +or end with a hyphen, must not contain consecutive hyphens, and must match the +skill's directory name; `description` is 1-1024 chars. +""" +from __future__ import annotations + +import re +import sys +from pathlib import Path + +ROOT = Path(__file__).resolve().parent.parent +SKILLS_DIR = ROOT / "Skills" + +DESCRIPTION_MAX = 1024 +NAME_MAX = 64 +NAME_RE = re.compile(r"^[a-z0-9]+(-[a-z0-9]+)*$") +FRONTMATTER_RE = re.compile(r"^---\n(.*?)\n---", re.DOTALL) + + +def parse_frontmatter(text: str) -> dict[str, str]: + """Return the frontmatter as a mapping of top-level keys to strings. + + Only string fields are needed here, so folded (`>`) and literal (`|`) + block scalars are joined into one line; quoted and plain scalars are + unquoted. + """ + match = FRONTMATTER_RE.match(text) + if not match: + return {} + + fields: dict[str, str] = {} + key: str | None = None + block: list[str] = [] + folded = False + + def flush() -> None: + if key is None: + return + value = "\n".join(block).strip() + if folded: + value = " ".join(part.strip() for part in block if part.strip()) + if len(value) >= 2 and value[0] == value[-1] and value[0] in "\"'": + value = value[1:-1] + fields[key] = value + + for line in match.group(1).splitlines(): + if not line.strip(): + continue + if ":" in line and not line.startswith((" ", "\t")): + flush() + key, _, value = line.partition(":") + key = key.strip() + value = value.strip() + folded = value in (">", "|-", "|", ">-") + block = [] if folded else [value] + elif key is not None: + block.append(line) + flush() + return fields + + +def check_skill(skill_md: Path) -> list[str]: + problems: list[str] = [] + rel = skill_md.relative_to(ROOT) + fields = parse_frontmatter(skill_md.read_text(encoding="utf-8")) + + if not fields: + return [f"{rel}: missing YAML frontmatter"] + + name = fields.get("name", "") + if not name: + problems.append(f"{rel}: missing required `name`") + else: + if len(name) > NAME_MAX: + problems.append(f"{rel}: name is {len(name)} chars (max {NAME_MAX})") + if not NAME_RE.match(name): + problems.append( + f"{rel}: name {name!r} must be lowercase letters, digits and single hyphens" + ) + if name != skill_md.parent.name: + problems.append( + f"{rel}: name {name!r} does not match directory {skill_md.parent.name!r}" + ) + + description = fields.get("description", "") + if not description: + problems.append(f"{rel}: missing required `description`") + elif len(description) > DESCRIPTION_MAX: + problems.append( + f"{rel}: description is {len(description)} chars " + f"({len(description) - DESCRIPTION_MAX} over the {DESCRIPTION_MAX} limit)" + ) + return problems + + +def main() -> int: + skill_files = sorted(SKILLS_DIR.rglob("SKILL.md")) + if not skill_files: + print(f"No SKILL.md files found under {SKILLS_DIR}") + return 1 + + problems: list[str] = [] + for skill_md in skill_files: + problems.extend(check_skill(skill_md)) + + for problem in problems: + print(problem) + + if problems: + print(f"\n{len(problems)} problem(s) in {len(skill_files)} skills") + return 1 + + print(f"OK: {len(skill_files)} skills conform to the Agent Skills spec") + return 0 + + +if __name__ == "__main__": + raise SystemExit(main())