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/bypassing-authentication-with-forced-browsing/scripts/agent.py | .py | #!/usr/bin/env python3
# For authorized penetration testing and lab environments only
"""Forced Browsing Authentication Bypass Agent - Tests for unprotected endpoints."""
import json
import logging
import argparse
from datetime import datetime
from urllib.parse import urljoin
import requests
logging.basicConfig(leve... | 183 | 6,826 |
Anthropic-Cybersecurity-Skills | skills/building-phishing-reporting-button-workflow/scripts/process.py | .py | #!/usr/bin/env python3
"""
Phishing Report Triage Engine
Processes user-reported phishing emails, extracts IOCs,
performs automated analysis, and classifies the report.
Usage:
python process.py triage --eml-file reported_email.eml
python process.py metrics --reports-file reports.json
python process.py ext... | 305 | 10,765 |
Anthropic-Cybersecurity-Skills | skills/building-phishing-reporting-button-workflow/scripts/agent.py | .py | #!/usr/bin/env python3
"""Phishing Reporting Button Workflow Agent - Processes user-reported phishing emails via button integration."""
import json
import logging
import argparse
import re
import hashlib
from datetime import datetime
from email import policy
from email.parser import BytesParser
import requests
loggi... | 168 | 7,320 |
Anthropic-Cybersecurity-Skills | skills/auditing-kubernetes-rbac-privilege-escalation/scripts/agent.py | .py | #!/usr/bin/env python3
# For authorized Kubernetes security assessments only. Run against clusters you
# own or are explicitly authorized in writing to test.
"""Kubernetes RBAC privilege-escalation auditor.
Wraps `kubectl auth can-i` to enumerate effective permissions for service
accounts and flag the RBAC primitives ... | 168 | 5,831 |
Anthropic-Cybersecurity-Skills | skills/analyzing-windows-registry-for-artifacts/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for analyzing Windows Registry hives for forensic artifacts."""
import os
import json
import codecs
import struct
import argparse
from datetime import datetime, timedelta
from regipy.registry import RegistryHive
def extract_autorun_entries(software_hive_path):
"""Extract Run/RunO... | 222 | 8,203 |
Anthropic-Cybersecurity-Skills | skills/performing-power-grid-cybersecurity-assessment/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for performing power grid cybersecurity assessment based on NERC CIP standards."""
import json
import argparse
import csv
NERC_CIP_STANDARDS = {
"CIP-002": {"title": "BES Cyber System Categorization", "checks": [
"All BES cyber systems identified and categorized",
... | 173 | 7,540 |
Anthropic-Cybersecurity-Skills | skills/exploiting-insecure-deserialization/scripts/agent.py | .py | #!/usr/bin/env python3
# For authorized testing in lab/CTF environments only
"""Insecure deserialization detection agent for identifying serialized data in HTTP traffic."""
import argparse
import base64
import json
import logging
import re
import sys
from typing import List, Optional
try:
import requests
except I... | 179 | 6,381 |
Anthropic-Cybersecurity-Skills | skills/implementing-soar-playbook-with-palo-alto-xsoar/scripts/process.py | .py | #!/usr/bin/env python3
"""
XSOAR Playbook Builder and Validator
Generates XSOAR-compatible playbook YAML structures,
validates playbook logic, and tracks automation metrics.
"""
import json
import yaml
from datetime import datetime
from typing import Optional
class PlaybookTask:
"""Represents a single task in a... | 257 | 10,081 |
Anthropic-Cybersecurity-Skills | skills/implementing-soar-playbook-with-palo-alto-xsoar/scripts/agent.py | .py | #!/usr/bin/env python3
"""Cortex XSOAR playbook management agent.
Interfaces with the Cortex XSOAR (Demisto) API to manage and audit
security playbooks, automation scripts, incidents, and integrations.
Supports listing playbooks, checking incident statistics, and
verifying integration health.
"""
import argparse
impor... | 198 | 7,525 |
Anthropic-Cybersecurity-Skills | skills/implementing-network-access-control-with-cisco-ise/scripts/agent.py | .py | #!/usr/bin/env python3
"""Cisco ISE NAC Agent - audits ISE policies, endpoint posture, and 802.1X configuration."""
import json
import argparse
import logging
import subprocess
from collections import defaultdict
from datetime import datetime
logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s]... | 123 | 4,832 |
Anthropic-Cybersecurity-Skills | skills/detecting-privilege-escalation-attempts/scripts/process.py | .py | #!/usr/bin/env python3
"""Privilege Escalation Detection - Analyzes logs for T1134 indicators."""
import json, csv, argparse, datetime, re
from collections import defaultdict
from pathlib import Path
DETECTION_PATTERNS = [
r'potato',
r'PrintSpoofer',
r'JuicyPotato',
r'fodhelper',
r'eventvwr',
... | 84 | 3,658 |
Anthropic-Cybersecurity-Skills | skills/detecting-privilege-escalation-attempts/scripts/agent.py | .py | #!/usr/bin/env python3
"""Privilege escalation detection agent for Windows and Linux endpoints.
Detects token manipulation, UAC bypass, sudo abuse, kernel exploits, and
unquoted service paths by analyzing process creation and security logs.
"""
import argparse
import json
import re
from datetime import datetime
try:... | 112 | 4,759 |
Anthropic-Cybersecurity-Skills | skills/implementing-api-gateway-security-controls/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for auditing API gateway security controls (Kong, AWS API Gateway)."""
import json
import argparse
import os
from datetime import datetime
try:
import boto3
except ImportError:
boto3 = None
try:
import requests
except ImportError:
requests = None
def audit_aws_api_ga... | 162 | 6,527 |
Anthropic-Cybersecurity-Skills | skills/performing-sqlite-database-forensics/scripts/process.py | .py | #!/usr/bin/env python3
"""
SQLite Database Forensic Analyzer
Performs forensic analysis of SQLite databases including freelist analysis,
WAL parsing, deleted record recovery, and timestamp decoding.
"""
import sqlite3
import struct
import os
import sys
import json
from datetime import datetime, timedelta
from pathlib... | 193 | 7,234 |
Anthropic-Cybersecurity-Skills | skills/performing-sqlite-database-forensics/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for SQLite database forensics.
Parses SQLite file headers, analyzes freelist pages for deleted records,
examines WAL files, decodes browser/app timestamps, and extracts
evidence from common forensic databases.
"""
import struct
import sqlite3
import json
import sys
import os
import re
... | 205 | 7,901 |
Anthropic-Cybersecurity-Skills | skills/detecting-email-account-compromise/scripts/agent.py | .py | #!/usr/bin/env python3
"""Email Account Compromise Detection agent - analyzes inbox rules, sign-in logs, and OAuth grants to detect O365/Google Workspace account compromise"""
import argparse
import json
import math
from collections import Counter, defaultdict
from datetime import datetime
from pathlib import Path
SU... | 205 | 8,697 |
Anthropic-Cybersecurity-Skills | skills/implementing-ics-firewall-with-tofino/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for auditing and configuring Tofino ICS firewall rules."""
import json
import argparse
from datetime import datetime
from collections import Counter
OT_PROTOCOLS = {
"modbus": {"port": 502, "layer": "TCP", "dpi": True},
"enip": {"port": 44818, "layer": "TCP/UDP", "dpi": True},... | 214 | 8,206 |
Anthropic-Cybersecurity-Skills | skills/implementing-conduit-security-for-ot-remote-access/scripts/agent.py | .py | #!/usr/bin/env python3
"""OT remote access conduit security assessment agent for ICS/SCADA environments."""
import argparse
import json
import logging
import os
import socket
from datetime import datetime
from typing import Dict, List
logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(messa... | 137 | 5,298 |
Anthropic-Cybersecurity-Skills | skills/migrating-to-post-quantum-cryptography/scripts/agent.py | .py | #!/usr/bin/env python3
"""
pqc_agent.py — Post-quantum cryptography migration helper.
Three defensive functions for quantum-readiness work:
scan Inventory the public-key crypto of a remote TLS endpoint and a set
of local X.509 certificates, flagging quantum-vulnerable algorithms
(RSA/EC... | 193 | 7,941 |
Anthropic-Cybersecurity-Skills | skills/conducting-memory-forensics-with-volatility/scripts/agent.py | .py | #!/usr/bin/env python3
"""Memory Forensics Agent - Automates Volatility 3 analysis of memory dumps for incident response."""
import json
import logging
import argparse
import subprocess
from datetime import datetime
logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(message)s")
logger = log... | 174 | 6,788 |
Anthropic-Cybersecurity-Skills | skills/performing-osint-with-spiderfoot/scripts/agent.py | .py | #!/usr/bin/env python3
"""OSINT automation agent using SpiderFoot REST API for target profiling and reconnaissance."""
import os
import json
import time
import argparse
from datetime import datetime
import requests
def get_sf_session(base_url):
"""Create a requests session for SpiderFoot API."""
session = r... | 177 | 6,914 |
Anthropic-Cybersecurity-Skills | skills/abusing-dpapi-for-credential-access/scripts/agent.py | .py | #!/usr/bin/env python3
# For authorized penetration testing and educational environments only.
# Usage against targets without prior mutual written consent is illegal.
# It is the end user's responsibility to obey all applicable laws.
"""DPAPI triage orchestrator.
Locates DPAPI artifacts (master keys, Credential Manag... | 155 | 6,285 |
Anthropic-Cybersecurity-Skills | skills/performing-adversary-in-the-middle-phishing-detection/scripts/process.py | .py | #!/usr/bin/env python3
"""
AiTM Phishing Detection Engine
Analyzes Azure AD sign-in logs and session data to detect
Adversary-in-the-Middle phishing attacks including session
cookie replay and impossible travel patterns.
Usage:
python process.py detect --signin-log signins.json
python process.py check-session... | 290 | 11,016 |
Anthropic-Cybersecurity-Skills | skills/performing-adversary-in-the-middle-phishing-detection/scripts/agent.py | .py | #!/usr/bin/env python3
"""Adversary-in-the-Middle (AiTM) Phishing Detection agent - analyzes sign-in
logs and inbox rules to detect AiTM phishing campaigns that bypass MFA by
proxying authentication sessions."""
import argparse
import json
from collections import Counter, defaultdict
from datetime import datetime
from... | 171 | 7,073 |
Anthropic-Cybersecurity-Skills | skills/testing-api-authentication-weaknesses/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for testing API authentication weaknesses.
Tests JWT implementation flaws, unauthenticated endpoint access,
token lifecycle issues, password policy enforcement, and credential
brute-force resistance aligned with OWASP API2:2023.
"""
import json
import base64
import hmac
import hashlib
... | 221 | 8,457 |
Anthropic-Cybersecurity-Skills | skills/building-ioc-defanging-and-sharing-pipeline/scripts/agent.py | .py | #!/usr/bin/env python3
"""IOC Defanging and Sharing Pipeline Agent - Defangs, enriches, and shares IOCs in STIX format."""
import json
import logging
import argparse
import os
import re
from datetime import datetime
import requests
logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(message... | 173 | 7,028 |
Anthropic-Cybersecurity-Skills | skills/implementing-syslog-centralization-with-rsyslog/scripts/agent.py | .py | #!/usr/bin/env python3
"""Rsyslog Centralization Agent - Generates and deploys TLS-secured rsyslog configurations."""
import json
import logging
import argparse
import subprocess
from datetime import datetime
from jinja2 import Template
logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(me... | 247 | 9,018 |
Anthropic-Cybersecurity-Skills | skills/performing-service-account-audit/scripts/process.py | .py | #!/usr/bin/env python3
"""
Service Account Audit Engine
Discovers, classifies, and audits service accounts across enterprise
infrastructure. Identifies orphaned, over-privileged, and non-compliant
service accounts with remediation recommendations.
"""
import json
import datetime
from typing import Dict, List, Optiona... | 268 | 11,739 |
Anthropic-Cybersecurity-Skills | skills/performing-service-account-audit/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for auditing service accounts across AD, cloud, and databases.
Discovers service accounts via LDAP queries, AWS IAM, and Azure AD,
checks password age, privilege levels, and orphan status, then
generates a risk-classified compliance report.
"""
import json
import sys
import subprocess
... | 174 | 6,890 |
Anthropic-Cybersecurity-Skills | skills/abusing-shadow-credentials-for-privesc/scripts/agent.py | .py | #!/usr/bin/env python3
"""
shadowcred_takeover.py — Orchestrate a Shadow Credentials account takeover.
Wraps the real `certipy shadow auto` workflow (and optionally pyWhisker +
PKINITtools) to add a Key Credential to a target's msDS-KeyCredentialLink,
recover the NT hash via PKINIT, and clean up. Parses the tool outpu... | 146 | 5,418 |
Anthropic-Cybersecurity-Skills | skills/analyzing-malware-persistence-with-autoruns/scripts/agent.py | .py | #!/usr/bin/env python3
"""Autoruns Persistence Analysis Agent - Analyzes Windows autostart entries for malware persistence."""
import json
import csv
import re
import logging
import argparse
from datetime import datetime
from collections import Counter
logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(le... | 153 | 5,841 |
Anthropic-Cybersecurity-Skills | skills/securing-aws-lambda-execution-roles/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for auditing and securing AWS Lambda execution roles."""
import boto3
import json
import argparse
def list_lambda_roles(region="us-east-1"):
"""List all Lambda functions and their execution roles."""
lam = boto3.client("lambda", region_name=region)
iam = boto3.client("iam"... | 176 | 7,316 |
Anthropic-Cybersecurity-Skills | skills/exploiting-kerberoasting-with-impacket/scripts/process.py | .py | #!/usr/bin/env python3
"""
Kerberoasting Analysis and Detection Tool
Parses Kerberos TGS request logs (Event ID 4769) to detect potential
Kerberoasting activity and analyzes extracted hashes for weak passwords.
"""
import json
import os
import re
import csv
from datetime import datetime, timedelta
from collections im... | 322 | 12,299 |
Anthropic-Cybersecurity-Skills | skills/exploiting-kerberoasting-with-impacket/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for Kerberoasting attacks using Impacket (T1558.003) — authorized testing."""
import argparse
import json
import subprocess
from datetime import datetime, timezone
def run_getuserspns(domain, username, password, dc_ip, output_file=None):
"""Execute Impacket GetUserSPNs to extract ... | 141 | 5,318 |
Anthropic-Cybersecurity-Skills | skills/auditing-azure-active-directory-configuration/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for auditing Azure Active Directory (Entra ID) configuration."""
import os
import json
import argparse
from datetime import datetime, timedelta
from azure.identity import DefaultAzureCredential, ClientSecretCredential
import requests
def get_graph_token(credential):
"""Obtain a M... | 192 | 6,862 |
Anthropic-Cybersecurity-Skills | skills/performing-cloud-forensics-with-aws-cloudtrail/scripts/agent.py | .py | #!/usr/bin/env python3
"""AWS CloudTrail Forensics Agent - investigates API activity for incident response using boto3."""
import json
import argparse
import logging
from collections import defaultdict
from datetime import datetime, timedelta
logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s]... | 212 | 8,840 |
Anthropic-Cybersecurity-Skills | skills/performing-ransomware-response/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for performing ransomware response.
Automates ransomware identification, impact assessment, backup
verification, IOC extraction, and recovery tracking during
ransomware incident response.
"""
import json
import sys
import hashlib
from pathlib import Path
from datetime import datetime
... | 226 | 9,296 |
Anthropic-Cybersecurity-Skills | skills/auditing-aws-s3-bucket-permissions/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for auditing AWS S3 bucket permissions using boto3."""
import os
import json
import argparse
from datetime import datetime
import boto3
from botocore.exceptions import ClientError
def get_session(profile=None, region=None):
"""Create a boto3 session."""
kwargs = {}
if pro... | 191 | 6,686 |
Anthropic-Cybersecurity-Skills | skills/performing-aws-account-enumeration-with-scout-suite/scripts/process.py | .py | #!/usr/bin/env python3
"""
ScoutSuite AWS Security Assessment Automation Script
Automates ScoutSuite scanning, parses results, and generates
summary reports for AWS security posture assessment.
"""
import json
import subprocess
import sys
import os
from datetime import datetime
from pathlib import Path
from collectio... | 224 | 8,327 |
Anthropic-Cybersecurity-Skills | skills/performing-aws-account-enumeration-with-scout-suite/scripts/agent.py | .py | #!/usr/bin/env python3
"""ScoutSuite AWS account enumeration and security audit agent.
Wraps the ScoutSuite CLI to perform comprehensive AWS security audits,
parses the generated JSON results, and produces a structured findings
report covering IAM, S3, EC2, RDS, Lambda, and other AWS services.
"""
import argparse
impo... | 253 | 9,285 |
Anthropic-Cybersecurity-Skills | skills/performing-active-directory-forest-trust-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 AD forest trust enumeration and security assessment usi... | 232 | 9,990 |
Anthropic-Cybersecurity-Skills | skills/detecting-pass-the-ticket-attacks/scripts/agent.py | .py | #!/usr/bin/env python3
"""Detect Kerberos Pass-the-Ticket attacks via Windows Event ID 4768/4769/4771 analysis."""
import json
import argparse
import xml.etree.ElementTree as ET
from collections import defaultdict
from datetime import datetime
def parse_evtx_xml(xml_path):
"""Parse exported Windows Security even... | 204 | 8,265 |
Anthropic-Cybersecurity-Skills | skills/managing-third-party-vendor-risk/scripts/process.py | .py | #!/usr/bin/env python3
"""
Third-party vendor inherent-risk tiering and evidence-gap checker.
Scores a vendor's inherent risk from a profile, assigns a tier
(Critical/High/Moderate/Low), sets the assessment depth and reassessment
cadence for that tier, and flags evidence that is missing or stale for the
assigned tier.... | 212 | 8,656 |
Anthropic-Cybersecurity-Skills | skills/testing-jwt-token-security/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for testing JWT token security during authorized assessments."""
import jwt
import json
import hmac
import hashlib
import base64
import os
import argparse
import requests
import urllib3
from datetime import datetime, timedelta, timezone
from urllib.parse import urljoin
urllib3.disable_... | 238 | 10,166 |
Anthropic-Cybersecurity-Skills | skills/detecting-model-extraction-attacks/scripts/agent.py | .py | #!/usr/bin/env python3
# For authorized AI red-teaming and defense of models you own or are permitted to test.
# Cloning a third-party model or inferring its training data without consent may
# violate terms of service, copyright, and privacy law.
"""Model-extraction detection helper.
Two modes:
detect - Parse an ... | 141 | 5,873 |
Anthropic-Cybersecurity-Skills | skills/hunting-bootkits-in-efi-system-partition/scripts/agent.py | .py | #!/usr/bin/env python3
"""
esp_bootkit_hunter.py — Baseline and hunt malicious EFI binaries on the EFI System Partition.
Mounts (or reads an already-mounted) ESP, inventories EFI/PE boot binaries, computes
SHA-256 hashes, verifies Secure Boot signatures with sbverify, flags files outside the
canonical EFI/ directory, ... | 175 | 6,112 |
Anthropic-Cybersecurity-Skills | skills/performing-threat-landscape-assessment-for-sector/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for sector-specific threat landscape assessment.
Uses the attackcti library to query MITRE ATT&CK for threat groups
targeting a sector, analyzes common techniques, maps attack vectors,
and generates a strategic threat landscape report.
"""
import json
import sys
from datetime import da... | 169 | 6,357 |
Anthropic-Cybersecurity-Skills | skills/performing-web-application-penetration-test/scripts/agent.py | .py | #!/usr/bin/env python3
"""Web application penetration test agent using requests and subprocess."""
import subprocess
import sys
import json
import os
from urllib.parse import urlparse
try:
import requests
from requests.exceptions import RequestException
except ImportError:
print("Install: pip install requ... | 245 | 8,876 |
Anthropic-Cybersecurity-Skills | skills/implementing-semgrep-for-custom-sast-rules/scripts/agent.py | .py | #!/usr/bin/env python3
"""Semgrep SAST scanning agent.
Wraps the Semgrep CLI to perform static application security testing
using built-in rulesets and custom rules. Parses JSON output to produce
structured vulnerability findings with severity, CWE, and OWASP mappings.
"""
import argparse
import json
import os
import ... | 219 | 7,808 |
Anthropic-Cybersecurity-Skills | skills/emulating-cloud-attacks-with-stratus-red-team/scripts/agent.py | .py | #!/usr/bin/env python3
"""
Stratus Red Team detection-validation helper.
Drives the `stratus` CLI to run a controlled warmup -> detonate -> (optional revert)
-> cleanup lifecycle across one or more techniques, optionally filtered by platform
and MITRE ATT&CK tactic. Designed for purple-team detection-coverage runs.
A... | 145 | 5,196 |
Anthropic-Cybersecurity-Skills | skills/testing-for-broken-access-control/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for testing broken access control vulnerabilities during authorized assessments."""
import requests
import json
import argparse
import urllib3
from datetime import datetime
from urllib.parse import urljoin
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
def test_v... | 196 | 8,889 |
Anthropic-Cybersecurity-Skills | skills/performing-privacy-impact-assessment/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for performing automated Privacy Impact Assessments (PIA/DPIA).
Implements the NIST Privacy Framework PRAM methodology and ICO DPIA guidance
for systematic identification and mitigation of privacy risks. Supports
GDPR Article 35 and CCPA/CPRA compliance checks with risk scoring matrices... | 1,414 | 64,215 |
Anthropic-Cybersecurity-Skills | skills/detecting-deepfake-audio-in-vishing-attacks/scripts/agent.py | .py | #!/usr/bin/env python3
"""Deepfake audio detection agent using spectral analysis, MFCC features, and ML classifiers.
Analyzes audio files to determine whether they contain AI-generated (deepfake) speech,
commonly used in vishing (voice phishing) attacks. Extracts spectral features with librosa,
builds feature vectors,... | 611 | 24,658 |
Anthropic-Cybersecurity-Skills | skills/performing-subdomain-enumeration-with-subfinder/scripts/process.py | .py | #!/usr/bin/env python3
"""
Subdomain Enumeration Pipeline with Subfinder
Automates subdomain discovery, validation, and reporting.
"""
import subprocess
import json
import csv
import sys
import os
from datetime import datetime
from pathlib import Path
def run_subfinder(domain: str, output_dir: str, use_all_sources: ... | 165 | 5,827 |
Anthropic-Cybersecurity-Skills | skills/performing-subdomain-enumeration-with-subfinder/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for subdomain enumeration using subfinder and httpx.
Runs ProjectDiscovery subfinder for passive subdomain discovery,
validates live hosts with httpx, resolves DNS, and generates
an attack surface report.
"""
import subprocess
import json
import sys
from datetime import datetime
from p... | 169 | 6,602 |
Anthropic-Cybersecurity-Skills | skills/testing-for-xss-vulnerabilities-with-burpsuite/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for XSS testing workflows complementing Burp Suite during authorized assessments."""
import requests
import re
import json
import argparse
import urllib3
from datetime import datetime
from urllib.parse import urljoin, quote, urlparse
urllib3.disable_warnings(urllib3.exceptions.Insecure... | 199 | 8,245 |
Anthropic-Cybersecurity-Skills | skills/detecting-container-escape-attempts/scripts/process.py | .py | #!/usr/bin/env python3
"""
Container Escape Detection Scanner
Analyzes running containers for escape risk factors including
privileged mode, dangerous capabilities, sensitive mounts,
and Docker socket exposure.
"""
import subprocess
import json
import sys
from dataclasses import dataclass, field
DANGEROUS_CAPABILIT... | 378 | 12,543 |
Anthropic-Cybersecurity-Skills | skills/detecting-container-escape-attempts/scripts/agent.py | .py | #!/usr/bin/env python3
"""Container escape detection agent using Falco output parsing and audit log analysis.
Monitors for container escape indicators by parsing Falco JSON alerts,
auditd logs, and Docker inspect data for privileged/vulnerable containers.
"""
import argparse
import json
import re
import subprocess
im... | 169 | 6,808 |
Anthropic-Cybersecurity-Skills | skills/testing-for-json-web-token-vulnerabilities/scripts/agent.py | .py | #!/usr/bin/env python3
# For authorized penetration testing and educational environments only.
# Usage against targets without prior mutual consent is illegal.
# It is the end user's responsibility to obey all applicable local, state and federal laws.
"""Agent for testing JSON Web Token vulnerabilities.
Tests JWT impl... | 217 | 8,063 |
Anthropic-Cybersecurity-Skills | skills/conducting-man-in-the-middle-attack-simulation/scripts/agent.py | .py | #!/usr/bin/env python3
# For authorized penetration testing and lab environments only
"""MITM Attack Simulation Agent - Tests network defenses against ARP spoofing and traffic interception."""
import json
import logging
import argparse
import time
from datetime import datetime
from scapy.all import ARP, Ether, srp, s... | 181 | 6,574 |
Anthropic-Cybersecurity-Skills | skills/implementing-rapid7-insightvm-for-scanning/scripts/process.py | .py | #!/usr/bin/env python3
"""
Rapid7 InsightVM Scan Automation and Reporting Tool
Automates scan operations, asset queries, and vulnerability reporting
via the InsightVM API v3.
Requirements:
pip install requests pandas tabulate
Usage:
python process.py sites # List all sites
python... | 328 | 11,991 |
Anthropic-Cybersecurity-Skills | skills/implementing-rapid7-insightvm-for-scanning/scripts/agent.py | .py | #!/usr/bin/env python3
"""Rapid7 InsightVM vulnerability scanning agent.
Interfaces with the InsightVM (Nexpose) REST API to manage scan
configurations, launch scans, retrieve vulnerability results, and
generate remediation reports. Supports site management, asset
discovery, and vulnerability prioritization.
"""
impor... | 246 | 9,367 |
Anthropic-Cybersecurity-Skills | skills/implementing-usb-device-control-policy/scripts/process.py | .py | #!/usr/bin/env python3
"""USB Device Control Audit - Analyzes USB device activity from endpoint logs."""
import json
import csv
import sys
import os
from collections import Counter, defaultdict
from datetime import datetime
def parse_usb_events(csv_path: str) -> list:
"""Parse USB device events from exported Win... | 89 | 3,523 |
Anthropic-Cybersecurity-Skills | skills/implementing-usb-device-control-policy/scripts/agent.py | .py | #!/usr/bin/env python3
"""USB device control policy audit agent.
Audits USB device control policies on Linux and Windows systems by
checking udev rules, USBGuard configuration, Windows Group Policy
settings, and connected device history. Reports unauthorized or
unwhitelisted USB devices.
"""
import argparse
import jso... | 234 | 8,642 |
Anthropic-Cybersecurity-Skills | skills/monitoring-darkweb-sources/scripts/agent.py | .py | #!/usr/bin/env python3
"""
Dark Web Source Monitoring Agent
Monitors dark web forums, paste sites, and ransomware leak sites for
organizational asset mentions using commercial APIs and OSINT tools.
"""
import json
import os
import sys
from datetime import datetime, timezone
import requests
HAVE_I_BEEN_PWNED_API = "... | 196 | 6,785 |
Anthropic-Cybersecurity-Skills | skills/detecting-misconfigured-azure-storage/scripts/agent.py | .py | #!/usr/bin/env python3
"""Azure Storage misconfiguration detection agent using Azure CLI."""
import json
import subprocess
import sys
from datetime import datetime
def az_cli(args):
"""Execute Azure CLI command and return parsed JSON."""
cmd = ["az"] + args + ["--output", "json"]
try:
result = su... | 175 | 6,899 |
Anthropic-Cybersecurity-Skills | skills/implementing-taxii-server-with-opentaxii/scripts/agent.py | .py | #!/usr/bin/env python3
"""OpenTAXII server configuration and health audit agent.
Audits an OpenTAXII server instance by checking service discovery,
collection availability, content block statistics, and API health.
Supports both TAXII 1.1 and 2.0/2.1 endpoints.
"""
import argparse
import json
import os
import sys
from... | 256 | 8,729 |
Anthropic-Cybersecurity-Skills | skills/deploying-cloudflare-access-for-zero-trust/scripts/process.py | .py | #!/usr/bin/env python3
"""
Cloudflare Access Zero Trust - Deployment Audit Tool
Queries Cloudflare API to audit Access applications, policies, tunnel
health, and device enrollment for zero trust compliance validation.
Requirements:
pip install requests
"""
import json
import sys
from datetime import datetime, ti... | 247 | 8,653 |
Anthropic-Cybersecurity-Skills | skills/deploying-cloudflare-access-for-zero-trust/scripts/agent.py | .py | #!/usr/bin/env python3
"""Cloudflare Access zero trust audit agent using Cloudflare 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 CloudflareAccessClient:
"""Cloudflare Acc... | 112 | 3,754 |
Anthropic-Cybersecurity-Skills | skills/implementing-web-application-logging-with-modsecurity/scripts/agent.py | .py | #!/usr/bin/env python3
"""ModSecurity WAF audit log analysis and rule tuning agent."""
import json
import argparse
import re
from datetime import datetime
from collections import defaultdict
SECTION_PATTERN = re.compile(r'^--([a-f0-9]+)-([A-Z])--$')
CRS_CATEGORIES = {
"911": "Method Enforcement",
"913": "Sc... | 242 | 8,704 |
Anthropic-Cybersecurity-Skills | skills/performing-ssl-tls-inspection-configuration/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for SSL/TLS inspection configuration validation.
Verifies TLS inspection is working by comparing certificate issuers,
validates CA deployment on endpoints, checks TLS version enforcement,
audits decryption exemption lists, and monitors inspection health.
"""
import ssl
import socket
im... | 159 | 6,420 |
Anthropic-Cybersecurity-Skills | skills/analyzing-slack-space-and-file-system-artifacts/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for analyzing NTFS slack space and file system artifacts."""
import os
import json
import struct
import argparse
import subprocess
from datetime import datetime, timedelta
from pathlib import Path
def parse_mft_with_analyzeMFT(mft_path, output_csv):
"""Parse MFT using analyzeMFT a... | 172 | 6,680 |
Anthropic-Cybersecurity-Skills | skills/performing-binary-exploitation-analysis/scripts/agent.py | .py | #!/usr/bin/env python3
"""Binary exploitation analysis agent.
# For authorized security testing and CTF challenges only
Analyzes ELF binaries for security mitigations, discovers ROP gadgets,
and assists exploit development using pwntools and checksec.
"""
import argparse
import json
import subprocess
import sys
impo... | 201 | 7,875 |
Anthropic-Cybersecurity-Skills | skills/investigating-phishing-email-incident/scripts/agent.py | .py | #!/usr/bin/env python3
"""
Phishing Email Investigation Agent
Analyzes reported phishing emails by parsing headers, checking URL/attachment
reputation via VirusTotal and URLScan.io, and identifying impacted recipients.
"""
import email
import email.policy
import hashlib
import json
import re
import sys
import time
fro... | 218 | 7,723 |
Anthropic-Cybersecurity-Skills | skills/testing-android-intents-for-vulnerabilities/scripts/process.py | .py | #!/usr/bin/env python3
"""
Android Intent Vulnerability Scanner
Parses AndroidManifest.xml to identify exported components and generate
Drozer/ADB test commands for IPC security assessment.
Usage:
python process.py --manifest AndroidManifest.xml [--package com.target.app] [--output report.json]
"""
import argpar... | 198 | 7,619 |
Anthropic-Cybersecurity-Skills | skills/testing-android-intents-for-vulnerabilities/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for testing Android intents for vulnerabilities.
Uses ADB and Drozer to enumerate exported components, test
intent injection, content provider SQL injection, broadcast
receiver abuse, and pending intent hijacking vulnerabilities.
"""
import json
import subprocess
import re
import sys
f... | 179 | 6,810 |
Anthropic-Cybersecurity-Skills | skills/analyzing-mft-for-deleted-file-recovery/scripts/process.py | .py | #!/usr/bin/env python3
"""
MFT Deleted File Recovery Analyzer
Parses MFT CSV output from MFTECmd to identify deleted files,
detect timestomping, and generate recovery reports.
"""
import csv
import json
import sys
import os
from datetime import datetime
from collections import defaultdict
class MFTDeletedFileAnalyz... | 119 | 4,501 |
Anthropic-Cybersecurity-Skills | skills/analyzing-mft-for-deleted-file-recovery/scripts/agent.py | .py | #!/usr/bin/env python3
"""MFT Deleted File Recovery Agent - Parses NTFS Master File Table for deleted file artifacts."""
import json
import struct
import os
import logging
import argparse
from datetime import datetime, timedelta
logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(message)s")... | 160 | 6,088 |
Anthropic-Cybersecurity-Skills | skills/securing-remote-access-to-ot-environment/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for securing remote access to OT environments.
Manages remote access sessions with MFA verification, session
recording, role-based access policies, vendor co-attendance
requirements, and CIP-005 compliance auditing.
"""
import json
import hashlib
from pathlib import Path
from datetime ... | 194 | 7,218 |
Anthropic-Cybersecurity-Skills | skills/detecting-exfiltration-over-dns-with-zeek/scripts/agent.py | .py | #!/usr/bin/env python3
"""Detect DNS exfiltration from Zeek dns.log by analyzing entropy and query patterns."""
import argparse
import json
import math
from collections import defaultdict
SAFE_DOMAINS = {
"in-addr.arpa", "ip6.arpa", "local", "localhost",
"google.com", "googleapis.com", "gstatic.com",
"mi... | 213 | 7,515 |
Anthropic-Cybersecurity-Skills | skills/securing-github-actions-workflows/scripts/process.py | .py | #!/usr/bin/env python3
"""
GitHub Actions Workflow Security Audit Script
Analyzes workflow files for security issues including unpinned actions,
excessive permissions, script injection risks, and insecure patterns.
Usage:
python process.py --workflows-dir .github/workflows/ --output audit-report.json
"""
import ... | 211 | 7,533 |
Anthropic-Cybersecurity-Skills | skills/securing-github-actions-workflows/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for securing GitHub Actions workflows.
Audits GitHub Actions workflow files for security issues including
unpinned actions, excessive permissions, script injection risks,
dangerous triggers, and missing secret protections.
"""
import json
import re
import sys
from pathlib import Path
f... | 219 | 8,248 |
Anthropic-Cybersecurity-Skills | skills/detecting-aws-cloudtrail-anomalies/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for detecting anomalies in AWS CloudTrail logs.
Queries CloudTrail events via boto3, builds behavioral baselines,
and detects unusual API patterns indicating credential compromise,
privilege escalation, or unauthorized access.
"""
import argparse
import json
import os
from collections ... | 184 | 7,468 |
Anthropic-Cybersecurity-Skills | skills/implementing-jwt-signing-and-verification/scripts/process.py | .py | #!/usr/bin/env python3
"""
JWT Signing and Verification Tool
Implements secure JWT creation and verification with multiple algorithms,
including defense against common JWT attacks.
Requirements:
pip install PyJWT cryptography
Usage:
python process.py create --alg RS256 --subject user123 --issuer myapp --expi... | 284 | 10,936 |
Anthropic-Cybersecurity-Skills | skills/implementing-jwt-signing-and-verification/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for JWT signing, verification, and security auditing."""
import json
import argparse
import base64
import hmac
import hashlib
import time
from datetime import datetime
try:
from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.hazmat.primitives import seri... | 187 | 7,492 |
Anthropic-Cybersecurity-Skills | skills/hunting-for-process-injection-techniques/scripts/agent.py | .py | #!/usr/bin/env python3
"""Detect process injection techniques (T1055) via Sysmon Event IDs 8 and 10."""
import json
import argparse
from datetime import datetime
from collections import defaultdict
LEGITIMATE_INJECTION_PAIRS = {
("csrss.exe", "svchost.exe"), ("lsass.exe", "svchost.exe"),
("services.exe", "svc... | 215 | 9,145 |
Anthropic-Cybersecurity-Skills | skills/implementing-supply-chain-security-with-in-toto/scripts/process.py | .py | #!/usr/bin/env python3
"""
in-toto Supply Chain Verification Tool
Verifies container image supply chain integrity by checking
in-toto link metadata against the defined layout policy.
"""
import json
import subprocess
import sys
import argparse
import hashlib
from pathlib import Path
from datetime import datetime
de... | 255 | 10,034 |
Anthropic-Cybersecurity-Skills | skills/implementing-supply-chain-security-with-in-toto/scripts/agent.py | .py | #!/usr/bin/env python3
"""in-toto supply chain security agent.
Implements software supply chain verification using the in-toto framework.
Creates and verifies supply chain layouts, generates link metadata for
build steps, and validates that all steps were performed by authorized
functionaries with correct materials an... | 254 | 9,843 |
Anthropic-Cybersecurity-Skills | skills/implementing-network-traffic-baselining/scripts/agent.py | .py | #!/usr/bin/env python3
"""Network traffic baselining agent using pandas for NetFlow/IPFIX statistical analysis."""
import json
import argparse
from datetime import datetime
import pandas as pd
def load_netflow_csv(filepath):
"""Load NetFlow/IPFIX records from CSV export."""
df = pd.read_csv(filepath, parse_... | 167 | 6,805 |
Anthropic-Cybersecurity-Skills | skills/building-c2-infrastructure-with-sliver-framework/scripts/process.py | .py | #!/usr/bin/env python3
"""
Sliver C2 Infrastructure Health Check and Management Script
This script provides automated health monitoring for Sliver C2 infrastructure
components including team server, redirectors, and listener status.
Intended for authorized red team engagements only.
"""
import subprocess
import json
... | 181 | 6,319 |
Anthropic-Cybersecurity-Skills | skills/building-c2-infrastructure-with-sliver-framework/scripts/agent.py | .py | #!/usr/bin/env python3
# For authorized penetration testing and lab environments only
"""Sliver C2 Framework Deployment Agent - Automates Sliver C2 setup for authorized red team engagements."""
import json
import subprocess
import logging
import argparse
from datetime import datetime
logging.basicConfig(level=logging... | 103 | 4,694 |
Anthropic-Cybersecurity-Skills | skills/extracting-memory-artifacts-with-rekall/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for extracting memory forensic artifacts using Rekall."""
import json
import argparse
from datetime import datetime
from rekall import session
from rekall import plugins
def create_session(image_path, profile_path=None):
"""Create a Rekall session for a memory image."""
kwarg... | 170 | 5,830 |
Anthropic-Cybersecurity-Skills | skills/moving-laterally-with-netexec/scripts/agent.py | .py | #!/usr/bin/env python3
# For authorized penetration testing and educational environments only.
# Usage against targets without prior mutual written consent is illegal.
# It is the end user's responsibility to obey all applicable laws.
"""NetExec lateral-movement helper.
Wraps the `nxc` CLI to validate credentials acro... | 131 | 4,993 |
Anthropic-Cybersecurity-Skills | skills/deploying-cloud-deception-with-decoy-resources/scripts/process.py | .py | #!/usr/bin/env python3
"""
Cloud deception deployment validator.
Reads a decoy-inventory JSON, checks each decoy for the controls that make a
cloud decoy trustworthy (detection wiring, deny-all/least-privilege, validation,
internal tagging), renders a Cloud Deception Deployment Record, and exits non-zero
if any decoy ... | 131 | 5,099 |
Anthropic-Cybersecurity-Skills | skills/executing-red-team-exercise/scripts/agent.py | .py | #!/usr/bin/env python3
# For authorized testing in lab/CTF environments only
"""Red team exercise planning and ATT&CK technique tracking agent."""
import argparse
import json
import logging
from datetime import datetime
from dataclasses import dataclass, field, asdict
from typing import List
try:
import requests
... | 172 | 6,495 |
Anthropic-Cybersecurity-Skills | skills/hunting-for-beaconing-with-frequency-analysis/scripts/process.py | .py | #!/usr/bin/env python3
"""
Beaconing Frequency Analysis Script
Detects C2 beaconing patterns using statistical interval analysis,
jitter detection, and data size consistency scoring.
"""
import json
import csv
import argparse
import datetime
import math
from collections import defaultdict
from pathlib import Path
KN... | 249 | 9,549 |
Anthropic-Cybersecurity-Skills | skills/hunting-for-beaconing-with-frequency-analysis/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for detecting C2 beaconing through network traffic frequency analysis."""
import argparse
import json
import math
from collections import defaultdict
from datetime import datetime, timezone
def parse_zeek_conn_log(log_path):
"""Parse Zeek conn.log and extract connection timestamps... | 141 | 5,164 |
Anthropic-Cybersecurity-Skills | skills/performing-malware-triage-with-yara/scripts/agent.py | .py | #!/usr/bin/env python3
"""Agent for performing malware triage with YARA.
Compiles and applies YARA rules to classify malware samples,
perform batch scanning, and generate triage reports.
"""
import yara
import sys
import json
import hashlib
from pathlib import Path
from collections import defaultdict
from datetime im... | 183 | 6,433 |
Anthropic-Cybersecurity-Skills | skills/detecting-lateral-movement-with-splunk/scripts/process.py | .py | #!/usr/bin/env python3
"""
Lateral Movement Detection Script
Analyzes Windows authentication logs to detect lateral movement patterns
including RDP, SMB, WinRM, PsExec, and WMI-based movement.
"""
import json
import csv
import argparse
import datetime
import re
from collections import defaultdict
from pathlib import P... | 336 | 12,777 |
Anthropic-Cybersecurity-Skills | skills/detecting-lateral-movement-with-splunk/scripts/agent.py | .py | #!/usr/bin/env python3
"""Lateral movement detection agent using Splunk SPL query generation.
Generates and analyzes SPL queries for detecting lateral movement techniques
including pass-the-hash, RDP pivoting, WMI/PSExec execution, and SMB abuse.
"""
import argparse
import json
from datetime import datetime
LATERAL_... | 143 | 5,029 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.