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/detecting-cloud-threats-with-guardduty/scripts/agent.py
.py
#!/usr/bin/env python3 """Amazon GuardDuty threat detection and response automation agent.""" import json import subprocess import sys from datetime import datetime def aws_cli(args): """Execute AWS CLI command and return parsed JSON.""" cmd = ["aws"] + args + ["--output", "json"] try: result = s...
196
6,692
Anthropic-Cybersecurity-Skills
skills/hunting-for-unusual-network-connections/scripts/process.py
.py
#!/usr/bin/env python3 """Unusual Network Connections Detection - Analyzes logs for T1071 indicators.""" import json, csv, argparse, datetime, re from collections import defaultdict from pathlib import Path DETECTION_PATTERNS = [ r'port (4444|5555|6666|8888|9090|31337|50050)', ] def parse_logs(path): p = Pat...
78
3,608
Anthropic-Cybersecurity-Skills
skills/hunting-for-unusual-network-connections/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for hunting unusual network connections from endpoint and firewall logs.""" import json import argparse from datetime import datetime from collections import defaultdict, Counter COMMON_PORTS = {80, 443, 53, 22, 25, 110, 143, 993, 995, 587, 8080, 8443, 3389} KNOWN_BAD_PORTS = {4444, ...
195
7,206
Anthropic-Cybersecurity-Skills
skills/configuring-active-directory-tiered-model/scripts/agent.py
.py
#!/usr/bin/env python3 """Active Directory tiered administration model audit agent using ldap3.""" import json import sys import argparse from datetime import datetime try: import ldap3 from ldap3 import Server, Connection, ALL, NTLM except ImportError: print("Install: pip install ldap3") sys.exit(1) ...
146
5,735
Anthropic-Cybersecurity-Skills
skills/performing-network-packet-capture-analysis/scripts/process.py
.py
#!/usr/bin/env python3 """PCAP Forensic Analyzer - Analyzes packet captures for forensic investigation.""" import json, os, sys from collections import defaultdict, Counter from datetime import datetime try: from scapy.all import rdpcap, IP, TCP, UDP, DNS, DNSQR except ImportError: print("Install scapy: pip ins...
38
1,823
Anthropic-Cybersecurity-Skills
skills/performing-network-packet-capture-analysis/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for performing network packet capture analysis with scapy and tshark.""" import json import argparse import subprocess from collections import Counter try: from scapy.all import rdpcap, IP, TCP, UDP, DNS, DNSQR HAS_SCAPY = True except ImportError: HAS_SCAPY = False def an...
155
6,137
Anthropic-Cybersecurity-Skills
skills/implementing-passwordless-authentication-with-fido2/scripts/agent.py
.py
#!/usr/bin/env python3 """FIDO2 Passwordless Auth Agent - audits FIDO2 deployment readiness and credential status.""" 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 = logging.ge...
92
3,678
Anthropic-Cybersecurity-Skills
skills/orchestrating-llm-attacks-with-pyrit/scripts/agent.py
.py
#!/usr/bin/env python3 """ PyRIT multi-turn LLM attack runner. Drives Microsoft PyRIT (https://github.com/microsoft/PyRIT) to run a chosen multi-turn attack strategy (RedTeaming, Crescendo, or TAP) against an OpenAI-compatible target, using an adversarial chat model and an LLM-as-judge scorer, then exports the convers...
130
4,975
Anthropic-Cybersecurity-Skills
skills/building-detection-rules-with-sigma/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for building and converting Sigma detection rules.""" import json import argparse from datetime import datetime from pathlib import Path from sigma.rule import SigmaRule from sigma.backends.splunk import SplunkBackend from sigma.pipelines.splunk import splunk_windows_pipeline def loa...
174
6,449
Anthropic-Cybersecurity-Skills
skills/implementing-ot-incident-response-playbook/scripts/agent.py
.py
#!/usr/bin/env python3 """OT Incident Response Playbook Agent - executes ICS/SCADA incident response procedures.""" import json import argparse import logging from datetime import datetime logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(message)s") logger = logging.getLogger(__name__) O...
128
5,850
Anthropic-Cybersecurity-Skills
skills/analyzing-typosquatting-domains-with-dnstwist/scripts/agent.py
.py
#!/usr/bin/env python3 """Typosquatting domain detection agent using dnstwist concepts.""" import os, sys, json, socket from datetime import datetime try: import dnstwist as dnstwist_lib HAS_DNSTWIST = True except ImportError: HAS_DNSTWIST = False KEYBOARD_NEIGHBORS = { 'q': 'wa', 'w': 'qeas', 'e': '...
97
3,614
Anthropic-Cybersecurity-Skills
skills/analyzing-usb-device-connection-history/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for analyzing USB device connection history from Windows registry hives.""" import os import json import argparse import csv from regipy.registry import RegistryHive def parse_usbstor(system_hive_path): """Parse USBSTOR registry key to enumerate USB storage devices.""" reg = ...
183
6,587
Anthropic-Cybersecurity-Skills
skills/implementing-next-generation-firewall-with-palo-alto/scripts/process.py
.py
#!/usr/bin/env python3 """ Palo Alto NGFW Security Policy Audit Script. Connects to Palo Alto firewall via XML API and audits security policies for common misconfigurations and best practice violations. """ import xml.etree.ElementTree as ET import json import sys import urllib.request import urllib.parse import ssl f...
250
9,509
Anthropic-Cybersecurity-Skills
skills/implementing-next-generation-firewall-with-palo-alto/scripts/agent.py
.py
#!/usr/bin/env python3 """Palo Alto NGFW Agent - audits security policies, threat prevention, and App-ID usage via XML API.""" import json import argparse import logging import subprocess import xml.etree.ElementTree as ET from datetime import datetime logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(le...
114
4,617
Anthropic-Cybersecurity-Skills
skills/analyzing-api-gateway-access-logs/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for analyzing API Gateway access logs for security threats.""" import re import json import argparse from datetime import datetime import pandas as pd def load_api_logs(log_path): """Load API gateway logs from JSON lines or CSV.""" if log_path.endswith(".csv"): return...
177
6,917
Anthropic-Cybersecurity-Skills
skills/performing-steganography-detection/scripts/agent.py
.py
#!/usr/bin/env python3 """Steganography detection agent using Pillow, numpy, and subprocess tools.""" import os import sys import subprocess from pathlib import Path try: from PIL import Image import numpy as np except ImportError: print("Install: pip install Pillow numpy") sys.exit(1) def check_tra...
196
7,233
Anthropic-Cybersecurity-Skills
skills/exploiting-insecure-data-storage-in-mobile/scripts/process.py
.py
#!/usr/bin/env python3 """ Mobile Data Storage Security Scanner Analyzes extracted mobile app data directories for insecure storage patterns. Scans SharedPreferences, SQLite databases, plists, and files for sensitive data. Usage: python process.py --data-dir ./extracted_app_data [--platform android|ios] [--output...
291
10,968
Anthropic-Cybersecurity-Skills
skills/exploiting-insecure-data-storage-in-mobile/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for detecting insecure data storage in mobile applications.""" import argparse import json import os import re import subprocess import sqlite3 from datetime import datetime, timezone ANDROID_SENSITIVE_PATHS = [ "/data/data/{package}/shared_prefs/", "/data/data/{package}/datab...
177
6,631
Anthropic-Cybersecurity-Skills
skills/securing-agentic-ai-tool-invocation/scripts/agent.py
.py
#!/usr/bin/env python3 # Defensive AI-security control. Deploy on agents you own/operate. """Agentic AI tool-invocation policy gate. Implements deny-by-default tool allowlisting, per-tool JSON-schema argument validation, an allow/require_approval/deny decision, an interactive human-in-the-loop approval gate for high-i...
150
5,540
Anthropic-Cybersecurity-Skills
skills/configuring-hsm-for-key-storage/scripts/process.py
.py
#!/usr/bin/env python3 """ HSM Key Storage Configuration Tool (PKCS#11) Demonstrates HSM key management using PKCS#11 interface with SoftHSM2 for development and testing. Covers key generation, signing, encryption, and key management operations. Requirements: pip install python-pkcs11 asn1crypto # Also requir...
354
13,002
Anthropic-Cybersecurity-Skills
skills/configuring-hsm-for-key-storage/scripts/agent.py
.py
#!/usr/bin/env python3 """HSM key storage management agent using PKCS#11 and AWS CloudHSM.""" import json import sys import argparse from datetime import datetime try: import boto3 from botocore.exceptions import ClientError except ImportError: print("Install: pip install boto3") sys.exit(1) def lis...
142
4,940
Anthropic-Cybersecurity-Skills
skills/hunting-for-suspicious-scheduled-tasks/scripts/process.py
.py
#!/usr/bin/env python3 """ Suspicious Scheduled Task Detection Script Analyzes Windows event logs for malicious scheduled task creation, modification, and execution patterns. """ import json import csv import argparse import datetime import re from pathlib import Path SUSPICIOUS_ACTION_PATTERNS = [ (r"(?i)powersh...
119
4,762
Anthropic-Cybersecurity-Skills
skills/hunting-for-suspicious-scheduled-tasks/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for hunting suspicious scheduled tasks on Windows endpoints.""" import json import argparse import re import xml.etree.ElementTree as ET from datetime import datetime try: import Evtx.Evtx as evtx except ImportError: evtx = None SUSPICIOUS_ACTIONS = [ r"powershell", r"pws...
185
6,998
Anthropic-Cybersecurity-Skills
skills/implementing-hardware-security-key-authentication/scripts/agent.py
.py
#!/usr/bin/env python3 """FIDO2/WebAuthn Hardware Security Key Authentication Server. Implements a complete WebAuthn relying party with registration ceremonies, authentication flows, YubiKey enrollment management, and passkey support using the python-fido2 library. For authorized deployment and security testing only....
1,010
38,765
Anthropic-Cybersecurity-Skills
skills/performing-dynamic-analysis-of-android-app/scripts/process.py
.py
#!/usr/bin/env python3 """ Android Dynamic Analysis Automation Automates common Frida/Objection dynamic analysis tasks on Android applications. Enumerates attack surface, hooks sensitive methods, and extracts runtime data. Usage: python process.py --package com.target.app [--device-id DEVICE] [--output report.jso...
249
9,034
Anthropic-Cybersecurity-Skills
skills/performing-dynamic-analysis-of-android-app/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for performing dynamic analysis of Android applications using Frida.""" import json import argparse import subprocess try: import frida HAS_FRIDA = True except ImportError: HAS_FRIDA = False def list_packages(device_id=None): """List installed packages on Android devi...
154
6,325
Anthropic-Cybersecurity-Skills
skills/implementing-conditional-access-policies-azure-ad/scripts/agent.py
.py
#!/usr/bin/env python3 """Azure AD Conditional Access policy audit agent using Microsoft Graph API.""" import argparse import json import logging import os import sys from datetime import datetime from typing import List try: import requests except ImportError: sys.exit("requests required: pip install request...
138
5,610
Anthropic-Cybersecurity-Skills
skills/detecting-golden-ticket-forgery/scripts/agent.py
.py
#!/usr/bin/env python3 """Detect Kerberos Golden Ticket forgery via Windows Security event log analysis.""" import json import argparse import xml.etree.ElementTree as ET from collections import defaultdict from datetime import datetime def parse_security_events(xml_path): """Parse exported Windows Security even...
202
8,454
Anthropic-Cybersecurity-Skills
skills/performing-web-application-firewall-bypass/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for testing WAF bypass techniques. Sends encoded, obfuscated, and protocol-level bypass payloads against a target URL to identify WAF evasion weaknesses in XSS, SQLi, and path traversal filtering. """ import json import os import requests import sys import urllib.parse from datetime im...
146
6,175
Anthropic-Cybersecurity-Skills
skills/performing-authenticated-scan-with-openvas/scripts/process.py
.py
#!/usr/bin/env python3 """OpenVAS Authenticated Scan Automation. Manages scan targets, credentials, tasks, and result export using the Greenbone Management Protocol (GMP) via python-gvm. """ import argparse import csv import json import sys import xml.etree.ElementTree as ET from datetime import datetime, timezone fr...
266
9,713
Anthropic-Cybersecurity-Skills
skills/performing-authenticated-scan-with-openvas/scripts/agent.py
.py
#!/usr/bin/env python3 """OpenVAS/GVM authenticated vulnerability scan orchestration agent.""" import json import argparse import xml.etree.ElementTree as ET from datetime import datetime try: from gvm.connections import UnixSocketConnection from gvm.protocols.gmp import Gmp from gvm.transforms import Etr...
223
7,840
Anthropic-Cybersecurity-Skills
skills/prioritizing-vulnerabilities-with-cvss-scoring/scripts/process.py
.py
#!/usr/bin/env python3 """ CVSS Vulnerability Prioritization Engine Calculates CVSS v4.0 base scores, enriches with EPSS threat intelligence, and generates risk-weighted prioritization for vulnerability remediation. Requirements: pip install requests pandas Usage: python process.py score --cve CVE-2024-3094 ...
402
15,396
Anthropic-Cybersecurity-Skills
skills/prioritizing-vulnerabilities-with-cvss-scoring/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for prioritizing vulnerabilities with CVSS scoring. Calculates CVSS v3.1 base scores from metric vectors, enriches with EPSS exploit probability and KEV catalog data, and generates a risk-prioritized remediation report. """ import json import requests from datetime import datetime from...
176
6,031
Anthropic-Cybersecurity-Skills
skills/implementing-privileged-access-workstation/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for implementing and auditing Privileged Access Workstation (PAW) configurations.""" import json import argparse import subprocess from datetime import datetime def check_device_hardening(): """Audit local device hardening controls for PAW compliance.""" checks = {} harden...
170
7,588
Anthropic-Cybersecurity-Skills
skills/configuring-microsegmentation-for-zero-trust/scripts/process.py
.py
#!/usr/bin/env python3 """ Microsegmentation Policy Analyzer and Flow Validator Analyzes network flow data to identify microsegmentation opportunities, validates policies against observed traffic, and generates segmentation reports. """ import json import csv import sys from collections import defaultdict from dateti...
339
12,360
Anthropic-Cybersecurity-Skills
skills/configuring-microsegmentation-for-zero-trust/scripts/agent.py
.py
#!/usr/bin/env python3 """Microsegmentation audit agent for zero trust network enforcement.""" import json import os import sys import argparse from datetime import datetime try: import requests requests.packages.urllib3.disable_warnings() except ImportError: print("Install: pip install requests") sys...
133
5,104
Anthropic-Cybersecurity-Skills
skills/implementing-zero-standing-privilege-with-cyberark/scripts/process.py
.py
#!/usr/bin/env python3 """ Zero Standing Privilege Audit Tool Discovers standing privileged access across AWS, Azure, and GCP, compares against CyberArk ZSP policies, and identifies accounts that should be migrated to just-in-time access. Requirements: pip install boto3 requests """ import json import logging im...
192
7,038
Anthropic-Cybersecurity-Skills
skills/implementing-zero-standing-privilege-with-cyberark/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for auditing CyberArk Zero Standing Privilege (ZSP) configuration via REST API.""" import os import requests import json import argparse from datetime import datetime, timezone import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) def authenticate(base_ur...
162
7,235
Anthropic-Cybersecurity-Skills
skills/scanning-containers-with-trivy-in-cicd/scripts/process.py
.py
#!/usr/bin/env python3 """ Trivy Container Scanning Pipeline Script Scans Docker images with Trivy, evaluates quality gates, generates reports, and optionally uploads results. Supports both local scanning and CI/CD integration. Usage: python process.py --image myapp:latest --severity-threshold high python pro...
327
12,006
Anthropic-Cybersecurity-Skills
skills/scanning-containers-with-trivy-in-cicd/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for scanning containers with Trivy in CI/CD pipelines. Runs Trivy vulnerability and misconfiguration scans against container images and Dockerfiles, enforces severity-based quality gates, and generates CI/CD-compatible reports. """ import json import subprocess import sys from pathlib ...
171
6,226
Anthropic-Cybersecurity-Skills
skills/configuring-pfsense-firewall-rules/scripts/agent.py
.py
#!/usr/bin/env python3 """pfSense Firewall Configuration Agent - Manages firewall rules via pfSense API.""" 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 = logging.get...
217
8,569
Anthropic-Cybersecurity-Skills
skills/analyzing-outlook-pst-for-email-forensics/scripts/agent.py
.py
#!/usr/bin/env python3 """Outlook PST file forensic analysis agent. Parses PST/OST files using pypff (libpff) to extract emails, attachments, metadata, and deleted items for forensic investigation. """ import os import sys import json import hashlib import re try: import pypff HAS_PYPFF = True except ImportE...
179
5,996
Anthropic-Cybersecurity-Skills
skills/building-red-team-c2-infrastructure-with-havoc/scripts/process.py
.py
#!/usr/bin/env python3 """ Havoc C2 Infrastructure Health Monitor Monitors Havoc C2 infrastructure components (teamserver, redirectors, listeners) and generates operational status reports for red team operations. """ import json import socket import ssl import os import hashlib import subprocess import time from date...
356
12,571
Anthropic-Cybersecurity-Skills
skills/building-red-team-c2-infrastructure-with-havoc/scripts/agent.py
.py
#!/usr/bin/env python3 """Havoc C2 Infrastructure Builder Agent - Manages Havoc C2 framework deployment and listener setup. # For authorized penetration testing and lab environments only. """ import json import logging import argparse from datetime import datetime import requests logging.basicConfig(level=logging.I...
157
6,237
Anthropic-Cybersecurity-Skills
skills/performing-graphql-introspection-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 introspection attack and schema anal...
116
4,610
Anthropic-Cybersecurity-Skills
skills/eradicating-malware-from-infected-systems/scripts/process.py
.py
#!/usr/bin/env python3 """ Malware Eradication Automation Script Scans systems for persistence mechanisms, removes identified malware artifacts, and validates eradication success. Requirements: pip install psutil yara-python """ import argparse import csv import hashlib import json import logging import os impor...
443
18,401
Anthropic-Cybersecurity-Skills
skills/eradicating-malware-from-infected-systems/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for malware eradication from infected systems — process kill, file removal, persistence cleanup.""" import argparse import json import os import subprocess import sys from datetime import datetime, timezone PERSISTENCE_LOCATIONS_WINDOWS = [ r"HKCU\Software\Microsoft\Windows\Curren...
195
7,537
Anthropic-Cybersecurity-Skills
skills/scanning-network-with-nmap-advanced/scripts/agent.py
.py
#!/usr/bin/env python3 """Automated network scanning agent using python-nmap for authorized assessments.""" import nmap import json import csv import sys import os import argparse from datetime import datetime def discover_hosts(scanner, target, timing="T4"): """Run host discovery using multiple probe techniques...
159
7,276
Anthropic-Cybersecurity-Skills
skills/building-threat-intelligence-feed-integration/scripts/agent.py
.py
#!/usr/bin/env python3 """Threat Intelligence Feed Integration Agent - Ingests STIX/TAXII and open-source TI feeds.""" import json import logging import os import argparse import hashlib from datetime import datetime, timedelta import requests from taxii2client.v21 import Collection from stix2 import Indicator, Bundl...
171
6,391
Anthropic-Cybersecurity-Skills
skills/implementing-ransomware-kill-switch-detection/scripts/agent.py
.py
#!/usr/bin/env python3 """Ransomware kill switch detection and mutex vaccination agent. Detects ransomware kill switch mechanisms (mutexes, domains, registry keys) and can proactively deploy mutex vaccinations to prevent known ransomware families from executing. Monitors for kill switch domain DNS queries. """ import...
323
12,270
Anthropic-Cybersecurity-Skills
skills/building-soc-metrics-and-kpi-tracking/scripts/agent.py
.py
#!/usr/bin/env python3 """SOC Metrics and KPI Tracking Agent - Collects and reports SOC performance metrics.""" import json import os import time import logging import argparse from datetime import datetime import requests logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(message)s") logg...
198
7,384
Anthropic-Cybersecurity-Skills
skills/analyzing-network-packets-with-scapy/scripts/agent.py
.py
#!/usr/bin/env python3 """Network packet analysis agent using Scapy for pcap parsing and anomaly detection.""" import json import math import argparse from collections import defaultdict, Counter from datetime import datetime from scapy.all import rdpcap, IP, TCP, UDP, DNS, DNSQR, ICMP def load_pcap(filepath): ...
189
6,881
Anthropic-Cybersecurity-Skills
skills/detecting-beaconing-patterns-with-zeek/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for detecting C2 beaconing patterns in Zeek conn.log data.""" import json import argparse from datetime import datetime import numpy as np import pandas as pd from zat.log_to_dataframe import LogToDataFrame def load_conn_log(log_path): """Load Zeek conn.log into a Pandas DataFram...
172
6,474
Anthropic-Cybersecurity-Skills
skills/performing-cloud-log-forensics-with-athena/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for performing cloud log forensics using AWS Athena. Automates Athena table creation with partition projection and runs forensic SQL queries against CloudTrail, VPC Flow Logs, S3 access logs, and ALB logs. """ import json import time import argparse from datetime import datetime, timed...
808
29,600
Anthropic-Cybersecurity-Skills
skills/testing-ransomware-recovery-procedures/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for testing and validating ransomware recovery procedures. Measures RTO/RPO against targets, validates backup restore integrity, tracks recovery sequencing, and generates compliance reports. """ import argparse import hashlib import json import os import subprocess import sys import ti...
317
11,562
Anthropic-Cybersecurity-Skills
skills/performing-docker-bench-security-assessment/scripts/process.py
.py
#!/usr/bin/env python3 """Docker Bench Security Assessment Runner and Parser.""" import subprocess import json import sys import re def run_docker_bench(): """Run Docker Bench Security and parse results.""" cmd = [ "docker", "run", "--rm", "--net", "host", "--pid", "host", "--userns", "host", ...
57
1,855
Anthropic-Cybersecurity-Skills
skills/performing-docker-bench-security-assessment/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for performing Docker CIS Benchmark security assessment.""" import json import argparse import subprocess from datetime import datetime def run_docker_bench(): """Run docker-bench-security and parse results.""" cmd = [ "docker", "run", "--rm", "--net", "host", "--pid",...
143
5,847
Anthropic-Cybersecurity-Skills
skills/testing-for-host-header-injection/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 HTTP Host header injection vulnerabilities. Te...
189
7,018
Anthropic-Cybersecurity-Skills
skills/performing-ioc-enrichment-automation/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for performing IOC enrichment automation. Orchestrates multi-source IOC lookups across VirusTotal, AbuseIPDB, Shodan, and GreyNoise to provide contextual scoring and disposition. """ import requests import json import sys import time from dataclasses import dataclass, field @dataclas...
244
9,251
Anthropic-Cybersecurity-Skills
skills/hunting-for-persistence-via-wmi-subscriptions/scripts/process.py
.py
#!/usr/bin/env python3 """ WMI Subscription Persistence Detection Script Analyzes Sysmon Events 19/20/21 and process creation logs to detect malicious WMI permanent event subscriptions used for persistence. """ import json import csv import argparse import datetime import re from pathlib import Path DANGEROUS_CONSUME...
175
6,866
Anthropic-Cybersecurity-Skills
skills/hunting-for-persistence-via-wmi-subscriptions/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for hunting WMI event subscription persistence (T1546.003).""" import json import argparse import subprocess import re from datetime import datetime WMI_CLASSES = { "EventFilter": { "wmic_cmd": ["wmic", "/namespace:\\\\root\\subscription", "path", "__EventFilter", "get", "/...
158
6,446
Anthropic-Cybersecurity-Skills
skills/analyzing-windows-lnk-files-for-artifacts/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for analyzing Windows LNK shortcut files for forensic artifacts.""" import os import json import csv import argparse from datetime import datetime import LnkParse3 def parse_lnk_file(filepath): """Parse a single LNK file and extract forensic artifacts.""" with open(filepath, ...
185
6,645
Anthropic-Cybersecurity-Skills
skills/testing-cors-misconfiguration/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for testing CORS misconfiguration vulnerabilities during authorized assessments.""" import os import requests import json import argparse import urllib3 from datetime import datetime from urllib.parse import urlparse urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) ...
207
8,804
Anthropic-Cybersecurity-Skills
skills/tracking-threat-actor-infrastructure/scripts/process.py
.py
#!/usr/bin/env python3 """ Threat Actor Infrastructure Tracking Script Tracks and maps adversary infrastructure using: - Shodan/Censys for service discovery - Passive DNS for domain-IP relationships - Certificate Transparency for certificate monitoring - WHOIS for registration data pivoting Requirements: pip inst...
285
11,104
Anthropic-Cybersecurity-Skills
skills/tracking-threat-actor-infrastructure/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for tracking threat actor infrastructure. Uses passive DNS, certificate transparency, Shodan, WHOIS, and network fingerprinting to discover, pivot across, and map adversary-controlled infrastructure. """ import json import sys import socket import ssl import hashlib from pathlib import...
195
7,800
Anthropic-Cybersecurity-Skills
skills/detecting-indirect-prompt-injection/scripts/agent.py
.py
#!/usr/bin/env python3 # For authorized defensive AI-security use only. """Indirect prompt-injection detection agent. Extracts hidden/obfuscated text from HTML, PDF, or image artifacts, normalizes it, and scans for prompt-injection using heuristics and (optionally) LLM Guard and a transformer classifier. Emits a struc...
166
5,625
Anthropic-Cybersecurity-Skills
skills/performing-agentless-vulnerability-scanning/scripts/process.py
.py
#!/usr/bin/env python3 """ Agentless Vulnerability Scanning Orchestrator Performs SSH-based agentless vulnerability scanning on Linux hosts by enumerating packages and checking against known vulnerabilities. Requirements: pip install paramiko requests pandas Usage: python process.py scan --hosts hosts.txt --...
220
7,739
Anthropic-Cybersecurity-Skills
skills/performing-agentless-vulnerability-scanning/scripts/agent.py
.py
#!/usr/bin/env python3 """Agentless Vulnerability Scanning agent - uses AWS Inspector2 and SSM APIs via boto3 to perform agentless scans of EC2 instances through EBS snapshot analysis without requiring installed agents.""" import argparse import json import sys from collections import Counter from datetime import date...
166
6,754
Anthropic-Cybersecurity-Skills
skills/implementing-gdpr-data-subject-access-request/scripts/agent.py
.py
#!/usr/bin/env python3 """ GDPR Data Subject Access Request (DSAR) Workflow Automation Agent. Implements end-to-end DSAR processing: intake, identity verification, PII discovery using regex and NER, data mapping to Article 15 categories, exemption review, response generation, deadline tracking, and audit logging. Ref...
1,504
59,845
Anthropic-Cybersecurity-Skills
skills/conducting-network-penetration-test/scripts/agent.py
.py
#!/usr/bin/env python3 # For authorized penetration testing and lab environments only """Network Penetration Testing Agent - Automates host discovery, port scanning, and vuln assessment.""" import json import logging import argparse from datetime import datetime import nmap logging.basicConfig(level=logging.INFO, fo...
210
7,549
Anthropic-Cybersecurity-Skills
skills/detecting-process-hollowing-technique/scripts/process.py
.py
#!/usr/bin/env python3 """ Process Hollowing Detection Script Analyzes process creation, memory events, and parent-child relationships to detect process hollowing (T1055.012) indicators. """ import json import csv import argparse import datetime import re from collections import defaultdict from pathlib import Path #...
321
12,220
Anthropic-Cybersecurity-Skills
skills/detecting-process-hollowing-technique/scripts/agent.py
.py
#!/usr/bin/env python3 """Process hollowing (T1055.012) detection agent. Detects hollowed processes by analyzing Sysmon events for suspended process creation, memory allocation in remote processes, and thread hijacking. """ import argparse import json import re from datetime import datetime try: import Evtx.Evtx...
110
4,564
Anthropic-Cybersecurity-Skills
skills/implementing-endpoint-dlp-controls/scripts/process.py
.py
#!/usr/bin/env python3 """DLP Policy Analyzer - Analyzes DLP alert exports for policy tuning.""" import json, csv, sys, os from collections import Counter from datetime import datetime def parse_dlp_alerts(csv_path: str) -> list: alerts = [] with open(csv_path, "r", encoding="utf-8-sig") as f: for ro...
48
1,954
Anthropic-Cybersecurity-Skills
skills/implementing-endpoint-dlp-controls/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for implementing and monitoring endpoint DLP controls.""" import json import argparse import re from datetime import datetime from pathlib import Path SENSITIVE_PATTERNS = { "SSN": r"\b\d{3}-\d{2}-\d{4}\b", "Credit Card": r"\b(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|3[47][0-...
166
6,239
Anthropic-Cybersecurity-Skills
skills/detecting-secure-boot-bypass/scripts/agent.py
.py
#!/usr/bin/env python3 """ Secure Boot bypass / bootkit detection helper (Linux + Windows-aware). Collects: - Secure Boot enabled state - dbx (revocation list) entry count and freshness signal - SHA-256 hashes of EFI boot binaries on the ESP - CHIPSEC secureboot.variables result (optional, requires root + chip...
141
5,269
Anthropic-Cybersecurity-Skills
skills/analyzing-windows-prefetch-with-python/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for analyzing Windows Prefetch files with Python. Parses Prefetch (.pf) files to reconstruct execution history, detect renamed/masquerading binaries, and identify suspicious tool execution using the windowsprefetch library. """ import argparse import hashlib import json import os from ...
189
7,169
Anthropic-Cybersecurity-Skills
skills/deobfuscating-javascript-malware/scripts/agent.py
.py
#!/usr/bin/env python3 """JavaScript malware deobfuscation agent using jsbeautifier and pattern matching.""" import re import sys import json import base64 import urllib.parse from pathlib import Path try: import jsbeautifier except ImportError: jsbeautifier = None def beautify_js(code): """Beautify Jav...
211
7,239
Anthropic-Cybersecurity-Skills
skills/detecting-mobile-malware-behavior/scripts/process.py
.py
#!/usr/bin/env python3 """ Mobile Malware Behavior Analyzer Performs static indicator analysis on Android APK files to detect malware behaviors. Checks permissions, code patterns, and VirusTotal reputation. Usage: python process.py --apk suspicious.apk [--vt-key API_KEY] [--output report.json] """ import argpars...
236
9,036
Anthropic-Cybersecurity-Skills
skills/detecting-mobile-malware-behavior/scripts/agent.py
.py
#!/usr/bin/env python3 """Mobile malware behavior detection agent. Analyzes Android APK manifests and iOS app metadata for suspicious permissions, dangerous API usage, and known malware behavioral patterns. """ import argparse import json import re import subprocess import zipfile from pathlib import Path from dateti...
151
6,249
Anthropic-Cybersecurity-Skills
skills/building-vulnerability-scanning-workflow/scripts/agent.py
.py
#!/usr/bin/env python3 """Vulnerability Scanning Workflow Agent - Automates scan orchestration and prioritization.""" import json import logging import os import argparse from datetime import datetime import requests import nmap logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(message)s"...
172
6,296
Anthropic-Cybersecurity-Skills
skills/performing-graphql-security-assessment/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for performing GraphQL security assessment. Tests GraphQL endpoints for introspection leaks, authorization flaws, query depth/complexity DoS, and injection vulnerabilities. """ import requests import json import sys class GraphQLSecurityAgent: """Performs authorized security asse...
197
7,757
Anthropic-Cybersecurity-Skills
skills/exploiting-api-injection-vulnerabilities/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for testing API injection vulnerabilities (SQL, NoSQL, command injection).""" import argparse import json import urllib.parse from datetime import datetime, timezone try: import requests HAS_REQUESTS = True except ImportError: HAS_REQUESTS = False SQL_PAYLOADS = [ "' ...
143
5,145
Anthropic-Cybersecurity-Skills
skills/executing-phishing-simulation-campaign/scripts/agent.py
.py
#!/usr/bin/env python3 # For authorized testing in lab/CTF environments only """Phishing simulation campaign agent using requests to interact with GoPhish API.""" import argparse import json import logging import sys from datetime import datetime try: import requests except ImportError: sys.exit("requests is ...
175
6,921
Anthropic-Cybersecurity-Skills
skills/conducting-domain-persistence-with-dcsync/scripts/process.py
.py
#!/usr/bin/env python3 """ DCSync Rights Auditor and Hash Analysis Script Audits AD environments for accounts with DCSync rights and analyzes dumped credential data. For authorized red team engagements only. """ import sys import os import re import json from datetime import datetime from collections import defaultdi...
181
5,871
Anthropic-Cybersecurity-Skills
skills/conducting-domain-persistence-with-dcsync/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. """DCSync attack detection and analysis agent using impacket and lda...
154
5,967
Anthropic-Cybersecurity-Skills
skills/configuring-multi-factor-authentication-with-duo/scripts/process.py
.py
#!/usr/bin/env python3 """ Duo MFA Configuration Auditor and Health Checker Audits Duo MFA deployment configuration, checks policy compliance, detects MFA fatigue patterns, and monitors authentication health. """ import json import datetime from typing import Dict, List, Optional from dataclasses import dataclass, fi...
269
11,693
Anthropic-Cybersecurity-Skills
skills/configuring-multi-factor-authentication-with-duo/scripts/agent.py
.py
#!/usr/bin/env python3 """Duo MFA configuration and audit agent using Duo Admin API.""" import json import sys import argparse import hmac import hashlib import email.utils import urllib.parse from datetime import datetime try: import requests except ImportError: print("Install: pip install requests") sys...
140
4,816
Anthropic-Cybersecurity-Skills
skills/implementing-diamond-model-analysis/scripts/process.py
.py
#!/usr/bin/env python3 """ Diamond Model of Intrusion Analysis Implementation Creates Diamond Model events, builds activity threads, and performs pivot analysis. Requirements: pip install networkx stix2 Usage: python process.py --events events.json --output analysis.json python process.py --demo --output dem...
126
4,220
Anthropic-Cybersecurity-Skills
skills/implementing-diamond-model-analysis/scripts/agent.py
.py
#!/usr/bin/env python3 """Diamond Model intrusion analysis agent for structuring threat intelligence events.""" import argparse import json import logging import os import uuid from dataclasses import asdict, dataclass, field from datetime import datetime from typing import Dict, List logging.basicConfig(level=loggin...
134
5,085
Anthropic-Cybersecurity-Skills
skills/detecting-golden-ticket-attacks-in-kerberos-logs/scripts/agent.py
.py
#!/usr/bin/env python3 """Golden Ticket attack detection agent for Kerberos log analysis. Parses Windows Security Event IDs 4768, 4769, 4771 to detect forged TGTs with anomalous encryption types, impossible lifetimes, and non-existent accounts. """ import argparse import json import re from datetime import datetime ...
158
6,279
Anthropic-Cybersecurity-Skills
skills/performing-http-parameter-pollution-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 HTTP parameter pollution (HPP) attack testin...
156
7,198
Anthropic-Cybersecurity-Skills
skills/analyzing-malware-family-relationships-with-malpedia/scripts/agent.py
.py
#!/usr/bin/env python3 """Malpedia Malware Family Relationship Agent - Queries Malpedia API for malware family intelligence.""" import json import logging import argparse from datetime import datetime from collections import defaultdict import requests logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(l...
155
5,489
Anthropic-Cybersecurity-Skills
skills/detecting-business-email-compromise-with-ai/scripts/process.py
.py
#!/usr/bin/env python3 """ AI-Powered BEC Detection Engine Combines NLP analysis, behavioral scoring, and impersonation detection to identify Business Email Compromise attacks. Usage: python process.py detect --email-json email.json --baseline-file baselines.json python process.py train-baseline --email-log e...
329
11,068
Anthropic-Cybersecurity-Skills
skills/detecting-business-email-compromise-with-ai/scripts/agent.py
.py
#!/usr/bin/env python3 """AI-powered BEC detection agent using NLP features for email classification. Extracts linguistic features (urgency, sentiment, writing style metrics) and uses scikit-learn to classify emails as BEC or legitimate. """ import argparse import json import math import re from collections import Co...
139
5,423
Anthropic-Cybersecurity-Skills
skills/auditing-kubernetes-cluster-rbac/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for auditing Kubernetes cluster RBAC configurations.""" import os import json import argparse from datetime import datetime from kubernetes import client, config def load_kube_config(kubeconfig=None, context=None): """Load Kubernetes configuration.""" if kubeconfig: c...
192
7,019
Anthropic-Cybersecurity-Skills
skills/detecting-arp-poisoning-in-network-traffic/scripts/agent.py
.py
#!/usr/bin/env python3 """ARP poisoning detection agent for network traffic analysis.""" import json import argparse import subprocess from datetime import datetime from collections import defaultdict try: from scapy.all import rdpcap, ARP except ImportError: rdpcap = None def analyze_pcap_arp(pcap_path): ...
211
7,137
Anthropic-Cybersecurity-Skills
skills/analyzing-linux-kernel-rootkits/scripts/agent.py
.py
#!/usr/bin/env python3 """Linux Kernel Rootkit Detection Agent - analyzes memory dumps with Volatility3 and live system with rkhunter.""" import json import argparse import logging import subprocess import os from datetime import datetime logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(m...
177
7,024
Anthropic-Cybersecurity-Skills
skills/performing-oil-gas-cybersecurity-assessment/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for performing oil & gas sector cybersecurity assessment based on IEC 62443 and NIST frameworks.""" import json import argparse import csv from datetime import datetime IEC62443_SECURITY_LEVELS = { "SL1": "Protection against casual or coincidental violation", "SL2": "Protectio...
157
7,078
Anthropic-Cybersecurity-Skills
skills/detecting-dcsync-attack-in-active-directory/scripts/process.py
.py
#!/usr/bin/env python3 """ DCSync Attack Detection Script Analyzes Windows Security Event 4662 logs to identify non-domain-controller accounts requesting Active Directory replication rights. """ import json import csv import argparse import datetime import re from pathlib import Path REPLICATION_GUIDS = { "1131f6...
155
5,977
Anthropic-Cybersecurity-Skills
skills/detecting-dcsync-attack-in-active-directory/scripts/agent.py
.py
#!/usr/bin/env python3 """DCSync attack detection agent for Active Directory environments. Parses Windows Security Event ID 4662 logs to detect non-domain-controller accounts requesting directory replication (DCSync technique T1003.006). """ import argparse import json import re from datetime import datetime try: ...
177
6,252