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
InvokeAI
scripts/wan_diffusers_reference.py
.py
"""Run TI2V-5B (or any Wan 2.2 Diffusers checkpoint) via the upstream WanPipeline directly, with the same arguments InvokeAI's wan_denoise uses. Use to A/B against InvokeAI output when image quality is questionable. Generates one image and saves it next to this script. Example: python scripts/wan_diffusers_refere...
86
3,177
Anthropic-Cybersecurity-Skills
tools/validate-skill.py
.py
#!/usr/bin/env python3 """Validate SKILL.md metadata for the Anthropic-Cybersecurity-Skills repository. Usage: python tools/validate-skill.py skills/my-skill/ python tools/validate-skill.py --all """ import os import re import sys import glob # Kept in sync with the CI workflow (.github/workflows/validate-ski...
308
11,366
Anthropic-Cybersecurity-Skills
tools/validate-agentskills.py
.py
#!/usr/bin/env python3 """Validate SKILL.md frontmatter against the strict agentskills.io standard. Reports, per skill, any deviation from tools/agentskills-skill.schema.json plus the two constraints JSON Schema can't express (name == parent dir; no angle brackets in frontmatter). READ-ONLY; never edits files. Usage:...
142
5,582
Anthropic-Cybersecurity-Skills
skills/analyzing-packed-malware-with-upx-unpacker/scripts/agent.py
.py
#!/usr/bin/env python3 """Packed malware analysis agent for UPX and generic packer detection and unpacking.""" import subprocess import os import sys import hashlib import math from collections import Counter try: import pefile HAS_PEFILE = True except ImportError: HAS_PEFILE = False def compute_hashes(...
242
8,699
Anthropic-Cybersecurity-Skills
skills/performing-graphql-depth-limit-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. """Agent for performing GraphQL depth limit attack testing.""" impo...
172
6,969
Anthropic-Cybersecurity-Skills
skills/executing-nist-rmf-authorization-to-operate/scripts/process.py
.py
#!/usr/bin/env python3 """ NIST RMF helper: FIPS 199 categorization -> SP 800-53B baseline selection, control-implementation status summary, and POA&M generation from findings. Input JSON shape: { "system": {"name": "Customer Portal", "ao": "Jane Roe"}, "information_types": [ {"name": "PII", "confidentiality":...
200
7,919
Anthropic-Cybersecurity-Skills
skills/auditing-tls-certificate-transparency-logs/scripts/agent.py
.py
#!/usr/bin/env python3 """CT Log Monitoring Agent - Monitors Certificate Transparency logs for unauthorized certificate issuance, subdomain discovery, and certificate alerting. For authorized security monitoring and defensive operations only. """ import argparse import hashlib import json import logging import re imp...
1,028
39,201
Anthropic-Cybersecurity-Skills
skills/conducting-social-engineering-pretext-call/scripts/process.py
.py
#!/usr/bin/env python3 """ Social Engineering Campaign Tracker Tracks vishing (pretext call) campaign results, calculates susceptibility metrics, and generates reports for security awareness improvement. """ import json import os import csv from datetime import datetime from collections import defaultdict from datacl...
229
10,204
Anthropic-Cybersecurity-Skills
skills/conducting-social-engineering-pretext-call/scripts/agent.py
.py
#!/usr/bin/env python3 """Social engineering pretext call planning and tracking agent.""" import json import argparse from datetime import datetime def generate_pretext_templates(): """Generate pretext call templates for authorized engagements.""" return [ { "name": "IT Help Desk Password...
139
5,410
Anthropic-Cybersecurity-Skills
skills/implementing-saml-sso-with-okta/scripts/process.py
.py
#!/usr/bin/env python3 """ SAML SSO Configuration Validator and Health Checker for Okta This script validates SAML SSO configurations, checks certificate expiration, tests metadata endpoints, and monitors authentication health for Okta-based SAML integrations. """ import xml.etree.ElementTree as ET import base64 impo...
500
19,707
Anthropic-Cybersecurity-Skills
skills/implementing-saml-sso-with-okta/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for implementing and auditing SAML SSO with Okta. Validates SAML configuration, checks certificate expiry, tests assertion encryption, audits attribute mappings, and verifies signature algorithms for enterprise SSO deployments. """ import json import sys import ssl import socket import...
198
7,789
Anthropic-Cybersecurity-Skills
skills/investigating-ransomware-attack-artifacts/scripts/agent.py
.py
#!/usr/bin/env python3 """ Ransomware Attack Artifact Investigation Agent Collects and analyzes ransomware artifacts including ransom notes, encrypted file samples, registry modifications, and event logs to identify the variant, attack vector, and encryption scope. """ import hashlib import json import os import re im...
207
7,924
Anthropic-Cybersecurity-Skills
skills/implementing-infrastructure-as-code-security-scanning/scripts/process.py
.py
#!/usr/bin/env python3 """ IaC Security Scanning Pipeline Script Runs Checkov and/or tfsec against IaC directories, aggregates findings, evaluates quality gates, and generates reports. Usage: python process.py --iac-dir ./terraform --framework terraform python process.py --iac-dir ./k8s --framework kubernetes...
246
9,246
Anthropic-Cybersecurity-Skills
skills/implementing-infrastructure-as-code-security-scanning/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for scanning Infrastructure as Code templates for security misconfigurations.""" import json import argparse import subprocess from datetime import datetime from collections import Counter from pathlib import Path def run_checkov(target_path, framework=None): """Run Checkov IaC se...
184
6,970
Anthropic-Cybersecurity-Skills
skills/performing-ot-vulnerability-assessment-with-claroty/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for performing OT vulnerability assessment with Claroty xDome platform.""" import json import argparse from datetime import datetime try: import requests except ImportError: requests = None class ClarotyVulnClient: """Client for Claroty xDome Vulnerability Assessment API....
136
5,473
Anthropic-Cybersecurity-Skills
skills/hardening-docker-containers-for-production/scripts/process.py
.py
#!/usr/bin/env python3 """ Docker Container Hardening Assessment Tool Audits Docker daemon configuration, running containers, and images against CIS Docker Benchmark v1.8.0 hardening requirements. """ import subprocess import json import sys import os import re from dataclasses import dataclass, field from typing imp...
442
15,194
Anthropic-Cybersecurity-Skills
skills/hardening-docker-containers-for-production/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for auditing Docker container security and applying CIS hardening.""" import argparse import json import subprocess import sys from datetime import datetime, timezone def get_running_containers(): """List running Docker containers with details.""" try: result = subproc...
129
5,041
Anthropic-Cybersecurity-Skills
skills/implementing-hipaa-security-rule-safeguards/scripts/process.py
.py
#!/usr/bin/env python3 """ HIPAA Security Rule safeguard gap-assessment scorer. Scores a safeguard-status inventory across the Administrative (164.308), Physical (164.310), and Technical (164.312) safeguards. Required gaps are weighted above addressable gaps, and any gap in the Risk Analysis or Risk Management specifi...
224
7,836
Anthropic-Cybersecurity-Skills
skills/performing-packet-injection-attack/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for performing packet injection testing. Crafts and sends test packets using Scapy for authorized security assessments to validate IDS rules, firewall configurations, and anti-spoofing controls. """ from scapy.all import ( IP, TCP, UDP, ICMP, DNS, DNSQR, Raw, sr1, send, fragmen...
169
6,935
Anthropic-Cybersecurity-Skills
skills/analyzing-apt-group-with-mitre-navigator/scripts/agent.py
.py
#!/usr/bin/env python3 """APT group analysis agent using MITRE ATT&CK Navigator layers. Queries ATT&CK data, maps APT techniques to Navigator layers, performs detection gap analysis, and generates threat-informed reports. """ import json import os import sys from collections import Counter try: import requests ...
245
9,099
Anthropic-Cybersecurity-Skills
skills/exploiting-adcs-with-certipy/scripts/agent.py
.py
#!/usr/bin/env python3 """ certipy_esc_assessor.py — Automate an AD CS ESC enumeration pass with Certipy. This helper wraps `certipy find` (the real `certipy-ad` binary), runs it in JSON mode, parses the resulting report, and prints a prioritized list of exploitable ESC findings with the exact follow-on `certipy req` ...
149
5,875
Anthropic-Cybersecurity-Skills
skills/implementing-aws-iam-permission-boundaries/scripts/process.py
.py
#!/usr/bin/env python3 """ AWS IAM Permission Boundary Management Tool Audits IAM roles for permission boundary compliance, identifies roles without boundaries, and generates boundary policies based on actual usage patterns from CloudTrail. Requirements: pip install boto3 pandas """ import json import sys from d...
251
9,132
Anthropic-Cybersecurity-Skills
skills/implementing-aws-iam-permission-boundaries/scripts/agent.py
.py
#!/usr/bin/env python3 """AWS IAM permission boundary management agent using boto3.""" import argparse import json import logging import os import sys from datetime import datetime from typing import List try: import boto3 from botocore.exceptions import ClientError except ImportError: sys.exit("boto3 req...
141
5,348
Anthropic-Cybersecurity-Skills
skills/analyzing-email-headers-for-phishing-investigation/scripts/agent.py
.py
#!/usr/bin/env python3 """Email header analysis agent for phishing investigation and sender verification.""" import email import email.utils import re import hashlib import os import sys import subprocess from email import policy def parse_email_file(eml_path): """Parse an EML file and extract key header fields....
230
8,576
Anthropic-Cybersecurity-Skills
skills/triaging-security-incident/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for triaging security incidents using NIST SP 800-61 and SANS PICERL frameworks.""" import requests import json import argparse from datetime import datetime, timezone NIST_CATEGORIES = { "unauthorized_access": "Unauthorized Access", "dos": "Denial of Service", "malicious_...
263
10,739
Anthropic-Cybersecurity-Skills
skills/exploiting-active-directory-with-bloodhound/scripts/process.py
.py
#!/usr/bin/env python3 """ BloodHound AD Attack Path Analyzer Processes BloodHound data exports to identify and prioritize attack paths: - Parses BloodHound JSON/ZIP exports - Identifies high-value targets and attack paths - Generates attack chain reports - Exports custom Cypher queries - Creates visual attack path do...
568
22,080
Anthropic-Cybersecurity-Skills
skills/exploiting-active-directory-with-bloodhound/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for Active Directory attack path analysis using BloodHound data collection.""" import argparse import json import os import subprocess from datetime import datetime, timezone def run_sharphound(domain, username=None, password=None, collection="All"): """Execute SharpHound data col...
139
5,751
Anthropic-Cybersecurity-Skills
skills/implementing-api-security-posture-management/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for API Security Posture Management - discovery, classification, and risk scoring.""" import json import argparse import re from datetime import datetime from collections import Counter, defaultdict def discover_apis_from_traffic(log_path): """Discover APIs from network traffic lo...
154
6,253
Anthropic-Cybersecurity-Skills
skills/performing-supply-chain-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. """Simulate and detect software supply chain attacks: typosquatting,...
267
10,308
Anthropic-Cybersecurity-Skills
skills/implementing-scim-provisioning-with-okta/scripts/process.py
.py
#!/usr/bin/env python3 """ SCIM 2.0 Provisioning Server for Okta Integration A production-ready SCIM 2.0 server implementation that handles user and group lifecycle management from Okta. Supports user CRUD, group push, filtering, pagination, and PATCH operations per RFC 7644. Requirements: pip install flask sqlal...
471
15,669
Anthropic-Cybersecurity-Skills
skills/implementing-scim-provisioning-with-okta/scripts/agent.py
.py
#!/usr/bin/env python3 """Okta SCIM provisioning audit agent. Audits Okta SCIM provisioning configuration by querying the Okta API for provisioned applications, user assignments, group memberships, and deprovisioning status. Identifies orphaned accounts, mismatched assignments, and provisioning failures. """ import ar...
255
9,251
Anthropic-Cybersecurity-Skills
skills/implementing-fuzz-testing-in-cicd-with-aflplusplus/scripts/process.py
.py
#!/usr/bin/env python3 """ AFL++ Fuzzing Results Analyzer Parses AFL++ output directories and generates reports on crash findings, corpus growth, and coverage statistics. """ import json import os import sys from datetime import datetime from pathlib import Path from collections import defaultdict def parse_fuzzer_...
176
6,007
Anthropic-Cybersecurity-Skills
skills/implementing-fuzz-testing-in-cicd-with-aflplusplus/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for implementing AFL++ fuzz testing in CI/CD pipelines.""" import json import argparse import subprocess import os from pathlib import Path def compile_target(source_file, output_binary, compiler="afl-clang-fast"): """Compile target binary with AFL++ instrumentation.""" cmd = ...
186
6,952
Anthropic-Cybersecurity-Skills
skills/detecting-container-drift-at-runtime/scripts/process.py
.py
#!/usr/bin/env python3 """ Container Drift Detection Tool Compares running containers against their original image state to detect filesystem drift, unexpected processes, and configuration changes. """ import json import subprocess import sys import argparse from datetime import datetime from collections import defau...
214
7,819
Anthropic-Cybersecurity-Skills
skills/detecting-container-drift-at-runtime/scripts/agent.py
.py
#!/usr/bin/env python3 """Container drift detection agent using Docker SDK. Compares running container filesystem against the original image to detect binary drift, file modifications, and package installations. """ import argparse import json import subprocess import sys from datetime import datetime try: impor...
160
5,905
Anthropic-Cybersecurity-Skills
skills/securing-aws-iam-permissions/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for auditing and hardening AWS IAM permissions using least-privilege principles.""" import boto3 import json import csv import argparse from datetime import datetime, timedelta, timezone from base64 import b64decode def get_credential_report(): """Generate and parse the IAM creden...
178
7,710
Anthropic-Cybersecurity-Skills
skills/operating-havoc-c2/scripts/agent.py
.py
#!/usr/bin/env python3 """ Havoc C2 team-server operator helper. Automates common operator setup tasks around the Havoc Framework binary (https://github.com/HavocFramework/Havoc): * validate a Yaotl profile for required blocks before launch * build the team server / client via `make ts-build` / `make client-build...
179
5,975
Anthropic-Cybersecurity-Skills
skills/implementing-network-segmentation-with-firewall-zones/scripts/agent.py
.py
#!/usr/bin/env python3 """Firewall Zone Segmentation Agent - audits zone-based firewall rules and inter-zone traffic policies.""" import json import argparse import logging import subprocess from collections import defaultdict from datetime import datetime logging.basicConfig(level=logging.INFO, format="%(asctime)s [...
107
4,341
Anthropic-Cybersecurity-Skills
skills/exploiting-sql-injection-with-sqlmap/scripts/agent.py
.py
#!/usr/bin/env python3 # For authorized testing in lab/CTF environments only """sqlmap automation agent for orchestrating SQL injection scans via subprocess.""" import argparse import json import logging import subprocess import sys from datetime import datetime from typing import List, Optional logging.basicConfig(l...
218
8,335
Anthropic-Cybersecurity-Skills
skills/conducting-social-engineering-penetration-test/scripts/process.py
.py
#!/usr/bin/env python3 """ Social Engineering Penetration Test — Campaign Metrics Processor Processes GoPhish campaign results and generates analysis reports. Requires: requests library for GoPhish API interaction. Usage: python process.py --gophish-url https://localhost:3333 --api-key <key> --output ./results ""...
197
7,527
Anthropic-Cybersecurity-Skills
skills/conducting-social-engineering-penetration-test/scripts/agent.py
.py
#!/usr/bin/env python3 """Social engineering penetration test management agent using GoPhish API.""" import json import sys import argparse from datetime import datetime try: import requests requests.packages.urllib3.disable_warnings() except ImportError: print("Install: pip install requests") sys.exi...
161
5,926
Anthropic-Cybersecurity-Skills
skills/analyzing-ransomware-network-indicators/scripts/agent.py
.py
#!/usr/bin/env python3 """Detect ransomware network indicators: C2 beaconing, TOR connections, data exfiltration via Zeek/NetFlow.""" import json import csv import argparse import urllib.request from datetime import datetime from collections import defaultdict from statistics import mean, stdev TOR_EXIT_LIST_URL = "h...
217
8,937
Anthropic-Cybersecurity-Skills
skills/analyzing-powershell-empire-artifacts/scripts/agent.py
.py
#!/usr/bin/env python3 """Detect PowerShell Empire framework artifacts in Windows event logs.""" import argparse import base64 import json import re import subprocess import sys from datetime import datetime, timezone EMPIRE_LAUNCHER_PATTERN = re.compile( r"powershell\s+-noP\s+-sta\s+-w\s+1\s+-enc\s+", re.IGNORE...
308
10,886
Anthropic-Cybersecurity-Skills
skills/investigating-insider-threat-indicators/scripts/agent.py
.py
#!/usr/bin/env python3 """ Insider Threat Investigation Agent Automates insider threat indicator collection by correlating SIEM data, DLP alerts, access logs, and HR events to build investigation timelines. """ import csv import hashlib import json import os import sys from datetime import datetime, timezone def loa...
235
8,953
Anthropic-Cybersecurity-Skills
skills/analyzing-network-traffic-with-wireshark/scripts/agent.py
.py
#!/usr/bin/env python3 """Wireshark/tshark packet analysis agent for network security investigations.""" import subprocess import shlex import os import sys def run_tshark(pcap_path, args): """Execute tshark with custom arguments.""" cmd = ["tshark", "-r", pcap_path] + shlex.split(args) result = subproce...
221
7,448
Anthropic-Cybersecurity-Skills
skills/detecting-lateral-movement-in-network/scripts/agent.py
.py
#!/usr/bin/env python3 """Lateral movement detection agent using Zeek logs and Windows event analysis.""" import json import os import re import sys from collections import Counter, defaultdict from datetime import datetime try: import Evtx.Evtx as evtx HAS_EVTX = True except ImportError: HAS_EVTX = False...
207
8,074
Anthropic-Cybersecurity-Skills
skills/conducting-external-reconnaissance-with-osint/scripts/agent.py
.py
#!/usr/bin/env python3 # For authorized penetration testing and lab environments only """External Reconnaissance Agent - Maps organization attack surface using passive OSINT.""" import json import logging import argparse from datetime import datetime import requests import shodan logging.basicConfig(level=logging.IN...
227
9,268
Anthropic-Cybersecurity-Skills
skills/implementing-policy-as-code-with-open-policy-agent/scripts/process.py
.py
#!/usr/bin/env python3 """ OPA Policy Evaluation Pipeline Script Runs conftest against Kubernetes manifests and Terraform files, evaluates policy compliance, and generates reports. Usage: python process.py --manifests-dir ./k8s --policies-dir ./policies python process.py --manifests-dir ./terraform --policies...
168
5,954
Anthropic-Cybersecurity-Skills
skills/implementing-policy-as-code-with-open-policy-agent/scripts/agent.py
.py
#!/usr/bin/env python3 """Open Policy Agent (OPA) policy-as-code agent. Evaluates security policies against infrastructure configurations using the OPA REST API or CLI. Supports evaluating Rego policies for Kubernetes admission control, Terraform plans, IAM policies, and custom security rules. """ import argparse impo...
274
9,534
Anthropic-Cybersecurity-Skills
skills/performing-ssl-certificate-lifecycle-management/scripts/process.py
.py
#!/usr/bin/env python3 """ SSL Certificate Lifecycle Management Tool Implements certificate generation, parsing, monitoring, chain validation, and OCSP checking for managing TLS certificate lifecycles. Requirements: pip install cryptography requests Usage: python process.py generate-csr --domain example.com ...
350
12,197
Anthropic-Cybersecurity-Skills
skills/performing-ssl-certificate-lifecycle-management/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for SSL/TLS certificate lifecycle management. Generates CSRs, parses X.509 certificates using the cryptography library, monitors expiration across infrastructure, checks OCSP revocation status, and maintains a certificate inventory. """ import json import sys import ssl import socket f...
164
6,170
Anthropic-Cybersecurity-Skills
skills/detecting-anomalous-authentication-patterns/scripts/agent.py
.py
#!/usr/bin/env python3 """Authentication anomaly detection agent using UEBA analytics.""" import json import sys import csv from datetime import datetime, timedelta from math import radians, sin, cos, sqrt, atan2 from collections import Counter def haversine_km(lat1, lon1, lat2, lon2): """Calculate great-circle ...
252
8,777
Anthropic-Cybersecurity-Skills
skills/correlating-threat-campaigns/scripts/agent.py
.py
#!/usr/bin/env python3 """Threat campaign correlation agent using MISP and STIX.""" import json import sys import urllib.request import ssl from collections import Counter from datetime import datetime class MISPClient: """Client for MISP REST API for campaign correlation.""" def __init__(self, url, api_key...
206
7,498
Anthropic-Cybersecurity-Skills
skills/performing-timeline-reconstruction-with-plaso/scripts/agent.py
.py
#!/usr/bin/env python3 """Forensic timeline reconstruction agent using Plaso subprocess wrappers.""" import subprocess import os import sys import csv from datetime import datetime from collections import defaultdict def verify_plaso_installed(): """Check that log2timeline.py and psort.py are available.""" t...
173
6,872
Anthropic-Cybersecurity-Skills
skills/performing-network-traffic-analysis-with-tshark/scripts/agent.py
.py
#!/usr/bin/env python3 """Network traffic analysis agent using tshark and pyshark for PCAP analysis.""" import json import math import subprocess import argparse import re from datetime import datetime from collections import defaultdict, Counter try: import pyshark HAS_PYSHARK = True except ImportError: ...
229
8,391
Anthropic-Cybersecurity-Skills
skills/hunting-for-lateral-movement-via-wmi/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for hunting lateral movement via WMI. Detects WMI-based lateral movement by parsing Windows Event ID 4688 and Sysmon Event 1 for WmiPrvSE.exe child process patterns, suspicious command lines, and WMI event subscription persistence. """ # For authorized threat hunting and blue team use o...
210
8,153
Anthropic-Cybersecurity-Skills
skills/detecting-rootkit-activity/scripts/agent.py
.py
#!/usr/bin/env python3 """Rootkit detection agent using cross-view analysis and integrity checking.""" import json import os import subprocess import sys from datetime import datetime def run_volatility_pslist(memory_dump): """List processes using ActiveProcessLinks (EPROCESS linked list).""" cmd = ["vol3", ...
205
8,236
Anthropic-Cybersecurity-Skills
skills/detecting-living-off-the-land-with-lolbas/scripts/agent.py
.py
#!/usr/bin/env python3 """Detect Living Off the Land Binaries (LOLBAS) abuse via process telemetry and Sigma rules.""" import json import argparse from datetime import datetime from collections import defaultdict LOLBIN_SIGNATURES = { "certutil.exe": { "suspicious_args": ["-urlcache", "-split", "-decode",...
185
6,978
Anthropic-Cybersecurity-Skills
skills/implementing-zero-trust-in-cloud/scripts/agent.py
.py
#!/usr/bin/env python3 """Zero trust cloud architecture assessment agent using AWS, Azure, and GCP SDKs.""" import json import argparse from datetime import datetime try: import boto3 from botocore.exceptions import ClientError except ImportError: boto3 = None try: HAS_AZURE = True except ImportError...
228
10,068
Anthropic-Cybersecurity-Skills
skills/reverse-engineering-rust-malware/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for reverse engineering Rust-compiled malware. Identifies Rust binaries, extracts crate dependencies, locates crypto/network/persistence patterns, and maps suspicious capabilities for malware analysis reporting. """ import json import re import struct import sys import hashlib from pat...
174
6,553
Anthropic-Cybersecurity-Skills
skills/implementing-secret-scanning-with-gitleaks/scripts/process.py
.py
#!/usr/bin/env python3 """ Gitleaks Secret Scanning Pipeline Script Runs Gitleaks scans, manages baselines, evaluates findings, and generates remediation reports. Usage: python process.py --repo-path /path/to/repo --scan-type detect python process.py --repo-path . --scan-type protect --staged python proce...
300
9,999
Anthropic-Cybersecurity-Skills
skills/implementing-secret-scanning-with-gitleaks/scripts/agent.py
.py
#!/usr/bin/env python3 """Gitleaks secret scanning agent. Wraps the Gitleaks CLI to scan git repositories, directories, or specific commits for hardcoded secrets, API keys, tokens, and credentials. Parses JSON output into structured findings. """ import argparse import json import os import subprocess import sys from ...
216
7,420
Anthropic-Cybersecurity-Skills
skills/implementing-aws-security-hub/scripts/agent.py
.py
#!/usr/bin/env python3 """AWS Security Hub CSPM agent using boto3 securityhub client.""" import json import sys import argparse from datetime import datetime from collections import Counter try: import boto3 from botocore.exceptions import ClientError except ImportError: print("Install boto3: pip install ...
182
6,933
Anthropic-Cybersecurity-Skills
skills/detecting-wmi-persistence/scripts/agent.py
.py
#!/usr/bin/env python3 """WMI Persistence Detection Agent - hunts for malicious WMI event subscriptions via Sysmon and WMI queries.""" import json import argparse import logging import subprocess import re import xml.etree.ElementTree as ET from datetime import datetime logging.basicConfig(level=logging.INFO, format=...
207
8,867
Anthropic-Cybersecurity-Skills
skills/conducting-wireless-network-penetration-test/scripts/agent.py
.py
#!/usr/bin/env python3 # For authorized penetration testing and lab environments only """Wireless Network Penetration Testing Agent - Tests WiFi security using Scapy and aircrack-ng.""" import json import logging import argparse import subprocess from datetime import datetime from scapy.all import ( Dot11, Dot11B...
184
7,503
Anthropic-Cybersecurity-Skills
skills/auditing-mcp-servers-for-tool-poisoning/scripts/agent.py
.py
#!/usr/bin/env python3 # For authorized MCP server auditing only. Do not scan servers you do not control # or lack written permission to assess. """MCP tool-poisoning audit agent. Two modes: static -- run Invariant Labs mcp-scan over an MCP config and parse results, plus a local heuristic scan of tool ...
156
5,763
Anthropic-Cybersecurity-Skills
skills/building-adversary-infrastructure-tracking-system/scripts/agent.py
.py
#!/usr/bin/env python3 """Adversary Infrastructure Tracking Agent - Tracks threat actor infrastructure using passive DNS and certificate transparency.""" import json import logging import argparse from datetime import datetime from collections import defaultdict import requests logging.basicConfig(level=logging.INFO...
117
4,517
Anthropic-Cybersecurity-Skills
skills/implementing-epss-score-for-vulnerability-prioritization/scripts/process.py
.py
#!/usr/bin/env python3 """EPSS Vulnerability Prioritization Tool. Fetches EPSS scores from FIRST API and prioritizes vulnerabilities using a combined EPSS + CVSS matrix approach. """ import argparse import csv import gzip import io import json import sys import time from datetime import datetime, timezone from pathli...
216
7,649
Anthropic-Cybersecurity-Skills
skills/implementing-epss-score-for-vulnerability-prioritization/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for implementing EPSS (Exploit Prediction Scoring System) for vulnerability prioritization.""" import json import argparse import csv try: import requests except ImportError: requests = None EPSS_API_URL = "https://api.first.org/data/v1/epss" def get_epss_scores(cve_list): ...
148
5,161
Anthropic-Cybersecurity-Skills
skills/detecting-aws-iam-privilege-escalation/scripts/agent.py
.py
#!/usr/bin/env python3 """Detect AWS IAM privilege escalation paths using boto3 policy analysis.""" import json import argparse from datetime import datetime from collections import defaultdict try: import boto3 HAS_BOTO3 = True except ImportError: HAS_BOTO3 = False ESCALATION_COMBOS = [ {"name": "Cr...
201
9,520
Anthropic-Cybersecurity-Skills
skills/analyzing-threat-landscape-with-misp/scripts/agent.py
.py
#!/usr/bin/env python3 """MISP Threat Landscape Analysis Agent - Generates threat landscape reports from MISP event data.""" import json import logging import argparse from datetime import datetime, timedelta from collections import defaultdict, Counter from pymisp import PyMISP logging.basicConfig(level=logging.INF...
178
6,762
Anthropic-Cybersecurity-Skills
skills/performing-file-carving-with-foremost/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for performing file carving with Foremost. Automates file carving from disk images using foremost/scalpel, validates carved files, and generates evidence catalogs with hashes. """ import subprocess import sys import hashlib import json from collections import defaultdict from pathlib i...
181
6,954
Anthropic-Cybersecurity-Skills
skills/configuring-zscaler-private-access-for-ztna/scripts/process.py
.py
#!/usr/bin/env python3 """ Zscaler Private Access (ZPA) - Deployment Audit and Compliance Checker Queries ZPA Admin API to audit App Connector health, application segment coverage, access policy configuration, and user activity for ZTNA compliance. Requirements: pip install requests """ import json import sys im...
320
11,821
Anthropic-Cybersecurity-Skills
skills/configuring-zscaler-private-access-for-ztna/scripts/agent.py
.py
#!/usr/bin/env python3 """Zscaler Private Access (ZPA) ZTNA audit agent using ZPA API.""" import json import sys import argparse from datetime import datetime try: import requests except ImportError: print("Install: pip install requests") sys.exit(1) class ZPAClient: """Zscaler Private Access API cl...
128
4,414
Anthropic-Cybersecurity-Skills
skills/implementing-network-access-control/scripts/agent.py
.py
#!/usr/bin/env python3 """Network Access Control (802.1X/NAC) monitoring agent using RADIUS and SNMP.""" import json import sys import argparse from datetime import datetime from collections import Counter try: from pyrad.client import Client from pyrad.dictionary import Dictionary from pyrad import packe...
215
8,760
Anthropic-Cybersecurity-Skills
skills/performing-firmware-extraction-with-binwalk/scripts/agent.py
.py
#!/usr/bin/env python3 """Firmware extraction and analysis agent using binwalk for signature scanning, entropy analysis, filesystem extraction, and string-based credential discovery.""" import argparse import struct import hashlib import math import os import sys import subprocess import re import json from collection...
449
16,687
Anthropic-Cybersecurity-Skills
skills/analyzing-network-covert-channels-in-malware/scripts/agent.py
.py
#!/usr/bin/env python3 """Network covert channel detection agent for malware traffic analysis. Detects DNS tunneling, ICMP covert channels, HTTP header steganography, and protocol abuse in PCAP captures using scapy. """ import os import sys import json import math from collections import Counter, defaultdict try: ...
191
7,739
Anthropic-Cybersecurity-Skills
skills/performing-sca-dependency-scanning-with-snyk/scripts/process.py
.py
#!/usr/bin/env python3 """ Snyk SCA Dependency Scanning Pipeline Script Orchestrates Snyk dependency scans, evaluates quality gates, and generates consolidated vulnerability reports. Usage: python process.py --project-path /path/to/project --severity-threshold high python process.py --project-path . --manifes...
267
9,026
Anthropic-Cybersecurity-Skills
skills/performing-sca-dependency-scanning-with-snyk/scripts/agent.py
.py
#!/usr/bin/env python3 """SCA Dependency Scanning with Snyk agent — runs Snyk CLI to test project dependencies for known vulnerabilities, generates SARIF output, and enforces quality gates.""" import argparse import json import subprocess from datetime import datetime from pathlib import Path def run_snyk_test(proje...
161
6,455
Anthropic-Cybersecurity-Skills
skills/collecting-open-source-intelligence/scripts/agent.py
.py
#!/usr/bin/env python3 # For authorized penetration testing and lab environments only """OSINT Collection Agent - Gathers open-source intelligence on targets using Shodan and crt.sh.""" import json import logging import argparse from datetime import datetime import requests import shodan logging.basicConfig(level=lo...
184
6,542
Anthropic-Cybersecurity-Skills
skills/configuring-aws-verified-access-for-ztna/scripts/process.py
.py
#!/usr/bin/env python3 """ AWS Verified Access ZTNA Configuration and Policy Management. Generates Cedar access policies, validates configurations, and monitors Verified Access deployments. """ import json import datetime from dataclasses import dataclass, field from pathlib import Path @dataclass class TrustProvid...
235
7,739
Anthropic-Cybersecurity-Skills
skills/configuring-aws-verified-access-for-ztna/scripts/agent.py
.py
#!/usr/bin/env python3 """AWS Verified Access ZTNA configuration agent using boto3.""" import json import sys import argparse from datetime import datetime try: import boto3 except ImportError: print("Install: pip install boto3") sys.exit(1) def list_verified_access_instances(session): """List all V...
134
4,926
Anthropic-Cybersecurity-Skills
skills/analyzing-docker-container-forensics/scripts/agent.py
.py
#!/usr/bin/env python3 """Docker container forensics agent for investigating compromised containers.""" import shlex import subprocess import json import os import sys import hashlib import datetime def run_cmd(cmd): """Execute a command and return output.""" if isinstance(cmd, str): cmd = shlex.spli...
239
8,844
Anthropic-Cybersecurity-Skills
skills/performing-privileged-account-access-review/scripts/process.py
.py
#!/usr/bin/env python3 """ Privileged Account Access Review Automation Discovers privileged accounts from Active Directory, AWS IAM, and Azure AD, generates review campaigns, and tracks certification decisions. Requirements: pip install ldap3 boto3 msal requests pandas openpyxl """ import json import csv import ...
312
12,693
Anthropic-Cybersecurity-Skills
skills/performing-privileged-account-access-review/scripts/agent.py
.py
#!/usr/bin/env python3 """Privileged Account Access Review agent — audits privileged accounts for compliance with least-privilege and periodic recertification requirements.""" import argparse import csv import json from datetime import datetime, timedelta from pathlib import Path def load_accounts(csv_path: str) -> ...
137
5,842
Anthropic-Cybersecurity-Skills
skills/validating-backup-integrity-for-recovery/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for validating backup integrity for disaster recovery. Computes cryptographic hashes, compares manifests, detects corruption, scans for ransomware artifacts, measures file entropy, and validates backup recoverability. """ import argparse import hashlib import json import math import os...
324
10,734
Anthropic-Cybersecurity-Skills
skills/performing-hash-cracking-with-hashcat/scripts/process.py
.py
#!/usr/bin/env python3 """ Hash Cracking Analysis and Hashcat Automation Tool Provides hash identification, hashcat command generation, result analysis, and password strength reporting for authorized security assessments. Requirements: pip install passlib argon2-cffi Usage: python process.py identify --hash ...
266
9,708
Anthropic-Cybersecurity-Skills
skills/performing-hash-cracking-with-hashcat/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for performing hash cracking with hashcat — hash identification, attack management, and result analysis.""" import json import argparse import subprocess import hashlib import re from collections import Counter from pathlib import Path HASH_PATTERNS = { "MD5": (r"^[a-f0-9]{32}$", ...
172
7,219
Anthropic-Cybersecurity-Skills
skills/implementing-aqua-security-for-container-scanning/scripts/process.py
.py
#!/usr/bin/env python3 """ Trivy Container Scanning Report Aggregator Processes Trivy JSON scan results and generates consolidated vulnerability reports across multiple container images. """ import json import os import sys import subprocess from datetime import datetime from collections import defaultdict def run_...
160
5,514
Anthropic-Cybersecurity-Skills
skills/implementing-aqua-security-for-container-scanning/scripts/agent.py
.py
#!/usr/bin/env python3 """Container image vulnerability scanning agent using Trivy CLI via subprocess.""" import argparse import json import logging import os import subprocess import sys from datetime import datetime from typing import List logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] ...
156
5,887
Anthropic-Cybersecurity-Skills
skills/deploying-tailscale-for-zero-trust-vpn/scripts/process.py
.py
#!/usr/bin/env python3 """ Tailscale Zero Trust VPN Management and Monitoring. Manages Tailscale deployment, ACL generation, network health monitoring, and compliance reporting for zero trust mesh VPN infrastructure. """ import json import subprocess import datetime from dataclasses import dataclass, field from pathl...
341
11,884
Anthropic-Cybersecurity-Skills
skills/deploying-tailscale-for-zero-trust-vpn/scripts/agent.py
.py
#!/usr/bin/env python3 """Tailscale zero trust VPN deployment audit agent.""" import json import sys import argparse from datetime import datetime try: import requests except ImportError: print("Install: pip install requests") sys.exit(1) class TailscaleClient: """Client for Tailscale API v2.""" ...
153
5,131
Anthropic-Cybersecurity-Skills
skills/correlating-security-events-in-qradar/scripts/agent.py
.py
#!/usr/bin/env python3 """IBM QRadar SIEM correlation and offense management agent.""" import json import sys import urllib.request import urllib.parse import ssl from datetime import datetime class QRadarClient: """Client for QRadar REST API operations.""" def __init__(self, host, api_token, verify_ssl=Fal...
174
6,651
Anthropic-Cybersecurity-Skills
skills/reverse-engineering-ios-app-with-frida/scripts/process.py
.py
#!/usr/bin/env python3 """ iOS Reverse Engineering Automation with Frida Automates class enumeration, method tracing, and secret extraction from iOS apps. Usage: python process.py --app TargetApp [--output report.json] """ import argparse import json import subprocess import sys from datetime import datetime E...
120
4,141
Anthropic-Cybersecurity-Skills
skills/reverse-engineering-ios-app-with-frida/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for iOS app reverse engineering with Frida. Uses frida-tools to attach to iOS processes, hook Objective-C methods, bypass SSL pinning, dump keychain entries, and trace API calls for security assessment. """ import subprocess import json import sys from datetime import datetime from pat...
161
6,049
Anthropic-Cybersecurity-Skills
skills/conducting-cloud-incident-response/scripts/agent.py
.py
#!/usr/bin/env python3 """Cloud Incident Response Agent - Automates AWS/Azure cloud IR containment and evidence collection.""" import json import logging import argparse import subprocess from datetime import datetime, timedelta logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(message)s"...
193
7,627
Anthropic-Cybersecurity-Skills
skills/deploying-active-directory-honeytokens/scripts/agent.py
.py
#!/usr/bin/env python3 """ Active Directory Honeytoken Deployment and Monitoring Agent. Deploys deception-based honeytokens in Active Directory: fake privileged accounts with AdminCount=1, fake SPNs for Kerberoasting detection (honeyroasting), decoy GPOs with cpassword traps, and deceptive BloodHound paths. Generates ...
1,322
53,930
Anthropic-Cybersecurity-Skills
skills/detecting-azure-service-principal-abuse/scripts/process.py
.py
#!/usr/bin/env python3 """ Azure Service Principal Abuse Detection Script Queries Microsoft Graph API to detect suspicious service principal activities including new credentials, privilege escalation, and unauthorized ownership. """ import json import subprocess import sys from datetime import datetime, timedelta d...
241
8,751
Anthropic-Cybersecurity-Skills
skills/detecting-azure-service-principal-abuse/scripts/agent.py
.py
#!/usr/bin/env python3 """Azure Service Principal abuse detection agent.""" import json import sys import argparse from datetime import datetime, timedelta try: from azure.identity import ClientSecretCredential except ImportError: ClientSecretCredential = None try: import requests except ImportError: ...
188
6,832
Anthropic-Cybersecurity-Skills
skills/implementing-purdue-model-network-segmentation/scripts/agent.py
.py
#!/usr/bin/env python3 """Purdue model OT network segmentation audit agent. Audits OT/ICS network segmentation against the Purdue Enterprise Reference Architecture by testing connectivity between network zones, verifying firewall rules, and mapping discovered hosts to Purdue levels. """ import argparse import json imp...
214
7,709