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-business-email-compromise/scripts/process.py
.py
#!/usr/bin/env python3 """ Business Email Compromise (BEC) Detection Engine Analyzes emails for BEC indicators including executive impersonation, financial urgency, payment change requests, and communication anomalies. Usage: python process.py detect --email-json email.json python process.py analyze-log --log...
327
11,965
Anthropic-Cybersecurity-Skills
skills/detecting-business-email-compromise/scripts/agent.py
.py
#!/usr/bin/env python3 """BEC detection agent - analyzes email headers and content for Business Email Compromise indicators. Parses email headers for spoofing signals, checks DMARC/SPF/DKIM alignment, detects urgency language patterns, and flags financial request anomalies. """ import argparse import email import jso...
158
5,582
Anthropic-Cybersecurity-Skills
skills/implementing-log-integrity-with-blockchain/scripts/agent.py
.py
#!/usr/bin/env python3 """Log Integrity Chain Agent - Implements SHA-256 hash-chained append-only log for tamper detection.""" import json import hashlib import logging import argparse from datetime import datetime logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(message)s") logger = logg...
222
7,860
Anthropic-Cybersecurity-Skills
skills/implementing-google-workspace-sso-configuration/scripts/process.py
.py
#!/usr/bin/env python3 """ Google Workspace SSO Configuration Validator Validates SAML SSO configuration between an IdP and Google Workspace by checking SAML metadata, testing authentication flows, and verifying certificate validity. Requirements: pip install requests cryptography lxml """ import base64 import j...
235
8,282
Anthropic-Cybersecurity-Skills
skills/implementing-google-workspace-sso-configuration/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for auditing and configuring Google Workspace SAML SSO.""" import json import argparse from datetime import datetime from pathlib import Path try: from cryptography import x509 except ImportError: x509 = None def parse_saml_certificate(cert_path): """Parse and validate an...
163
7,022
Anthropic-Cybersecurity-Skills
skills/implementing-security-chaos-engineering/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for security chaos engineering experiments.""" import os import json import time import argparse from datetime import datetime import boto3 from botocore.exceptions import ClientError class ChaosExperiment: """Base class for security chaos experiments.""" def __init__(self, ...
223
8,328
Anthropic-Cybersecurity-Skills
skills/performing-active-directory-penetration-test/scripts/process.py
.py
#!/usr/bin/env python3 """ Active Directory Penetration Test — Automation Process Automates AD enumeration, Kerberos attack setup, and reporting. Requires: impacket, bloodhound-python, netexec, ldap3. Usage: python process.py --domain corp.local --dc-ip 10.0.0.5 -u testuser -p Password123 --output ./results """ ...
182
6,938
Anthropic-Cybersecurity-Skills
skills/performing-active-directory-penetration-test/scripts/agent.py
.py
#!/usr/bin/env python3 """Active Directory Penetration Test agent - automates AD enumeration using ldap3 for LDAP queries, subprocess for impacket tools, and generates a structured pentest findings report.""" import argparse import json import subprocess import sys from datetime import datetime from pathlib import Pat...
174
7,053
Anthropic-Cybersecurity-Skills
skills/performing-ios-app-security-assessment/scripts/agent.py
.py
#!/usr/bin/env python3 # For authorized penetration testing and lab environments only """iOS App Security Assessment Agent - Automates Frida-based iOS security testing including SSL pinning bypass, keychain extraction, IPA static analysis, and runtime method hooking.""" import argparse import json import logging impor...
617
23,944
Anthropic-Cybersecurity-Skills
skills/performing-soc-tabletop-exercise/scripts/agent.py
.py
#!/usr/bin/env python3 """SOC tabletop exercise management agent with scenario generation and scoring.""" import datetime SCENARIO_TEMPLATES = { "ransomware": { "title": "Ransomware Attack Scenario", "phases": [ {"time": "T+0", "inject": "Shadow copy deletion detected on file server",...
194
8,361
Anthropic-Cybersecurity-Skills
skills/detecting-suspicious-powershell-execution/scripts/process.py
.py
#!/usr/bin/env python3 """Suspicious PowerShell Detection - Analyzes logs for T1059.001 indicators.""" import json, csv, argparse, datetime, re from collections import defaultdict from pathlib import Path DETECTION_PATTERNS = [ r'-enc', r'-encodedcommand', r'-w hidden', r'-nop', r'iex', r'invo...
89
3,774
Anthropic-Cybersecurity-Skills
skills/detecting-suspicious-powershell-execution/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for detecting suspicious PowerShell execution patterns.""" import argparse import json import os import re import subprocess import sys from datetime import datetime, timezone SUSPICIOUS_CMDLETS = [ "Invoke-Expression", "IEX", "Invoke-WebRequest", "Invoke-RestMethod", "Start-P...
163
6,004
Anthropic-Cybersecurity-Skills
skills/attacking-oauth-with-device-code-phishing/scripts/agent.py
.py
#!/usr/bin/env python3 """ agent.py - OAuth 2.0 device-code phishing helper for authorized Entra ID red teaming. Implements the real Microsoft Entra ID device authorization grant (RFC 8628): 1. POST /devicecode -> obtain user_code + device_code 2. Display the pretext text the operator delivers to the (consenting/...
163
6,707
Anthropic-Cybersecurity-Skills
skills/profiling-threat-actor-groups/scripts/agent.py
.py
#!/usr/bin/env python3 """Threat actor profiling agent using MITRE ATT&CK STIX data and STIX2 library.""" import json import sys import os try: from stix2 import MemoryStore, Filter import requests except ImportError: print("Install: pip install stix2 requests") sys.exit(1) ATTACK_STIX_URL = "https:/...
181
7,022
Anthropic-Cybersecurity-Skills
skills/configuring-oauth2-authorization-flow/scripts/process.py
.py
#!/usr/bin/env python3 """ OAuth 2.0 Authorization Flow Security Auditor Validates OAuth 2.0 configurations, tests PKCE implementation, checks token security, and audits scope assignments for compliance with OAuth 2.1 and RFC 9700 best practices. """ import hashlib import base64 import secrets import json import time...
466
20,408
Anthropic-Cybersecurity-Skills
skills/configuring-oauth2-authorization-flow/scripts/agent.py
.py
#!/usr/bin/env python3 """OAuth 2.0 authorization flow security 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) def discover_oauth_endpoints(issuer_url): """Discover OAuth...
141
5,518
Anthropic-Cybersecurity-Skills
skills/implementing-beyondcorp-zero-trust-access-model/scripts/process.py
.py
#!/usr/bin/env python3 """ BeyondCorp Zero Trust Access Model - Assessment and Audit Tool Audits GCP IAP configuration, Access Context Manager access levels, and Endpoint Verification device compliance to validate BeyondCorp deployment readiness and ongoing compliance. Requirements: pip install google-cloud-iap g...
392
14,683
Anthropic-Cybersecurity-Skills
skills/implementing-beyondcorp-zero-trust-access-model/scripts/agent.py
.py
#!/usr/bin/env python3 """BeyondCorp zero trust access assessment agent using Google Cloud IAP API via requests.""" import argparse import json import logging import os import subprocess import sys from datetime import datetime from typing import List try: import requests except ImportError: sys.exit("request...
131
4,902
Anthropic-Cybersecurity-Skills
skills/post-exploiting-microsoft-graph-with-graphrunner/scripts/agent.py
.py
#!/usr/bin/env python3 """Microsoft Graph post-exploitation recon helper. Authorized-use companion to GraphRunner. Drives the same Microsoft Graph REST endpoints GraphRunner uses, from Python, given an existing Graph access token. Supports device-code token acquisition (azcli first-party client) and read-only recon: u...
172
6,393
Anthropic-Cybersecurity-Skills
skills/designing-adversary-engagement-with-mitre-engage/scripts/process.py
.py
#!/usr/bin/env python3 """ MITRE Engage operation planner. Given a threat model (a list of ATT&CK technique IDs the target adversary uses), this maps each technique to the Engage Activities that expose its weakness, reports coverage gaps, and emits an Adversary Engagement Operation Plan skeleton. The embedded ATT&CK ...
151
6,612
Anthropic-Cybersecurity-Skills
skills/implementing-hashicorp-vault-dynamic-secrets/scripts/agent.py
.py
#!/usr/bin/env python3 """HashiCorp Vault dynamic secrets management agent using hvac client.""" import json import sys import argparse from datetime import datetime try: import hvac from hvac.exceptions import VaultError except ImportError: print("Install hvac: pip install hvac") sys.exit(1) def co...
232
8,828
Anthropic-Cybersecurity-Skills
skills/analyzing-threat-intelligence-feeds/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for analyzing threat intelligence feeds via TAXII 2.1 and STIX 2.1.""" import os import json import argparse from datetime import datetime, timedelta, timezone from taxii2client.v21 import Server, Collection, as_pages from stix2 import Indicator, Bundle def discover_taxii_server(url,...
181
6,967
Anthropic-Cybersecurity-Skills
skills/implementing-gcp-organization-policy-constraints/scripts/process.py
.py
#!/usr/bin/env python3 """ GCP Organization Policy Constraints Management Script Automates auditing, deploying, and monitoring organization policies across a GCP organization hierarchy. """ import json import subprocess import sys from datetime import datetime SECURITY_CONSTRAINTS = { "compute.vmExternalIpAcces...
240
7,856
Anthropic-Cybersecurity-Skills
skills/implementing-gcp-organization-policy-constraints/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for auditing and managing GCP Organization Policy constraints.""" import json import argparse import subprocess from datetime import datetime BASELINE_BOOLEAN_CONSTRAINTS = { "constraints/compute.vmExternalIpAccess": {"type": "list", "expected": "DENY_ALL"}, "constraints/compu...
192
7,869
Anthropic-Cybersecurity-Skills
skills/analyzing-ransomware-leak-site-intelligence/scripts/agent.py
.py
#!/usr/bin/env python3 """Ransomware leak site intelligence analysis agent. Monitors and analyzes ransomware group leak site data for threat intelligence, victim tracking, and TTI (time-to-intelligence) reporting. """ import sys import json from datetime import datetime, timedelta from collections import defaultdict,...
198
6,881
Anthropic-Cybersecurity-Skills
skills/detecting-ntlm-relay-with-event-correlation/scripts/detect_ntlm_relay.py
.py
#!/usr/bin/env python3 """ NTLM Relay Detection via Event Correlation Script Parses Windows Security event logs to detect NTLM relay attacks through IP-hostname mismatch analysis, NTLMv1 downgrade detection, rapid multi-host authentication patterns, and machine account relay indicators. MITRE ATT&CK: T1557.001 (LLMNR/...
633
23,511
Anthropic-Cybersecurity-Skills
skills/detecting-ntlm-relay-with-event-correlation/scripts/agent.py
.py
#!/usr/bin/env python3 """NTLM Relay Detection Agent - Detects NTLM relay via Event 4624 correlation and signing audit.""" import json import logging import argparse import csv import os import sys import subprocess from collections import defaultdict from datetime import datetime, timedelta logging.basicConfig(level...
378
14,721
Anthropic-Cybersecurity-Skills
skills/performing-ip-reputation-analysis-with-shodan/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for performing IP reputation analysis using the Shodan API.""" import json import argparse from datetime import datetime try: import shodan HAS_SHODAN = True except ImportError: HAS_SHODAN = False try: import requests HAS_REQUESTS = True except ImportError: HAS...
124
4,260
Anthropic-Cybersecurity-Skills
skills/building-soc-escalation-matrix/scripts/process.py
.py
#!/usr/bin/env python3 """ SOC Escalation Matrix Builder and Simulator Builds escalation matrices, simulates incident routing, and tracks SLA compliance for SOC operations. """ import json from datetime import datetime, timedelta SEVERITY_CONFIG = { "P1": { "name": "Critical", "initial_response_...
222
8,239
Anthropic-Cybersecurity-Skills
skills/building-soc-escalation-matrix/scripts/agent.py
.py
#!/usr/bin/env python3 """SOC Escalation Matrix Agent - Builds and validates SOC escalation paths and response workflows.""" import json import logging import argparse from datetime import datetime logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(message)s") logger = logging.getLogger(__n...
150
7,570
Anthropic-Cybersecurity-Skills
skills/implementing-runtime-application-self-protection/scripts/agent.py
.py
#!/usr/bin/env python3 """RASP Agent - audits runtime application protection config, attack logs, and coverage.""" import json import argparse import logging from collections import defaultdict from datetime import datetime logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(message)s") logg...
162
6,847
Anthropic-Cybersecurity-Skills
skills/performing-directory-traversal-testing/scripts/agent.py
.py
#!/usr/bin/env python3 """ Directory Traversal Testing Agent — AUTHORIZED TESTING ONLY Tests web applications for path traversal (LFI) vulnerabilities by injecting traversal sequences into file path parameters. WARNING: Only use with explicit written authorization for the target application. """ import sys from datet...
262
8,876
Anthropic-Cybersecurity-Skills
skills/enumerating-cloud-with-cloudfox/scripts/agent.py
.py
#!/usr/bin/env python3 """ CloudFox enumeration driver. Runs a curated set of CloudFox commands against an AWS profile (or `all-checks`), captures output into a structured directory, and prints a triage summary that highlights the high-value findings (role-trusts, secrets, endpoints). Authorized-use only: CloudFox pe...
106
3,789
Anthropic-Cybersecurity-Skills
skills/exploiting-mass-assignment-in-rest-apis/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for detecting mass assignment vulnerabilities in REST APIs.""" import argparse import json from datetime import datetime, timezone try: import requests HAS_REQUESTS = True except ImportError: HAS_REQUESTS = False PRIVILEGE_FIELDS = [ "role", "roles", "is_admin", "isAdm...
126
4,629
Anthropic-Cybersecurity-Skills
skills/triaging-security-incident-with-ir-playbook/scripts/process.py
.py
#!/usr/bin/env python3 """ Security Incident Triage Automation Script Automates incident triage workflow: - Enriches IOCs with threat intelligence APIs - Calculates severity based on asset criticality and threat level - Selects appropriate IR playbook - Creates incident tickets - Generates triage report Requirements:...
367
15,558
Anthropic-Cybersecurity-Skills
skills/triaging-security-incident-with-ir-playbook/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for triaging security incidents with IR playbooks. Classifies alerts by incident type, assigns severity using a structured matrix, selects the appropriate IR playbook, and generates triage decisions with escalation recommendations. """ import json import sys from pathlib import Path fr...
207
8,659
Anthropic-Cybersecurity-Skills
skills/auditing-gcp-iam-permissions/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for auditing GCP IAM permissions using google-cloud libraries.""" import json import argparse from datetime import datetime from google.cloud import asset_v1 from google.cloud import resourcemanager_v3 def search_iam_policies(scope, query=""): """Search IAM policies across the GC...
161
6,137
Anthropic-Cybersecurity-Skills
skills/implementing-secrets-scanning-in-ci-cd/scripts/agent.py
.py
#!/usr/bin/env python3 """Secrets scanning CI/CD gate using gitleaks and trufflehog.""" import argparse import json import os import subprocess import sys import tempfile import time SEVERITY_ORDER = {"critical": 4, "high": 3, "medium": 2, "low": 1, "info": 0} GITLEAKS_SEVERITY_MAP = { "aws-access-key": "critic...
174
5,938
Anthropic-Cybersecurity-Skills
skills/implementing-security-information-sharing-with-stix2/scripts/agent.py
.py
#!/usr/bin/env python3 """STIX 2.1 threat intelligence sharing agent. Creates, validates, and exports STIX 2.1 objects including indicators, malware, campaigns, and relationships using the stix2 Python library. """ import argparse import json import sys import datetime try: import stix2 from stix2 import Ind...
202
7,185
Anthropic-Cybersecurity-Skills
skills/building-vulnerability-aging-and-sla-tracking/scripts/process.py
.py
#!/usr/bin/env python3 """ Vulnerability Aging and SLA Tracking Engine Calculates vulnerability aging, SLA compliance, and generates escalation reports and KPI dashboards. Requirements: pip install pandas Usage: python process.py analyze --csv vulns.csv --output aging_report.csv python process.py kpis --...
177
5,810
Anthropic-Cybersecurity-Skills
skills/building-vulnerability-aging-and-sla-tracking/scripts/agent.py
.py
#!/usr/bin/env python3 """Vulnerability aging and SLA tracking agent. Tracks vulnerability remediation timelines, calculates SLA compliance, generates aging reports, and identifies overdue items by severity. """ import json import datetime import collections SLA_DEFINITIONS = { "critical": {"remediation_days": ...
191
7,133
Anthropic-Cybersecurity-Skills
skills/analyzing-cobalt-strike-beacon-configuration/scripts/process.py
.py
#!/usr/bin/env python3 """ Cobalt Strike Beacon Configuration Analyzer Extracts and analyzes beacon configurations from PE files, shellcode, and memory dumps using dissect.cobaltstrike and manual parsing. Requirements: pip install dissect.cobaltstrike pefile yara-python Usage: python process.py --file beacon...
338
10,620
Anthropic-Cybersecurity-Skills
skills/analyzing-cobalt-strike-beacon-configuration/scripts/agent.py
.py
#!/usr/bin/env python3 """Cobalt Strike beacon configuration extraction and analysis agent. Extracts C2 configuration from beacon payloads including server addresses, communication settings, malleable C2 profile details, and watermark values. """ import struct import os import sys import hashlib from collections impo...
240
8,405
Anthropic-Cybersecurity-Skills
skills/performing-malware-ioc-extraction/scripts/process.py
.py
#!/usr/bin/env python3 """ Malware IOC Extraction Script Performs static analysis on PE files to extract IOCs: - File hash generation (MD5, SHA-1, SHA-256, imphash) - PE header parsing and section analysis - String extraction with IOC pattern matching - YARA rule scanning - STIX 2.1 bundle generation Requirements: ...
453
16,560
Anthropic-Cybersecurity-Skills
skills/performing-malware-ioc-extraction/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for performing malware IOC extraction from files, reports, and samples.""" import json import argparse import re import hashlib from pathlib import Path IOC_PATTERNS = { "ipv4": re.compile(r"\b(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\b"), ...
150
6,173
Anthropic-Cybersecurity-Skills
skills/detecting-container-escape-with-falco-rules/scripts/process.py
.py
#!/usr/bin/env python3 """ Falco Container Escape Rule Manager - Generate, validate, and deploy custom Falco rules for container escape detection. """ import json import subprocess import sys import argparse from pathlib import Path from datetime import datetime # Container escape detection rule templates ESCAPE_RULE...
233
8,541
Anthropic-Cybersecurity-Skills
skills/detecting-container-escape-with-falco-rules/scripts/agent.py
.py
#!/usr/bin/env python3 """Falco-based container escape detection agent. Manages Falco rules, parses Falco alert output, and generates escape detection reports from Falco JSON event streams. """ import argparse import json import subprocess import sys from datetime import datetime ESCAPE_RULE_TAGS = ["container", "es...
176
6,452
Anthropic-Cybersecurity-Skills
skills/extracting-credentials-from-memory-dump/scripts/agent.py
.py
#!/usr/bin/env python3 """Memory dump credential extraction agent using volatility3 subprocess and pypykatz.""" import argparse import hashlib import json import logging import os import re import subprocess from datetime import datetime from typing import List, Optional logging.basicConfig(level=logging.INFO, format...
241
9,589
Anthropic-Cybersecurity-Skills
skills/implementing-api-schema-validation-security/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for auditing API schema validation security using OpenAPI specs.""" import json import argparse from datetime import datetime try: import yaml except ImportError: yaml = None try: import jsonschema except ImportError: jsonschema = None def load_openapi_spec(spec_path...
168
7,101
Anthropic-Cybersecurity-Skills
skills/performing-dmarc-policy-enforcement-rollout/scripts/process.py
.py
#!/usr/bin/env python3 """ DMARC Policy Enforcement Rollout Analyzer Checks current DMARC, SPF, and DKIM status for a domain and provides rollout recommendations. Parses DMARC aggregate reports to identify sending sources and authentication failures. Usage: python process.py check --domain example.com python ...
339
12,014
Anthropic-Cybersecurity-Skills
skills/performing-dmarc-policy-enforcement-rollout/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for performing DMARC policy enforcement rollout with DNS record analysis.""" import json import argparse from datetime import datetime try: import dns.resolver except ImportError: dns = None def check_dmarc(domain): """Query and parse DMARC record for a domain.""" try...
146
5,543
Anthropic-Cybersecurity-Skills
skills/detecting-insider-threat-behaviors/scripts/process.py
.py
#!/usr/bin/env python3 """Insider Threat Detection - Analyzes logs for T1078 indicators.""" import json, csv, argparse, datetime, re from collections import defaultdict from pathlib import Path DETECTION_PATTERNS = [ r'bulk.*download', r'mass.*copy', r'sensitive.*access', ] def parse_logs(path): p = ...
80
3,572
Anthropic-Cybersecurity-Skills
skills/detecting-insider-threat-behaviors/scripts/agent.py
.py
#!/usr/bin/env python3 """Insider threat behavior detection agent using UEBA indicators. Analyzes user activity logs to detect anomalous behaviors: off-hours access, mass file downloads, unusual data access patterns, and privilege abuse. """ import argparse import json from collections import defaultdict from datetim...
169
6,235
Anthropic-Cybersecurity-Skills
skills/building-threat-intelligence-platform/scripts/process.py
.py
#!/usr/bin/env python3 """ Threat Intelligence Platform Management Script Manages a multi-component TIP deployment: - Checks platform component health - Configures feed ingestion across MISP and OpenCTI - Runs enrichment pipelines via Cortex analyzers - Generates platform metrics and dashboards Requirements: pip ...
180
6,322
Anthropic-Cybersecurity-Skills
skills/building-threat-intelligence-platform/scripts/agent.py
.py
#!/usr/bin/env python3 """Threat intelligence platform builder. Core TIP components: STIX/TAXII ingestion, indicator lifecycle management, confidence scoring, sharing groups, and intelligence dissemination. """ import json import datetime import re import uuid STIX_INDICATOR_TYPES = { "ipv4-addr": "[ipv4-addr:v...
164
5,791
Anthropic-Cybersecurity-Skills
skills/implementing-patch-management-workflow/scripts/process.py
.py
#!/usr/bin/env python3 """ Patch Management Workflow Automation Tracks patch compliance, generates deployment plans, and monitors patch installation success across the enterprise. Requirements: pip install requests pandas jinja2 pyyaml Usage: python process.py compliance --scan-csv scan_results.csv --asset-c...
342
14,037
Anthropic-Cybersecurity-Skills
skills/implementing-patch-management-workflow/scripts/agent.py
.py
#!/usr/bin/env python3 """Patch management workflow agent. Audits system patch compliance by checking installed package versions against known vulnerabilities, tracking patch SLA adherence, and generating remediation reports. Supports Linux (apt/yum) and basic CVE cross-referencing via the CISA KEV catalog. """ import...
285
9,788
Anthropic-Cybersecurity-Skills
skills/conducting-api-security-testing/scripts/agent.py
.py
#!/usr/bin/env python3 # For authorized penetration testing and lab environments only """API Security Testing Agent - Tests REST/GraphQL APIs for OWASP API Top 10 vulnerabilities.""" import json import logging import argparse from datetime import datetime from urllib.parse import urljoin import requests logging.basi...
229
8,394
Anthropic-Cybersecurity-Skills
skills/hunting-for-domain-fronting-c2-traffic/scripts/agent.py
.py
#!/usr/bin/env python3 """Detect domain fronting C2 traffic via SNI/Host header mismatch and TLS certificate analysis.""" import json import csv import ssl import socket import argparse from collections import defaultdict from datetime import datetime try: from OpenSSL import crypto HAS_PYOPENSSL = True excep...
174
6,636
Anthropic-Cybersecurity-Skills
skills/analyzing-tls-certificate-transparency-logs/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for analyzing Certificate Transparency logs for phishing detection.""" import json import argparse from datetime import datetime import requests from pycrtsh import Crtsh def search_certificates(domain, include_expired=False): """Search crt.sh for certificates matching a domain."...
176
6,460
Anthropic-Cybersecurity-Skills
skills/extracting-iocs-from-malware-samples/scripts/agent.py
.py
#!/usr/bin/env python3 # For authorized testing in lab/CTF environments only """IOC extraction agent using pefile, yara-python, and requests for VirusTotal validation.""" import argparse import csv import hashlib import json import logging import os import re import sys from datetime import datetime from typing import...
272
10,921
Anthropic-Cybersecurity-Skills
skills/evaluating-threat-intelligence-platforms/scripts/agent.py
.py
#!/usr/bin/env python3 """Threat Intelligence Platform evaluation agent for MISP, OpenCTI, and ThreatConnect.""" import json import sys import urllib.request import ssl from datetime import datetime class TIPEvaluator: """Evaluate and test TIP platform capabilities.""" EVALUATION_CRITERIA = { "core_...
231
9,491
Anthropic-Cybersecurity-Skills
skills/implementing-aws-nitro-enclave-security/scripts/agent.py
.py
#!/usr/bin/env python3 # For authorized cloud security assessments only """AWS Nitro Enclave Security Agent - Validates enclave attestation, audits KMS policies, and verifies enclave isolation.""" import argparse import base64 import hashlib import json import logging import socket import struct import sys from dateti...
511
21,115
Anthropic-Cybersecurity-Skills
skills/performing-api-fuzzing-with-restler/scripts/agent.py
.py
#!/usr/bin/env python3 # For authorized testing only """RESTler API fuzzing orchestration and result analysis agent.""" import json import argparse import subprocess import os from datetime import datetime def compile_spec(restler_path, api_spec): """Compile OpenAPI spec into RESTler fuzzing grammar.""" cmd ...
192
7,425
Anthropic-Cybersecurity-Skills
skills/implementing-sigstore-for-software-signing/scripts/agent.py
.py
#!/usr/bin/env python3 """Sigstore Software Signing Agent - Automates cosign keyless signing, Rekor transparency log verification, and Fulcio certificate inspection for container images and software artifacts.""" import json import logging import argparse import subprocess import hashlib import sys from datetime impor...
474
18,122
Anthropic-Cybersecurity-Skills
skills/hunting-for-living-off-the-cloud-techniques/scripts/process.py
.py
#!/usr/bin/env python3 """Living off the Cloud Detection - Analyzes logs for T1102 indicators.""" import json, csv, argparse, datetime, re from collections import defaultdict from pathlib import Path DETECTION_PATTERNS = [ r'pastebin', r'discord.*webhook', r'telegram.*api', r'notion\\.so', r'trell...
83
3,649
Anthropic-Cybersecurity-Skills
skills/hunting-for-living-off-the-cloud-techniques/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for hunting living-off-the-cloud (LOTC) techniques using cloud service logs.""" import json import argparse import re from datetime import datetime try: from elasticsearch import Elasticsearch except ImportError: Elasticsearch = None CLOUD_C2_DOMAINS = [ "*.blob.core.windo...
152
6,106
Anthropic-Cybersecurity-Skills
skills/implementing-siem-use-case-tuning/scripts/agent.py
.py
#!/usr/bin/env python3 """SIEM use case tuning agent - analyzes alert data to reduce false positives and optimize detection rules.""" import json import csv import math import argparse from collections import defaultdict from datetime import datetime def load_alert_data(filepath): """Load alert/notable event exp...
188
8,282
Anthropic-Cybersecurity-Skills
skills/performing-kubernetes-etcd-security-assessment/scripts/process.py
.py
#!/usr/bin/env python3 """ Kubernetes etcd Security Assessment Tool Checks etcd security configuration including TLS, encryption at rest, access controls, certificate expiration, and backup status. """ import json import subprocess import sys import argparse import ssl import socket from datetime import datetime, tim...
196
7,589
Anthropic-Cybersecurity-Skills
skills/performing-kubernetes-etcd-security-assessment/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for performing Kubernetes etcd security assessment.""" import json import argparse import os import subprocess import re from datetime import datetime def check_etcd_encryption(kubeconfig=None): """Check if etcd encryption at rest is configured.""" cmd = ["kubectl", "get", "ap...
187
8,289
Anthropic-Cybersecurity-Skills
skills/implementing-zero-trust-for-saas-applications/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for auditing zero trust controls on SaaS applications via Microsoft Graph API.""" import requests import json import argparse from datetime import datetime, timezone GRAPH_API = "https://graph.microsoft.com/v1.0" def get_token(tenant_id, client_id, client_secret): """Acquire OAut...
142
5,929
Anthropic-Cybersecurity-Skills
skills/implementing-google-workspace-phishing-protection/scripts/process.py
.py
#!/usr/bin/env python3 """ Google Workspace Phishing Protection Auditor Audits Google Workspace Gmail safety settings configuration and generates compliance recommendations. Usage: python process.py audit --config-file gws_config.json python process.py check-auth --domain example.com """ import argparse impo...
225
7,425
Anthropic-Cybersecurity-Skills
skills/implementing-google-workspace-phishing-protection/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for auditing Google Workspace phishing and malware protection settings.""" import json import argparse import subprocess from datetime import datetime from collections import Counter def gam_command(args_list): """Run a GAM (Google Apps Manager) command.""" cmd = ["gam"] + arg...
195
7,817
Anthropic-Cybersecurity-Skills
skills/performing-second-order-sql-injection/scripts/agent.py
.py
#!/usr/bin/env python3 """Second-Order SQL Injection agent — detects stored SQL injection payloads by analyzing database content and tracing data flow from input to secondary query execution points.""" import argparse import json import re from collections import Counter from datetime import datetime from pathlib impo...
164
6,595
Anthropic-Cybersecurity-Skills
skills/implementing-iso-27001-information-security-management/scripts/process.py
.py
#!/usr/bin/env python3 """ ISO 27001 ISMS Compliance Check Automation Automates gap analysis, risk assessment tracking, Statement of Applicability management, and audit readiness checks for ISO/IEC 27001:2022 implementation. """ import json import csv import os import sys from datetime import datetime, timedelta from...
712
32,518
Anthropic-Cybersecurity-Skills
skills/implementing-iso-27001-information-security-management/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for assessing ISO 27001:2022 ISMS compliance.""" import json import argparse from datetime import datetime from collections import Counter ANNEX_A_CATEGORIES = { "A.5": {"name": "Organizational controls", "count": 37}, "A.6": {"name": "People controls", "count": 8}, "A.7": ...
202
8,356
Anthropic-Cybersecurity-Skills
skills/detecting-living-off-the-land-attacks/scripts/agent.py
.py
#!/usr/bin/env python3 """LOLBin (Living Off the Land Binary) detection agent. Parses Windows Sysmon Event ID 1 (Process Create) and Event ID 3 (Network Connection) logs in EVTX or JSON format to detect suspicious LOLBin execution patterns, anomalous parent-child relationships, and LOLBin network activity. """ import...
502
18,993
Anthropic-Cybersecurity-Skills
skills/hunting-saas-sso-token-abuse/scripts/agent.py
.py
#!/usr/bin/env python3 """ SaaS SSO token-abuse hunter (Okta System Log). Pulls Okta System Log events over the API and flags session tokens (externalSessionId) that are observed from multiple source IPs or user-agents within the window — a strong indicator of session-cookie/token replay (MITRE ATT&CK T1550.001 / pass...
137
5,280
Anthropic-Cybersecurity-Skills
skills/scanning-infrastructure-with-nessus/scripts/process.py
.py
#!/usr/bin/env python3 """ Nessus Infrastructure Scanning Automation Script Automates vulnerability scanning workflows using the Nessus REST API: - Creates and launches scans - Monitors scan progress - Exports and parses results - Generates summary reports with severity breakdown Requirements: pip install request...
490
21,306
Anthropic-Cybersecurity-Skills
skills/scanning-infrastructure-with-nessus/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for scanning infrastructure with Tenable Nessus. Interacts with the Nessus REST API to create scan policies, launch scans, monitor progress, retrieve results, and generate vulnerability reports with severity-based prioritization. """ import json import os import sys import time import ...
184
6,251
Anthropic-Cybersecurity-Skills
skills/implementing-container-network-policies-with-calico/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for implementing container network policies with Calico. Audits Kubernetes network policies, identifies unprotected namespaces, validates Calico policy enforcement, and generates default-deny baseline policy manifests. """ import argparse import json import os import subprocess from da...
193
7,972
Anthropic-Cybersecurity-Skills
skills/detecting-mimikatz-execution-patterns/scripts/process.py
.py
#!/usr/bin/env python3 """Mimikatz Detection - Analyzes logs for T1003.001 indicators.""" import json, csv, argparse, datetime, re from collections import defaultdict from pathlib import Path DETECTION_PATTERNS = [ r'sekurlsa::', r'lsadump::', r'kerberos::list', r'privilege::debug', r'token::eleva...
88
3,712
Anthropic-Cybersecurity-Skills
skills/detecting-mimikatz-execution-patterns/scripts/agent.py
.py
#!/usr/bin/env python3 """Mimikatz execution pattern detection agent. Detects Mimikatz and related credential theft tools by analyzing process creation logs, LSASS access patterns, and known command-line signatures. """ import argparse import json import re import sys from datetime import datetime try: import Ev...
154
5,966
Anthropic-Cybersecurity-Skills
skills/hunting-for-anomalous-powershell-execution/scripts/agent.py
.py
#!/usr/bin/env python3 """PowerShell Script Block Logging threat hunting agent.""" import json import sys import argparse import base64 import re from datetime import datetime from collections import defaultdict try: import Evtx.Evtx as evtx from lxml import etree except ImportError: print("Install: pip i...
248
8,799
Anthropic-Cybersecurity-Skills
skills/configuring-windows-defender-advanced-settings/scripts/process.py
.py
#!/usr/bin/env python3 """ Windows Defender Configuration Auditor Collects and audits Microsoft Defender for Endpoint settings across endpoints, identifies configuration gaps, and generates compliance reports. """ import json import subprocess import sys import os from datetime import datetime RECOMMENDED_SETTINGS ...
234
9,566
Anthropic-Cybersecurity-Skills
skills/configuring-windows-defender-advanced-settings/scripts/agent.py
.py
#!/usr/bin/env python3 """Windows Defender advanced configuration audit agent.""" import json import argparse import subprocess from datetime import datetime def get_defender_status(): """Get Windows Defender status via PowerShell.""" cmd = ["powershell", "-Command", "Get-MpComputerStatus | ConvertTo-Json"] ...
117
5,097
Anthropic-Cybersecurity-Skills
skills/performing-cloud-asset-inventory-with-cartography/scripts/process.py
.py
#!/usr/bin/env python3 """ Cartography Cloud Asset Inventory Security Analysis Script Connects to Neo4j after Cartography sync and runs security-focused queries to identify misconfigurations, attack paths, and overprivileged access. """ import json import sys from datetime import datetime try: from neo4j import ...
174
6,298
Anthropic-Cybersecurity-Skills
skills/performing-cloud-asset-inventory-with-cartography/scripts/agent.py
.py
#!/usr/bin/env python3 """Cartography cloud asset inventory agent. Wraps the Cartography tool to enumerate and inventory cloud assets across AWS accounts, then queries the resulting Neo4j graph database to identify security-relevant relationships, exposed resources, and misconfigured assets. """ import argparse import...
240
8,531
Anthropic-Cybersecurity-Skills
skills/implementing-vulnerability-remediation-sla/scripts/process.py
.py
#!/usr/bin/env python3 """ Vulnerability Remediation SLA Tracking Engine Calculates SLA deadlines, monitors compliance, generates breach notifications, and produces executive reporting dashboards. Requirements: pip install pandas jinja2 Usage: python process.py calculate --vulns vulns.csv --assets assets.csv...
274
11,013
Anthropic-Cybersecurity-Skills
skills/implementing-vulnerability-remediation-sla/scripts/agent.py
.py
#!/usr/bin/env python3 """Vulnerability remediation SLA tracking agent. Tracks vulnerability remediation against defined SLA targets based on severity. Ingests vulnerability data from scanners (JSON/CSV format), calculates SLA compliance, identifies overdue items, and generates remediation priority reports. """ import...
233
8,796
Anthropic-Cybersecurity-Skills
skills/implementing-vulnerability-management-with-greenbone/scripts/agent.py
.py
#!/usr/bin/env python3 """Greenbone/OpenVAS Vulnerability Management agent - creates scan targets, executes scans, and parses reports via python-gvm GMP protocol""" import argparse import json from collections import Counter, defaultdict from datetime import datetime from pathlib import Path try: from gvm.connect...
153
6,040
Anthropic-Cybersecurity-Skills
skills/assessing-vector-and-embedding-weaknesses/scripts/agent.py
.py
#!/usr/bin/env python3 """Vector/embedding weakness assessor. Runs four checks against a RAG pipeline you are authorized to test: inversion - measures how close a guessed reconstruction sits to a target vector membership - computes in-corpus vs control top-1 similarity delta (Qdrant) isolation - verifies serve...
153
5,982
Anthropic-Cybersecurity-Skills
skills/implementing-privileged-access-management-with-cyberark/scripts/process.py
.py
#!/usr/bin/env python3 """ CyberArk PAM Health Monitor and Audit Script Monitors CyberArk vault health, checks credential rotation status, audits safe permissions, and generates compliance reports for privileged access management. """ import json import datetime import hashlib from typing import Dict, List, Optional ...
392
16,859
Anthropic-Cybersecurity-Skills
skills/implementing-privileged-access-management-with-cyberark/scripts/agent.py
.py
#!/usr/bin/env python3 """CyberArk PAM configuration audit agent. Audits CyberArk Privileged Access Management via the REST API to verify safe configurations, privileged account inventory, platform assignments, and password rotation compliance. """ import argparse import json import os import sys from datetime import ...
253
9,803
Anthropic-Cybersecurity-Skills
skills/analyzing-prefetch-files-for-execution-history/scripts/agent.py
.py
#!/usr/bin/env python3 """Windows Prefetch file analysis agent for program execution history forensics.""" import struct import os import sys import datetime import json import glob def parse_prefetch_header(filepath): """Parse the Prefetch file header to extract execution metadata.""" with open(filepath, "r...
216
8,231
Anthropic-Cybersecurity-Skills
skills/implementing-honeytokens-for-breach-detection/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for deploying and managing honeytokens for breach detection.""" import os import json import uuid import hashlib import argparse from datetime import datetime import re import requests _SAFE_TABLE_RE = re.compile(r'^[a-zA-Z_][a-zA-Z0-9_]*$') def create_dns_canarytoken(email, memo, ...
206
7,061
Anthropic-Cybersecurity-Skills
skills/implementing-cloud-security-posture-management/scripts/agent.py
.py
#!/usr/bin/env python3 """Cloud Security Posture Management (CSPM) agent across AWS, Azure, and GCP.""" import json import argparse import subprocess from datetime import datetime from collections import Counter try: import boto3 from botocore.exceptions import ClientError except ImportError: boto3 = None...
175
7,831
Anthropic-Cybersecurity-Skills
skills/implementing-honeypot-for-ransomware-detection/scripts/process.py
.py
#!/usr/bin/env python3 """ Ransomware Honeypot Deployment and Monitoring Tool Deploys canary files across file shares and monitors for modifications that indicate ransomware activity. Supports: - Canary file generation with realistic content - File system monitoring with immediate alerting - Integration with SIEM via ...
294
11,618
Anthropic-Cybersecurity-Skills
skills/implementing-honeypot-for-ransomware-detection/scripts/agent.py
.py
#!/usr/bin/env python3 """Agent for deploying and monitoring ransomware honeypot canary files.""" import os import json import argparse import hashlib import time from datetime import datetime from pathlib import Path from collections import Counter CANARY_EXTENSIONS = [".docx", ".xlsx", ".pdf", ".pptx", ".csv", ".t...
233
8,854
Anthropic-Cybersecurity-Skills
skills/analyzing-memory-dumps-with-volatility/scripts/agent.py
.py
#!/usr/bin/env python3 """Memory forensics agent using Volatility 3 for malware detection in RAM dumps.""" import shlex import subprocess import os import sys def run_vol3(memory_dump, plugin, extra_args=""): """Execute a Volatility 3 plugin and return output.""" cmd = ["vol3", "-f", memory_dump, plugin] ...
244
9,024