repo
stringclasses
454 values
file_path
stringlengths
5
201
extension
stringclasses
1 value
content
stringlengths
8
509k
num_lines
int64
3
16.9k
size_bytes
int64
8
511k
Anthropic-Cybersecurity-Skills
skills/performing-content-security-policy-bypass/scripts/agent.py
.py
#!/usr/bin/env python3 """Content Security Policy (CSP) analysis and bypass testing agent. Fetches and analyzes CSP headers from web applications to identify misconfigurations, overly permissive directives, and potential bypass vectors. Tests for unsafe-inline, unsafe-eval, wildcard sources, missing directives, and kn...
313
11,240
Anthropic-Cybersecurity-Skills
skills/remediating-s3-bucket-misconfiguration/scripts/agent.py
.py
#!/usr/bin/env python3 """S3 bucket misconfiguration remediation agent using boto3.""" import json import sys try: import boto3 from botocore.exceptions import ClientError except ImportError: print("Install: pip install boto3") sys.exit(1) def get_s3_client(region="us-east-1"): return boto3.clie...
209
7,661
Anthropic-Cybersecurity-Skills
skills/building-incident-response-dashboard/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for building and managing incident response dashboards in Splunk.""" import os import json import argparse from datetime import datetime import splunklib.client as client import splunklib.results as results def connect_splunk(host, port, username, password): """Connect to Splunk ...
186
7,343
Anthropic-Cybersecurity-Skills
skills/testing-oauth2-implementation-flaws/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for testing OAuth 2.0 implementation flaws. Tests OAuth authorization code flow, redirect URI validation, state/PKCE enforcement, token leakage, scope escalation, and OIDC ID token validation weaknesses. """ import json import sys import secrets from pathlib import Path from datetime i...
198
8,172
Anthropic-Cybersecurity-Skills
skills/exploiting-websocket-vulnerabilities/scripts/agent.py
.py
#!/usr/bin/env python3 # For authorized testing in lab/CTF environments only """WebSocket vulnerability assessment agent using websockets and requests.""" import argparse import asyncio import json import logging import sys from typing import List, Optional try: import websockets except ImportError: sys.exit(...
212
8,467
Anthropic-Cybersecurity-Skills
skills/implementing-mitre-attack-coverage-mapping/scripts/process.py
.py
#!/usr/bin/env python3 """ MITRE ATT&CK Coverage Mapping Tool Builds and analyzes detection coverage maps against the MITRE ATT&CK framework for SOC detection gap analysis. """ import json from datetime import datetime ATTACK_TACTICS = { "TA0043": "Reconnaissance", "TA0042": "Resource Development", "TA0...
199
9,055
Anthropic-Cybersecurity-Skills
skills/implementing-mitre-attack-coverage-mapping/scripts/agent.py
.py
#!/usr/bin/env python3 """MITRE ATT&CK Coverage Mapping Agent - maps detection rules to ATT&CK techniques and identifies gaps.""" import json import argparse import logging from collections import defaultdict from datetime import datetime logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(m...
177
7,004
Anthropic-Cybersecurity-Skills
skills/triaging-windows-with-kape/scripts/agent.py
.py
#!/usr/bin/env python3 """ KAPE triage helper. Builds and (optionally) executes validated KAPE command lines for collection and module processing, generates batch _kape.cli files for fleet deployment, and verifies CopyLog hashes for chain of custody. KAPE is Windows-only; this helper builds the commands and runs them...
163
6,355
Anthropic-Cybersecurity-Skills
skills/implementing-cloud-dlp-for-data-protection/scripts/agent.py
.py
#!/usr/bin/env python3 """Cloud DLP agent for sensitive data discovery using Google Cloud DLP and AWS Macie.""" import json import argparse from datetime import datetime try: import boto3 from botocore.exceptions import ClientError except ImportError: boto3 = None try: from google.cloud import dlp_v2...
197
7,377
Anthropic-Cybersecurity-Skills
skills/implementing-kubernetes-pod-security-standards/scripts/process.py
.py
#!/usr/bin/env python3 """ Kubernetes Pod Security Standards Compliance Checker Audits namespaces and workloads for PSS enforcement levels and identifies non-compliant pods. """ import subprocess import json import sys from dataclasses import dataclass, field @dataclass class PSSFinding: namespace: str reso...
309
11,335
Anthropic-Cybersecurity-Skills
skills/implementing-kubernetes-pod-security-standards/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for auditing Kubernetes Pod Security Standards enforcement.""" import json import argparse import subprocess from datetime import datetime from collections import Counter PSS_LEVELS = { "privileged": {"order": 0, "description": "Unrestricted, for system workloads"}, "baseline"...
186
7,680
Anthropic-Cybersecurity-Skills
skills/securing-historian-server-in-ot-environment/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for securing historian servers in OT environments. Audits network exposure, authentication configuration, data integrity protections, and DMZ replication architecture of process historian servers (OSIsoft PI, AVEVA, Honeywell PHD). """ import json import socket import sys from pathlib ...
216
8,022
Anthropic-Cybersecurity-Skills
skills/building-devsecops-pipeline-with-gitlab-ci/scripts/process.py
.py
#!/usr/bin/env python3 """ GitLab DevSecOps Pipeline Security Report Generator Queries GitLab API to aggregate security scanning results across projects and generate compliance reports. """ import json import os import sys import urllib.request import urllib.error from datetime import datetime from collections import...
175
6,111
Anthropic-Cybersecurity-Skills
skills/building-devsecops-pipeline-with-gitlab-ci/scripts/agent.py
.py
#!/usr/bin/env python3 """DevSecOps Pipeline Builder Agent - Generates GitLab CI security scanning pipeline configurations.""" import json import logging import argparse from datetime import datetime import requests logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(message)s") logger = lo...
136
4,951
Anthropic-Cybersecurity-Skills
skills/hunting-for-dcsync-attacks/scripts/agent.py
.py
#!/usr/bin/env python3 """DCSync Detection Agent - hunts for unauthorized AD replication requests via Event ID 4662 analysis.""" import json import argparse import logging import subprocess import re import xml.etree.ElementTree as ET from collections import defaultdict from datetime import datetime logging.basicConf...
230
9,941
Anthropic-Cybersecurity-Skills
skills/implementing-mtls-for-zero-trust-services/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for implementing and auditing mutual TLS between services.""" import os import ssl import json import socket import argparse from datetime import datetime, timedelta from cryptography import x509 from cryptography.x509.oid import NameOID, ExtendedKeyUsageOID from cryptography.hazmat.pr...
185
7,970
Anthropic-Cybersecurity-Skills
skills/hunting-for-spearphishing-indicators/scripts/process.py
.py
#!/usr/bin/env python3 """Spearphishing Detection - Analyzes logs for T1566.001 indicators.""" import json, csv, argparse, datetime, re from collections import defaultdict from pathlib import Path DETECTION_PATTERNS = [ r'winword\\.exe.*cmd\\.exe', r'excel\\.exe.*powershell', r'outlook\\.exe.*wscript', ...
81
3,634
Anthropic-Cybersecurity-Skills
skills/hunting-for-spearphishing-indicators/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for hunting spearphishing indicators across email and endpoint logs.""" import json import argparse import re from datetime import datetime SUSPICIOUS_EXTENSIONS = [ ".exe", ".scr", ".bat", ".cmd", ".ps1", ".vbs", ".js", ".hta", ".iso", ".img", ".lnk", ".dll", ".msi", ".wsf", ...
183
6,854
Anthropic-Cybersecurity-Skills
skills/performing-clickjacking-attack-test/scripts/agent.py
.py
#!/usr/bin/env python3 # For authorized penetration testing and educational environments only. # Usage against targets without prior mutual consent is illegal. # It is the end user's responsibility to obey all applicable local, state and federal laws. """ Clickjacking Attack Test Agent — AUTHORIZED TESTING ONLY Tests w...
235
7,479
Anthropic-Cybersecurity-Skills
skills/hunting-for-ntlm-relay-attacks/scripts/agent.py
.py
#!/usr/bin/env python3 """Detect NTLM relay attacks via Windows Event 4624 analysis, IP-hostname correlation, and SMB signing audit.""" import argparse import json import re import subprocess import sys from collections import defaultdict from datetime import datetime, timezone def query_security_log(event_id, max_e...
343
13,018
Anthropic-Cybersecurity-Skills
skills/building-identity-federation-with-saml-azure-ad/scripts/process.py
.py
#!/usr/bin/env python3 """ Azure AD Federation Configuration Auditor Validates federation configuration between on-premises AD FS and Azure AD, checks certificate health, and monitors federation authentication events. Requirements: pip install msal requests cryptography """ import json import sys from datetime i...
221
8,427
Anthropic-Cybersecurity-Skills
skills/building-identity-federation-with-saml-azure-ad/scripts/agent.py
.py
#!/usr/bin/env python3 """SAML Azure AD Federation Agent - Configures and validates SAML SSO with Azure AD.""" import json import logging import argparse import xml.etree.ElementTree as ET from datetime import datetime import requests logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(mess...
105
4,516
Anthropic-Cybersecurity-Skills
skills/implementing-cisa-zero-trust-maturity-model/scripts/process.py
.py
#!/usr/bin/env python3 """ CISA Zero Trust Maturity Model Assessment and Roadmap Generator. Evaluates organizational zero trust maturity across the five CISA ZTMM pillars (Identity, Devices, Networks, Applications, Data) and three cross-cutting capabilities (Visibility & Analytics, Automation & Orchestration, Governan...
416
16,055
Anthropic-Cybersecurity-Skills
skills/implementing-cisa-zero-trust-maturity-model/scripts/agent.py
.py
#!/usr/bin/env python3 """CISA Zero Trust Maturity Model assessment agent for organizational ZT posture evaluation.""" import argparse import json import logging import os from datetime import datetime from typing import Dict, List logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(message)...
176
6,254
Anthropic-Cybersecurity-Skills
skills/detecting-process-injection-techniques/scripts/agent.py
.py
#!/usr/bin/env python3 """Process injection detection agent using Volatility and Sysmon analysis.""" import json import os import subprocess import sys from datetime import datetime try: import Evtx.Evtx as evtx HAS_EVTX = True except ImportError: HAS_EVTX = False INJECTION_TECHNIQUES = { "classic_d...
234
9,240
Anthropic-Cybersecurity-Skills
skills/performing-web-cache-poisoning-attack/scripts/agent.py
.py
#!/usr/bin/env python3 # For authorized penetration testing and educational environments only. # Usage against targets without prior mutual consent is illegal. # It is the end user's responsibility to obey all applicable local, state and federal laws. """Web cache poisoning assessment agent using requests and subproces...
222
8,080
Anthropic-Cybersecurity-Skills
skills/analyzing-windows-amcache-artifacts/scripts/agent.py
.py
#!/usr/bin/env python3 """Windows Amcache.hve forensic analysis agent. Parses Amcache.hve registry hive to extract program execution history, file metadata, and device information using the regipy library. """ import argparse import json import sys import datetime try: from regipy.registry import RegistryHive ...
165
6,208
Anthropic-Cybersecurity-Skills
skills/detecting-malicious-scheduled-tasks-with-sysmon/scripts/agent.py
.py
#!/usr/bin/env python3 """Sysmon scheduled task detection agent for hunting malicious persistence.""" import json import argparse import re import base64 import xml.etree.ElementTree as ET from datetime import datetime SUSPICIOUS_PATHS = [ r"\\users\\public\\", r"\\programdata\\", r"\\windows\\temp\\", r"\\a...
216
7,798
Anthropic-Cybersecurity-Skills
skills/detecting-lateral-movement-with-zeek/scripts/process.py
.py
#!/usr/bin/env python3 """Parse Zeek logs to detect lateral movement indicators. Usage: python process.py smb_mapping <log_file> [--internal-nets 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16] python process.py conn <log_file> python process.py ntlm <log_file> [--window 300] python process.py dce_rpc <log_fi...
150
5,682
Anthropic-Cybersecurity-Skills
skills/detecting-lateral-movement-with-zeek/scripts/agent.py
.py
#!/usr/bin/env python3 """Zeek lateral movement detection agent. Parses Zeek conn.log, smb_mapping.log, smb_files.log, dce_rpc.log, ntlm.log, and kerberos.log to detect lateral movement indicators: admin share access, PsExec-style service creation, Pass-the-Hash, and anomalous internal host-to-host connections. """ i...
531
19,431
Anthropic-Cybersecurity-Skills
skills/attacking-entra-id-with-roadtools/scripts/agent.py
.py
#!/usr/bin/env python3 """ROADtools engagement orchestrator. Authorized Entra ID assessment helper. Wraps the real roadrecon/roadtx binaries to run an authenticated recon pass and a token-exchange pivot, then parses token claims. Requires `roadrecon` and `roadtx` on PATH (pip install roadrecon roadtx). Examples -----...
145
4,881
Anthropic-Cybersecurity-Skills
skills/triaging-security-alerts-in-splunk/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for triaging security alerts in Splunk Enterprise Security.""" import splunklib.client as splunk_client import splunklib.results as splunk_results import json import sys import argparse from datetime import datetime def connect_splunk(host, port, username, password): """Connect to...
214
9,549
Anthropic-Cybersecurity-Skills
skills/performing-open-source-intelligence-gathering/scripts/process.py
.py
#!/usr/bin/env python3 """ OSINT Gathering Automation Tool Performs automated open source intelligence collection including: - Subdomain enumeration via Certificate Transparency logs - DNS record collection - WHOIS information gathering - Technology fingerprinting - Google dorking query generation - Email pattern disc...
605
21,388
Anthropic-Cybersecurity-Skills
skills/performing-open-source-intelligence-gathering/scripts/agent.py
.py
#!/usr/bin/env python3 # For authorized penetration testing and educational environments only. # Usage against targets without prior mutual consent is illegal. # It is the end user's responsibility to obey all applicable local, state and federal laws. """Agent for performing open source intelligence (OSINT) gathering."...
177
6,849
Anthropic-Cybersecurity-Skills
skills/implementing-deception-based-detection-with-canarytoken/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for deploying and monitoring Canary Tokens via the Thinkst Canary API.""" import json import argparse from datetime import datetime try: import requests except ImportError: requests = None TOKEN_KINDS = { "http": "http", "dns": "dns", "doc-msword": "doc-msword", ...
233
8,276
Anthropic-Cybersecurity-Skills
skills/exploiting-broken-link-hijacking/scripts/agent.py
.py
#!/usr/bin/env python3 # For authorized penetration testing and educational environments only. # Usage against targets without prior mutual consent is illegal. # It is the end user's responsibility to obey all applicable local, state and federal laws. """Agent for detecting broken link hijacking vulnerabilities on webs...
149
4,953
Anthropic-Cybersecurity-Skills
skills/triaging-vulnerabilities-with-ssvc-framework/scripts/process.py
.py
#!/usr/bin/env python3 """SSVC Vulnerability Triage Processor. Evaluates vulnerabilities against CISA's Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree and produces prioritized triage reports. """ import argparse import csv import json import sys import time import xml.etree.ElementTree as ET f...
347
12,187
Anthropic-Cybersecurity-Skills
skills/triaging-vulnerabilities-with-ssvc-framework/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for triaging vulnerabilities with the SSVC framework. Implements CISA's Stakeholder-Specific Vulnerability Categorization decision tree to produce actionable priorities: Track, Track*, Attend, or Act based on exploitation status, technical impact, automatability, and mission prevalence....
220
8,262
Anthropic-Cybersecurity-Skills
skills/generating-and-analyzing-sboms/scripts/agent.py
.py
#!/usr/bin/env python3 """ SBOM generation + vulnerability correlation helper. Wraps Syft (SBOM generation), Grype (vulnerability scanning), and Cosign (attestation) with real flags. Can run the full pipeline (generate -> scan -> optionally attest) and summarize Grype JSON by severity for CI gating. References: htt...
160
5,466
Anthropic-Cybersecurity-Skills
skills/performing-nist-csf-maturity-assessment/scripts/process.py
.py
#!/usr/bin/env python3 """ NIST CSF 2.0 Maturity Assessment Automation Automates maturity scoring across all 6 CSF functions, gap analysis between current and target profiles, and improvement roadmap generation. """ import json import csv from datetime import datetime from pathlib import Path from dataclasses import ...
356
17,184
Anthropic-Cybersecurity-Skills
skills/performing-nist-csf-maturity-assessment/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for performing NIST Cybersecurity Framework (CSF) maturity assessment.""" import json import argparse import csv from datetime import datetime NIST_CSF_FUNCTIONS = { "IDENTIFY": { "categories": ["ID.AM", "ID.BE", "ID.GV", "ID.RA", "ID.RM", "ID.SC"], "descriptions":...
189
7,688
Anthropic-Cybersecurity-Skills
skills/performing-scada-hmi-security-assessment/scripts/agent.py
.py
#!/usr/bin/env python3 """SCADA HMI Security Assessment agent — analyzes SCADA HMI configurations for security weaknesses including default credentials, unencrypted protocols, and missing access controls.""" import argparse import json import socket from collections import Counter from datetime import datetime from pa...
187
6,908
Anthropic-Cybersecurity-Skills
skills/fleet-hunting-with-velociraptor/scripts/agent.py
.py
#!/usr/bin/env python3 """ Velociraptor fleet-hunting helper. Wraps the velociraptor binary to: run ad-hoc VQL queries, list/collect artifacts, validate custom artifact YAML, and scaffold a custom hunt artifact. All commands are real velociraptor subcommands. Reference: https://docs.velociraptor.app/ """ import argpa...
172
5,385
Anthropic-Cybersecurity-Skills
skills/configuring-snort-ids-for-intrusion-detection/scripts/agent.py
.py
#!/usr/bin/env python3 """Snort IDS configuration and rule management agent.""" import subprocess import json import os import re import sys from datetime import datetime from pathlib import Path SNORT_BIN = os.environ.get("SNORT_BIN", "/usr/local/bin/snort") SNORT_CONF = os.environ.get("SNORT_CONF", "/usr/local/etc...
203
7,287
Anthropic-Cybersecurity-Skills
skills/performing-post-quantum-cryptography-migration/scripts/agent.py
.py
#!/usr/bin/env python3 """ Agent for performing post-quantum cryptography migration assessment. Scans TLS endpoints for quantum-vulnerable algorithms, assesses crypto-agility readiness, tests hybrid TLS (X25519MLKEM768) support, validates ML-KEM and ML-DSA algorithm functionality, and generates prioritized migration r...
1,569
56,599
Anthropic-Cybersecurity-Skills
skills/implementing-email-sandboxing-with-proofpoint/scripts/process.py
.py
#!/usr/bin/env python3 """ Proofpoint TAP API Integration and Analysis Pulls threat data from Proofpoint TAP SIEM API, analyzes sandbox results, identifies Very Attacked People, and generates threat reports. Usage: python process.py threats --hours 24 python process.py vap python process.py campaign --id ...
242
9,244
Anthropic-Cybersecurity-Skills
skills/implementing-email-sandboxing-with-proofpoint/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for implementing and monitoring Proofpoint email sandboxing.""" import json import argparse from datetime import datetime try: import requests except ImportError: requests = None def get_tap_threats(base_url, principal, secret, time_range="PT1H"): """Query Proofpoint TAP ...
141
5,437
Anthropic-Cybersecurity-Skills
skills/implementing-ot-network-traffic-analysis-with-nozomi/scripts/agent.py
.py
#!/usr/bin/env python3 """Nozomi Networks OT Traffic Analysis Agent - monitors ICS protocols and detects anomalies.""" import json import argparse import logging import subprocess from collections import defaultdict from datetime import datetime logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname...
93
3,802
Anthropic-Cybersecurity-Skills
skills/detecting-typosquatting-packages/scripts/agent.py
.py
#!/usr/bin/env python3 """ Typosquatting screening helper. Generates the standard typogard/typomania mutation set for a candidate package name, screens names against a popular-name corpus, and enriches suspected squats with live registry metadata (npm / PyPI) to support triage. No third-party dependencies required (s...
215
7,505
Anthropic-Cybersecurity-Skills
skills/implementing-network-policies-for-kubernetes/scripts/process.py
.py
#!/usr/bin/env python3 """ Kubernetes Network Policy Auditor Checks for missing network policies, default-deny enforcement, and identifies namespaces without proper segmentation. """ import subprocess import json import sys from dataclasses import dataclass, field @dataclass class NetPolFinding: namespace: str ...
120
3,960
Anthropic-Cybersecurity-Skills
skills/implementing-network-policies-for-kubernetes/scripts/agent.py
.py
#!/usr/bin/env python3 """Kubernetes Network Policy Agent - audits pod-to-pod communication and network policy coverage.""" import json import argparse import logging import subprocess from datetime import datetime logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(message)s") logger = logg...
157
6,378
Anthropic-Cybersecurity-Skills
skills/implementing-identity-verification-for-zero-trust/scripts/process.py
.py
#!/usr/bin/env python3 """ Identity Verification Assessment Tool for Zero Trust Analyzes identity configurations, evaluates MFA strength, assesses conditional access policies, and generates identity maturity reports. """ import json import csv import sys from datetime import datetime, timedelta from pathlib import Pa...
393
14,618
Anthropic-Cybersecurity-Skills
skills/implementing-identity-verification-for-zero-trust/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for assessing identity verification controls in zero trust architecture.""" import json import argparse from datetime import datetime from collections import Counter CISA_ZT_IDENTITY_LEVELS = { "traditional": { "description": "Password-based auth, static policies", ...
223
8,824
Anthropic-Cybersecurity-Skills
skills/testing-api-for-mass-assignment-vulnerability/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for testing APIs for mass assignment vulnerabilities. Tests API endpoints for auto-binding vulnerabilities where clients can modify privileged fields (role, balance, permissions) by including extra parameters in request bodies. OWASP API3:2023. """ import json import sys from pathlib i...
199
8,168
Anthropic-Cybersecurity-Skills
skills/performing-phishing-simulation-with-gophish/scripts/process.py
.py
#!/usr/bin/env python3 """ GoPhish Campaign Automation and Analytics Automates phishing simulation campaigns via the GoPhish REST API. Creates campaigns, monitors progress, and generates detailed analytics reports. Usage: python process.py create --config campaign.json python process.py status --campaign-id 1...
516
20,505
Anthropic-Cybersecurity-Skills
skills/performing-phishing-simulation-with-gophish/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for performing phishing simulation campaigns with GoPhish API.""" import json import os import argparse from datetime import datetime try: import requests from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(Inse...
182
7,708
Anthropic-Cybersecurity-Skills
skills/implementing-runtime-security-with-tetragon/scripts/process.py
.py
#!/usr/bin/env python3 """ Tetragon Runtime Security Event Analyzer Parses Tetragon JSON event logs and generates security reports including process execution anomalies, policy violations, and container escape attempt detection. """ import json import sys import subprocess import argparse from datetime import datetim...
373
13,714
Anthropic-Cybersecurity-Skills
skills/implementing-runtime-security-with-tetragon/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for auditing Cilium Tetragon runtime security configuration.""" import argparse import json import subprocess from datetime import datetime, timezone try: from kubernetes import client, config as k8s_config except ImportError: client = None def check_tetragon_deployment(names...
106
4,193
Anthropic-Cybersecurity-Skills
skills/achieving-cmmc-level-2-compliance/scripts/process.py
.py
#!/usr/bin/env python3 """ CMMC Level 2 / NIST SP 800-171 Rev 2 SPRS score calculator. Implements the DoD Assessment Methodology arithmetic: start at 110 and subtract the weighted value (1, 3, or 5) of each NOT MET requirement, with partial credit for the small set of requirements that allow it. Reports the SPRS score...
199
7,774
Anthropic-Cybersecurity-Skills
skills/implementing-cloud-vulnerability-posture-management/scripts/process.py
.py
#!/usr/bin/env python3 """Cloud Vulnerability Posture Management Tool. Orchestrates multi-cloud security posture assessments using Prowler, aggregates findings, and generates compliance reports. """ import argparse import json import os import subprocess import sys from datetime import datetime, timezone from pathlib...
176
7,651
Anthropic-Cybersecurity-Skills
skills/implementing-cloud-vulnerability-posture-management/scripts/agent.py
.py
#!/usr/bin/env python3 """Cloud Security Posture Management agent using boto3 for AWS Security Hub and Prowler.""" import argparse import json import logging import os import subprocess import sys from datetime import datetime from typing import List try: import boto3 from botocore.exceptions import ClientErr...
134
5,376
Anthropic-Cybersecurity-Skills
skills/detecting-ai-model-prompt-injection-attacks/scripts/agent.py
.py
#!/usr/bin/env python3 """ Prompt Injection Detection Agent Multi-layered detector for identifying prompt injection attacks targeting LLM applications. Combines regex pattern matching, heuristic anomaly scoring, and DeBERTa-based classification to provide defense-in-depth against direct and indirect prompt injection a...
416
17,530
Anthropic-Cybersecurity-Skills
skills/performing-kubernetes-cis-benchmark-with-kube-bench/scripts/process.py
.py
#!/usr/bin/env python3 """ kube-bench CIS Benchmark Reporter - Parse kube-bench JSON output and generate compliance reports with trend tracking. """ import json import sys import argparse from pathlib import Path from datetime import datetime from collections import Counter def parse_kube_bench_json(filepath: str) -...
181
6,139
Anthropic-Cybersecurity-Skills
skills/performing-kubernetes-cis-benchmark-with-kube-bench/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for performing Kubernetes CIS benchmark assessment with kube-bench.""" import json import argparse import subprocess from datetime import datetime def run_kube_bench(target="node", benchmark=None): """Execute kube-bench CIS benchmark scan.""" cmd = ["kube-bench", "run", "--jso...
172
7,990
Anthropic-Cybersecurity-Skills
skills/exploiting-zerologon-vulnerability-cve-2020-1472/scripts/process.py
.py
#!/usr/bin/env python3 """ Zerologon (CVE-2020-1472) Vulnerability Scanner and Detector Checks domain controllers for Zerologon vulnerability status and detects exploitation attempts from Windows Event Logs. NOTE: This is a detection/scanning tool, not an exploit. """ import json import os import struct import socket...
298
11,566
Anthropic-Cybersecurity-Skills
skills/exploiting-zerologon-vulnerability-cve-2020-1472/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for detecting Zerologon (CVE-2020-1472) vulnerability — authorized testing only.""" import argparse import json import subprocess import sys from datetime import datetime, timezone def check_zerologon_nmap(dc_ip): """Use nmap script to check for Zerologon vulnerability.""" try...
131
4,840
Anthropic-Cybersecurity-Skills
skills/testing-websocket-api-security/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for testing WebSocket API security. Tests WebSocket endpoints for missing authentication, Cross-Site WebSocket Hijacking (CSWSH), injection attacks, message flooding, and authorization bypass vulnerabilities. """ import json import sys import asyncio import time from pathlib import Pat...
216
8,449
Anthropic-Cybersecurity-Skills
skills/performing-external-network-penetration-test/scripts/process.py
.py
#!/usr/bin/env python3 """ External Network Penetration Test — Automation Process Automates reconnaissance, scanning, and reporting phases of an external network penetration test. Requires: nmap, subfinder, nuclei, python-nmap. Usage: python process.py --target target.com --ip-range 203.0.113.0/24 --output ./resu...
383
14,076
Anthropic-Cybersecurity-Skills
skills/performing-external-network-penetration-test/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for performing external network penetration test reconnaissance and scanning.""" import json import argparse import subprocess import socket from datetime import datetime def tcp_port_scan(host, ports=None): """Scan common TCP ports on a target host.""" if ports is None: ...
147
5,752
Anthropic-Cybersecurity-Skills
skills/detecting-fileless-attacks-on-endpoints/scripts/process.py
.py
#!/usr/bin/env python3 """Fileless Attack Detector - Scans PowerShell logs for fileless attack indicators.""" import json, csv, re, sys, os from collections import Counter from datetime import datetime FILELESS_PATTERNS = { "encoded_command": r"(?i)(-enc\s|-e\s|-encodedcommand|frombase64string)", "download_cr...
56
2,288
Anthropic-Cybersecurity-Skills
skills/detecting-fileless-attacks-on-endpoints/scripts/agent.py
.py
#!/usr/bin/env python3 """Fileless attack detection agent for endpoint logs. Detects in-memory attacks by analyzing PowerShell script block logs (Event 4104), WMI persistence events, and reflective DLL injection indicators from Sysmon. """ import argparse import json import re from datetime import datetime try: ...
160
6,474
Anthropic-Cybersecurity-Skills
skills/building-detection-rule-with-splunk-spl/scripts/process.py
.py
#!/usr/bin/env python3 """ Splunk SPL Detection Rule Builder and Validator Generates, validates, and manages Splunk SPL detection rules for SOC correlation searches. Supports MITRE ATT&CK mapping and rule quality scoring. """ import json import re import hashlib from datetime import datetime from typing import Option...
339
14,541
Anthropic-Cybersecurity-Skills
skills/building-detection-rule-with-splunk-spl/scripts/agent.py
.py
#!/usr/bin/env python3 """Splunk SPL Detection Rule Builder Agent - Generates and validates Splunk detection rules.""" import json import logging import os import argparse from datetime import datetime import requests logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(message)s") logger = ...
143
6,128
Anthropic-Cybersecurity-Skills
skills/securing-container-registry-with-harbor/scripts/process.py
.py
#!/usr/bin/env python3 """ Harbor Container Registry Security Auditor Audits Harbor registry configuration for security best practices including scanning policies, content trust, RBAC, and TLS. """ import json import sys import urllib.request import urllib.error import ssl import base64 from dataclasses import datacl...
181
6,661
Anthropic-Cybersecurity-Skills
skills/securing-container-registry-with-harbor/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for securing container registry with Harbor. Audits Harbor registry security configuration including RBAC, vulnerability scanning policies, content trust, immutable tags, and OIDC authentication via Harbor REST API v2.0. """ import json import sys from pathlib import Path from datetime...
184
6,843
Anthropic-Cybersecurity-Skills
skills/performing-lateral-movement-with-wmiexec/scripts/process.py
.py
#!/usr/bin/env python3 """ WMI Lateral Movement Tracker and Report Generator Tracks WMI-based lateral movement activities during red team engagements and generates movement reports. For authorized red team engagements only. """ import json import sys import os from datetime import datetime def load_movement_log(fil...
108
2,956
Anthropic-Cybersecurity-Skills
skills/performing-lateral-movement-with-wmiexec/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for performing lateral movement detection and simulation with WMIExec — authorized testing only.""" import json import argparse import subprocess import re def detect_wmiexec_artifacts_evtx(evtx_file): """Detect WMIExec lateral movement artifacts in Windows Event Logs.""" try:...
163
7,474
Anthropic-Cybersecurity-Skills
skills/analyzing-linux-elf-malware/scripts/agent.py
.py
#!/usr/bin/env python3 """Linux ELF malware static analysis agent using pyelftools and binary inspection.""" import hashlib import math import os import sys import subprocess from collections import Counter try: from elftools.elf.elffile import ELFFile HAS_ELFTOOLS = True except ImportError: HAS_ELFTOOLS ...
231
8,794
Anthropic-Cybersecurity-Skills
skills/auditing-foundry-smart-contract-security/scripts/agent.py
.py
#!/usr/bin/env python3 """Foundry Smart Contract Security Agent. Pre-deployment audit orchestrator for a Foundry project. Runs static analysis (Slither, Aderyn), optional symbolic execution (Mythril), Foundry tests/coverage, and a key-leak scan, then aggregates everything into a single JSON report with a PASS/FAIL dep...
320
13,779
Anthropic-Cybersecurity-Skills
skills/performing-linux-log-forensics-investigation/scripts/process.py
.py
#!/usr/bin/env python3 """Linux Log Forensic Analyzer - Parses auth.log for forensic investigation.""" import re, json, os, sys from datetime import datetime from collections import defaultdict def parse_auth_log(path: str, output_dir: str) -> str: os.makedirs(output_dir, exist_ok=True) successful, failed, sud...
43
2,160
Anthropic-Cybersecurity-Skills
skills/performing-linux-log-forensics-investigation/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for performing Linux log forensics investigation.""" import json import argparse import re import gzip from pathlib import Path from collections import Counter def analyze_auth_log(log_file): """Analyze /var/log/auth.log for suspicious authentication events.""" content = _read...
180
6,838
Anthropic-Cybersecurity-Skills
skills/performing-bandwidth-throttling-attack-simulation/scripts/agent.py
.py
#!/usr/bin/env python3 # For authorized penetration testing and educational environments only. # Usage against targets without prior mutual consent is illegal. # It is the end user's responsibility to obey all applicable local, state and federal laws. """ Bandwidth Throttling Attack Simulation Agent — AUTHORIZED TESTIN...
157
6,104
Anthropic-Cybersecurity-Skills
skills/testing-for-open-redirect-vulnerabilities/scripts/agent.py
.py
#!/usr/bin/env python3 # For authorized penetration testing and educational environments only. # Usage against targets without prior mutual consent is illegal. # It is the end user's responsibility to obey all applicable local, state and federal laws. """Agent for testing open redirect vulnerabilities. Tests URL redir...
167
6,115
Anthropic-Cybersecurity-Skills
skills/managing-intelligence-lifecycle/scripts/agent.py
.py
#!/usr/bin/env python3 """ Cyber Threat Intelligence Lifecycle Management Agent Manages the CTI lifecycle from requirements gathering through dissemination, tracking PIRs, collection sources, and intelligence product metrics. """ import json import os import sys from datetime import datetime, timezone def load_intel...
176
7,858
Anthropic-Cybersecurity-Skills
skills/performing-windows-artifact-analysis-with-eric-zimmerman-tools/scripts/process.py
.py
#!/usr/bin/env python3 """ EZ Tools Forensic Artifact Processor Automates the execution of Eric Zimmerman's tools against collected forensic artifacts and generates consolidated analysis reports. """ import subprocess import csv import os import sys import json import hashlib from pathlib import Path from datetime im...
296
12,475
Anthropic-Cybersecurity-Skills
skills/performing-windows-artifact-analysis-with-eric-zimmerman-tools/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for Windows artifact analysis with Eric Zimmerman tools. Runs EZ tools (MFTECmd, PECmd, LECmd, JLECmd, ShellBags Explorer CLI) via subprocess, parses CSV output, and builds a forensic timeline from Windows filesystem and registry artifacts. """ import subprocess import json import sys ...
162
6,882
Anthropic-Cybersecurity-Skills
skills/implementing-aws-config-rules-for-compliance/scripts/agent.py
.py
#!/usr/bin/env python3 """AWS Config compliance monitoring agent using boto3.""" import json import sys import argparse from datetime import datetime try: import boto3 from botocore.exceptions import ClientError except ImportError: print("Install boto3: pip install boto3") sys.exit(1) MANAGED_RULES ...
179
6,973
Anthropic-Cybersecurity-Skills
skills/implementing-opa-gatekeeper-for-policy-enforcement/scripts/process.py
.py
#!/usr/bin/env python3 """ OPA Gatekeeper Policy Manager - Generate ConstraintTemplates, audit constraint violations, and manage policy lifecycle. """ import json import subprocess import sys import argparse import yaml CONSTRAINT_TEMPLATES = { "required-labels": { "kind": "K8sRequiredLabels", "r...
229
6,805
Anthropic-Cybersecurity-Skills
skills/implementing-opa-gatekeeper-for-policy-enforcement/scripts/agent.py
.py
#!/usr/bin/env python3 """OPA Gatekeeper Policy Enforcement Agent - audits constraint templates and violation status.""" import json import argparse import logging import subprocess from collections import defaultdict from datetime import datetime logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelna...
109
4,292
Anthropic-Cybersecurity-Skills
skills/scanning-iac-and-images-with-trivy/scripts/agent.py
.py
#!/usr/bin/env python3 """Trivy scanning helper. Wraps the Trivy CLI to scan container images, filesystems/IaC, and SBOMs, parse the JSON results, summarise findings by severity, and exit non-zero when findings at or above a chosen threshold are present (CI/CD gating). Requires the `trivy` binary on PATH. See https:/...
162
6,174
Anthropic-Cybersecurity-Skills
skills/detecting-evasion-techniques-in-endpoint-logs/scripts/process.py
.py
#!/usr/bin/env python3 """ Endpoint Evasion Technique Detector Analyzes Windows event logs (exported as EVTX/CSV) for common defense evasion techniques mapped to MITRE ATT&CK TA0005. """ import json import csv import re import sys import os from collections import defaultdict from datetime import datetime EVASION_P...
206
7,300
Anthropic-Cybersecurity-Skills
skills/detecting-evasion-techniques-in-endpoint-logs/scripts/agent.py
.py
#!/usr/bin/env python3 """Defense evasion detection agent for endpoint logs. Detects MITRE ATT&CK TA0005 evasion techniques including log clearing, timestomping, process injection indicators, and security tool disabling by analyzing Sysmon and Windows Security event logs. """ import argparse import json import re fro...
161
6,092
Anthropic-Cybersecurity-Skills
skills/performing-cloud-native-forensics-with-falco/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for managing Falco rules and parsing alerts for container forensics.""" import json import argparse import os from collections import defaultdict from datetime import datetime from pathlib import Path import yaml import requests FALCO_RULES = [ { "rule": "Shell Spawned in...
196
7,798
Anthropic-Cybersecurity-Skills
skills/defending-llms-with-guardrails/scripts/agent.py
.py
#!/usr/bin/env python3 """Guardrail validation harness. Runs a corpus of labeled prompts through LLM Guard or Llama Guard 3 and reports block rate, false-positive rate, and per-scanner verdicts. The corpus is a JSONL file where each line is: {"prompt": "...", "label": "unsafe"|"safe"}. Examples -------- python ag...
157
5,521
Anthropic-Cybersecurity-Skills
skills/building-threat-hunt-hypothesis-framework/scripts/process.py
.py
#!/usr/bin/env python3 """Threat Hunt Hypothesis Detection - Analyzes logs for TA0001 indicators.""" import json, csv, argparse, datetime, re from collections import defaultdict from pathlib import Path DETECTION_PATTERNS = [ # Framework skill - no detection patterns ] def parse_logs(path): p = Path(path) ...
78
3,584
Anthropic-Cybersecurity-Skills
skills/building-threat-hunt-hypothesis-framework/scripts/agent.py
.py
#!/usr/bin/env python3 """Threat hunt hypothesis framework builder. Generates structured threat hunting hypotheses from MITRE ATT&CK techniques, maps data sources, defines detection logic, and tracks hunt outcomes. """ import sys import json import datetime import hashlib try: import requests HAS_REQUESTS = ...
165
6,743
Anthropic-Cybersecurity-Skills
skills/analyzing-command-and-control-communication/scripts/agent.py
.py
#!/usr/bin/env python3 """C2 communication analysis agent for beacon detection and protocol decoding.""" import statistics import base64 import os import sys from collections import defaultdict try: from scapy.all import rdpcap, IP, TCP, DNS, DNSQR HAS_SCAPY = True except ImportError: HAS_SCAPY = False t...
215
7,849
Anthropic-Cybersecurity-Skills
skills/exploiting-ms17-010-eternalblue-vulnerability/scripts/process.py
.py
#!/usr/bin/env python3 """ MS17-010 EternalBlue Scanner and Reporter Scans for MS17-010 vulnerability and generates reports: - SMB version detection - MS17-010 vulnerability checking via SMB negotiation - Exploitation command generation - Assessment report generation Usage: python process.py --scan 10.0.0.0/24 --...
301
9,856
Anthropic-Cybersecurity-Skills
skills/exploiting-ms17-010-eternalblue-vulnerability/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for detecting MS17-010 (EternalBlue) vulnerability — authorized testing only.""" import argparse import json import socket import subprocess from datetime import datetime, timezone SMB_NEGOTIATE = ( b"\x00\x00\x00\x85" # NetBIOS b"\xff\x53\x4d\x42" # SMB magic b"\x72" ...
133
4,539
Anthropic-Cybersecurity-Skills
skills/performing-threat-modeling-with-owasp-threat-dragon/scripts/process.py
.py
#!/usr/bin/env python3 """ OWASP Threat Dragon Model Analyzer Parses Threat Dragon JSON threat model files and generates summary statistics, coverage reports, and mitigation gap analysis. """ import json import sys import os from collections import defaultdict from datetime import datetime def load_threat_model(fil...
192
6,790