Skip to content

SSZcreate/Pentab_server / .agents/skills/cybersecurity

cybersecurity

Flagged

FileKindSize
SKILL.mdskill md2.4 KB
skills/implementing-pam-for-database-access/LICENSEother11.0 KB
skills/implementing-pam-for-database-access/SKILL.mdmarkdown3.1 KB
skills/implementing-pam-for-database-access/references/api-reference.mdmarkdown2.8 KB
skills/implementing-pam-for-database-access/scripts/agent.pyscript3.9 KB
skills/implementing-passwordless-auth-with-microsoft-entra/LICENSEother11.0 KB
skills/implementing-passwordless-auth-with-microsoft-entra/SKILL.mdmarkdown21.1 KB
skills/implementing-passwordless-auth-with-microsoft-entra/references/api-reference.mdmarkdown2.4 KB
skills/implementing-passwordless-auth-with-microsoft-entra/scripts/agent.pyscript8.4 KB
skills/implementing-passwordless-authentication-with-fido2/LICENSEother11.0 KB
skills/implementing-passwordless-authentication-with-fido2/SKILL.mdmarkdown2.8 KB
skills/implementing-passwordless-authentication-with-fido2/references/api-reference.mdmarkdown3.0 KB
skills/implementing-passwordless-authentication-with-fido2/references/standards.mdmarkdown888 B
skills/implementing-passwordless-authentication-with-fido2/references/workflows.mdmarkdown1.5 KB
skills/implementing-passwordless-authentication-with-fido2/scripts/agent.pyscript3.6 KB
skills/implementing-patch-management-for-ot-systems/LICENSEother11.0 KB
skills/implementing-patch-management-for-ot-systems/SKILL.mdmarkdown12.4 KB
skills/implementing-patch-management-for-ot-systems/references/api-reference.mdmarkdown2.9 KB
skills/implementing-patch-management-for-ot-systems/scripts/agent.pyscript3.5 KB
skills/implementing-patch-management-workflow/LICENSEother11.0 KB
skills/implementing-patch-management-workflow/SKILL.mdmarkdown10.5 KB
skills/implementing-patch-management-workflow/assets/template.mdmarkdown1.1 KB
skills/implementing-patch-management-workflow/references/api-reference.mdmarkdown4.5 KB
skills/implementing-patch-management-workflow/references/standards.mdmarkdown1.5 KB
skills/implementing-patch-management-workflow/references/workflows.mdmarkdown2.4 KB
skills/implementing-patch-management-workflow/scripts/agent.pyscript9.6 KB
skills/implementing-patch-management-workflow/scripts/process.pyscript13.7 KB
skills/implementing-pci-dss-compliance-controls/LICENSEother11.0 KB
skills/implementing-pci-dss-compliance-controls/SKILL.mdmarkdown6.4 KB
skills/implementing-pci-dss-compliance-controls/assets/template.mdmarkdown4.2 KB
skills/implementing-pci-dss-compliance-controls/references/api-reference.mdmarkdown6.3 KB
skills/implementing-pci-dss-compliance-controls/references/standards.mdmarkdown1.1 KB
skills/implementing-pci-dss-compliance-controls/references/workflows.mdmarkdown1.6 KB
skills/implementing-pci-dss-compliance-controls/scripts/agent.pyscript12.0 KB
skills/implementing-pod-security-admission-controller/LICENSEother11.0 KB
skills/implementing-pod-security-admission-controller/SKILL.mdmarkdown9.6 KB
skills/implementing-pod-security-admission-controller/assets/template.mdmarkdown1.3 KB
skills/implementing-pod-security-admission-controller/references/api-reference.mdmarkdown5.1 KB
skills/implementing-pod-security-admission-controller/references/standards.mdmarkdown1.1 KB
skills/implementing-pod-security-admission-controller/references/workflows.mdmarkdown1.0 KB
skills/implementing-pod-security-admission-controller/scripts/agent.pyscript11.4 KB
skills/implementing-pod-security-admission-controller/scripts/process.pyscript5.1 KB
skills/implementing-policy-as-code-with-open-policy-agent/LICENSEother11.0 KB
skills/implementing-policy-as-code-with-open-policy-agent/SKILL.mdmarkdown10.1 KB
skills/implementing-policy-as-code-with-open-policy-agent/assets/template.mdmarkdown1.8 KB
skills/implementing-policy-as-code-with-open-policy-agent/references/api-reference.mdmarkdown4.0 KB
skills/implementing-policy-as-code-with-open-policy-agent/references/standards.mdmarkdown1.1 KB
skills/implementing-policy-as-code-with-open-policy-agent/references/workflows.mdmarkdown1.9 KB
skills/implementing-policy-as-code-with-open-policy-agent/scripts/agent.pyscript9.3 KB
skills/implementing-policy-as-code-with-open-policy-agent/scripts/process.pyscript5.8 KB
skills/implementing-privileged-access-management-with-cyberark/LICENSEother11.0 KB
skills/implementing-privileged-access-management-with-cyberark/SKILL.mdmarkdown7.2 KB
skills/implementing-privileged-access-management-with-cyberark/assets/template.mdmarkdown2.5 KB
skills/implementing-privileged-access-management-with-cyberark/references/api-reference.mdmarkdown4.5 KB
skills/implementing-privileged-access-management-with-cyberark/references/standards.mdmarkdown1.5 KB
skills/implementing-privileged-access-management-with-cyberark/references/workflows.mdmarkdown3.0 KB
skills/implementing-privileged-access-management-with-cyberark/scripts/agent.pyscript9.6 KB
skills/implementing-privileged-access-management-with-cyberark/scripts/process.pyscript16.5 KB
skills/implementing-privileged-access-workstation/LICENSEother11.0 KB
skills/implementing-privileged-access-workstation/SKILL.mdmarkdown2.5 KB
skills/implementing-privileged-access-workstation/references/api-reference.mdmarkdown2.0 KB
skills/implementing-privileged-access-workstation/scripts/agent.pyscript7.4 KB
skills/implementing-privileged-session-monitoring/LICENSEother11.0 KB
skills/implementing-privileged-session-monitoring/SKILL.mdmarkdown11.6 KB
skills/implementing-privileged-session-monitoring/references/api-reference.mdmarkdown2.0 KB
skills/implementing-privileged-session-monitoring/scripts/agent.pyscript8.0 KB
skills/implementing-proofpoint-email-security-gateway/LICENSEother11.0 KB
skills/implementing-proofpoint-email-security-gateway/SKILL.mdmarkdown6.9 KB
skills/implementing-proofpoint-email-security-gateway/assets/template.mdmarkdown1.7 KB
skills/implementing-proofpoint-email-security-gateway/references/api-reference.mdmarkdown5.1 KB
skills/implementing-proofpoint-email-security-gateway/references/standards.mdmarkdown1.7 KB
skills/implementing-proofpoint-email-security-gateway/references/workflows.mdmarkdown2.7 KB
skills/implementing-proofpoint-email-security-gateway/scripts/agent.pyscript8.2 KB
skills/implementing-proofpoint-email-security-gateway/scripts/process.pyscript11.1 KB
skills/implementing-purdue-model-network-segmentation/LICENSEother11.0 KB
skills/implementing-purdue-model-network-segmentation/SKILL.mdmarkdown17.1 KB
skills/implementing-purdue-model-network-segmentation/references/api-reference.mdmarkdown5.5 KB
skills/implementing-purdue-model-network-segmentation/scripts/agent.pyscript7.5 KB
skills/implementing-ransomware-backup-strategy/LICENSEother11.0 KB
skills/implementing-ransomware-backup-strategy/SKILL.mdmarkdown12.2 KB
skills/implementing-ransomware-backup-strategy/assets/template.mdmarkdown3.7 KB
skills/implementing-ransomware-backup-strategy/references/api-reference.mdmarkdown6.5 KB
skills/implementing-ransomware-backup-strategy/references/standards.mdmarkdown2.5 KB
skills/implementing-ransomware-backup-strategy/references/workflows.mdmarkdown3.7 KB
skills/implementing-ransomware-backup-strategy/scripts/agent.pyscript11.8 KB
skills/implementing-ransomware-backup-strategy/scripts/process.pyscript22.3 KB
skills/implementing-ransomware-kill-switch-detection/LICENSEother11.0 KB
skills/implementing-ransomware-kill-switch-detection/SKILL.mdmarkdown9.5 KB
skills/implementing-ransomware-kill-switch-detection/references/api-reference.mdmarkdown3.7 KB
skills/implementing-ransomware-kill-switch-detection/scripts/agent.pyscript12.0 KB
skills/implementing-rapid7-insightvm-for-scanning/LICENSEother11.0 KB
skills/implementing-rapid7-insightvm-for-scanning/SKILL.mdmarkdown12.0 KB
skills/implementing-rapid7-insightvm-for-scanning/assets/template.mdmarkdown1.4 KB
skills/implementing-rapid7-insightvm-for-scanning/references/api-reference.mdmarkdown4.6 KB
skills/implementing-rapid7-insightvm-for-scanning/references/standards.mdmarkdown1.5 KB
skills/implementing-rapid7-insightvm-for-scanning/references/workflows.mdmarkdown5.7 KB
skills/implementing-rapid7-insightvm-for-scanning/scripts/agent.pyscript9.1 KB
skills/implementing-rapid7-insightvm-for-scanning/scripts/process.pyscript11.7 KB
skills/implementing-rbac-hardening-for-kubernetes/LICENSEother11.0 KB
skills/implementing-rbac-hardening-for-kubernetes/SKILL.mdmarkdown7.8 KB
skills/implementing-rbac-hardening-for-kubernetes/assets/template.mdmarkdown741 B
skills/implementing-rbac-hardening-for-kubernetes/references/api-reference.mdmarkdown6.1 KB
skills/implementing-rbac-hardening-for-kubernetes/references/standards.mdmarkdown766 B
skills/implementing-rbac-hardening-for-kubernetes/references/workflows.mdmarkdown708 B
skills/implementing-rbac-hardening-for-kubernetes/scripts/agent.pyscript9.7 KB
skills/implementing-rbac-hardening-for-kubernetes/scripts/process.pyscript6.9 KB
skills/implementing-rsa-key-pair-management/LICENSEother11.0 KB
skills/implementing-rsa-key-pair-management/SKILL.mdmarkdown3.6 KB
skills/implementing-rsa-key-pair-management/assets/template.mdmarkdown1.6 KB
skills/implementing-rsa-key-pair-management/references/api-reference.mdmarkdown5.7 KB
skills/implementing-rsa-key-pair-management/references/standards.mdmarkdown1.8 KB
skills/implementing-rsa-key-pair-management/references/workflows.mdmarkdown1.5 KB
skills/implementing-rsa-key-pair-management/scripts/agent.pyscript9.3 KB
skills/implementing-rsa-key-pair-management/scripts/process.pyscript11.5 KB
skills/implementing-runtime-application-self-protection/LICENSEother11.0 KB
skills/implementing-runtime-application-self-protection/SKILL.mdmarkdown2.9 KB
skills/implementing-runtime-application-self-protection/references/api-reference.mdmarkdown2.6 KB
skills/implementing-runtime-application-self-protection/scripts/agent.pyscript6.7 KB
skills/implementing-runtime-security-with-tetragon/LICENSEother11.0 KB
skills/implementing-runtime-security-with-tetragon/SKILL.mdmarkdown8.3 KB
skills/implementing-runtime-security-with-tetragon/assets/template.mdmarkdown2.5 KB
skills/implementing-runtime-security-with-tetragon/references/api-reference.mdmarkdown957 B
skills/implementing-runtime-security-with-tetragon/references/standards.mdmarkdown2.0 KB
skills/implementing-runtime-security-with-tetragon/references/workflows.mdmarkdown2.7 KB
skills/implementing-runtime-security-with-tetragon/scripts/agent.pyscript4.1 KB
skills/implementing-runtime-security-with-tetragon/scripts/process.pyscript13.4 KB
skills/implementing-saml-sso-with-okta/LICENSEother11.0 KB
skills/implementing-saml-sso-with-okta/SKILL.mdmarkdown6.6 KB
skills/implementing-saml-sso-with-okta/assets/template.mdmarkdown4.1 KB
skills/implementing-saml-sso-with-okta/references/api-reference.mdmarkdown1.6 KB
skills/implementing-saml-sso-with-okta/references/standards.mdmarkdown2.1 KB
skills/implementing-saml-sso-with-okta/references/workflows.mdmarkdown3.4 KB
skills/implementing-saml-sso-with-okta/scripts/agent.pyscript7.6 KB
skills/implementing-saml-sso-with-okta/scripts/process.pyscript19.2 KB
skills/implementing-scim-provisioning-with-okta/LICENSEother11.0 KB
skills/implementing-scim-provisioning-with-okta/SKILL.mdmarkdown9.0 KB
skills/implementing-scim-provisioning-with-okta/assets/template.mdmarkdown2.5 KB
skills/implementing-scim-provisioning-with-okta/references/api-reference.mdmarkdown4.6 KB
skills/implementing-scim-provisioning-with-okta/references/standards.mdmarkdown2.3 KB
skills/implementing-scim-provisioning-with-okta/references/workflows.mdmarkdown2.8 KB
skills/implementing-scim-provisioning-with-okta/scripts/agent.pyscript9.0 KB
skills/implementing-scim-provisioning-with-okta/scripts/process.pyscript15.3 KB
skills/implementing-secret-scanning-with-gitleaks/LICENSEother11.0 KB
skills/implementing-secret-scanning-with-gitleaks/SKILL.mdmarkdown11.1 KB
skills/implementing-secret-scanning-with-gitleaks/assets/template.mdmarkdown4.7 KB
skills/implementing-secret-scanning-with-gitleaks/references/api-reference.mdmarkdown4.5 KB
skills/implementing-secret-scanning-with-gitleaks/references/standards.mdmarkdown2.2 KB
skills/implementing-secret-scanning-with-gitleaks/references/workflows.mdmarkdown5.0 KB
skills/implementing-secret-scanning-with-gitleaks/scripts/agent.pyscript7.2 KB
skills/implementing-secret-scanning-with-gitleaks/scripts/process.pyscript9.8 KB
skills/implementing-secrets-management-with-vault/LICENSEother11.0 KB
skills/implementing-secrets-management-with-vault/SKILL.mdmarkdown12.3 KB
skills/implementing-secrets-management-with-vault/references/api-reference.mdmarkdown4.1 KB
skills/implementing-secrets-management-with-vault/scripts/agent.pyscript10.7 KB
skills/implementing-secrets-scanning-in-ci-cd/LICENSEother11.0 KB
skills/implementing-secrets-scanning-in-ci-cd/SKILL.mdmarkdown3.7 KB
skills/implementing-secrets-scanning-in-ci-cd/references/api-reference.mdmarkdown3.0 KB
skills/implementing-secrets-scanning-in-ci-cd/scripts/agent.pyscript5.8 KB
skills/implementing-security-chaos-engineering/LICENSEother11.0 KB
skills/implementing-security-chaos-engineering/SKILL.mdmarkdown2.5 KB
skills/implementing-security-chaos-engineering/references/api-reference.mdmarkdown1.4 KB
skills/implementing-security-chaos-engineering/scripts/agent.pyscript8.1 KB
skills/implementing-security-information-sharing-with-stix2/LICENSEother11.0 KB
skills/implementing-security-information-sharing-with-stix2/SKILL.mdmarkdown12.8 KB
skills/implementing-security-information-sharing-with-stix2/references/api-reference.mdmarkdown2.0 KB
skills/implementing-security-information-sharing-with-stix2/scripts/agent.pyscript7.0 KB
skills/implementing-security-monitoring-with-datadog/LICENSEother11.0 KB
skills/implementing-security-monitoring-with-datadog/SKILL.mdmarkdown14.3 KB
skills/implementing-security-monitoring-with-datadog/references/api-reference.mdmarkdown3.4 KB
skills/implementing-security-monitoring-with-datadog/scripts/agent.pyscript5.8 KB
skills/implementing-semgrep-for-custom-sast-rules/LICENSEother11.0 KB
skills/implementing-semgrep-for-custom-sast-rules/SKILL.mdmarkdown7.5 KB
skills/implementing-semgrep-for-custom-sast-rules/references/api-reference.mdmarkdown5.1 KB
skills/implementing-semgrep-for-custom-sast-rules/references/standards.mdmarkdown1.1 KB
skills/implementing-semgrep-for-custom-sast-rules/scripts/agent.pyscript7.6 KB
skills/implementing-siem-correlation-rules-for-apt/LICENSEother11.0 KB
skills/implementing-siem-correlation-rules-for-apt/SKILL.mdmarkdown3.1 KB
skills/implementing-siem-correlation-rules-for-apt/references/api-reference.mdmarkdown1.7 KB
skills/implementing-siem-correlation-rules-for-apt/scripts/agent.pyscript10.4 KB
skills/implementing-siem-use-case-tuning/LICENSEother11.0 KB
skills/implementing-siem-use-case-tuning/SKILL.mdmarkdown2.6 KB
skills/implementing-siem-use-case-tuning/references/api-reference.mdmarkdown2.1 KB
skills/implementing-siem-use-case-tuning/scripts/agent.pyscript8.1 KB
skills/implementing-siem-use-cases-for-detection/LICENSEother11.0 KB
skills/implementing-siem-use-cases-for-detection/SKILL.mdmarkdown11.1 KB
skills/implementing-siem-use-cases-for-detection/references/api-reference.mdmarkdown2.1 KB
skills/implementing-siem-use-cases-for-detection/scripts/agent.pyscript8.7 KB
skills/implementing-sigstore-for-software-signing/LICENSEother11.0 KB
skills/implementing-sigstore-for-software-signing/SKILL.mdmarkdown12.6 KB
skills/implementing-sigstore-for-software-signing/references/api-reference.mdmarkdown5.1 KB
skills/implementing-sigstore-for-software-signing/scripts/agent.pyscript17.7 KB
skills/implementing-soar-automation-with-phantom/LICENSEother11.0 KB
skills/implementing-soar-automation-with-phantom/SKILL.mdmarkdown14.3 KB
skills/implementing-soar-automation-with-phantom/references/api-reference.mdmarkdown2.6 KB
skills/implementing-soar-automation-with-phantom/scripts/agent.pyscript9.4 KB
skills/implementing-soar-playbook-for-phishing/LICENSEother11.0 KB
skills/implementing-soar-playbook-for-phishing/SKILL.mdmarkdown4.8 KB
skills/implementing-soar-playbook-for-phishing/references/api-reference.mdmarkdown2.5 KB
skills/implementing-soar-playbook-for-phishing/scripts/agent.pyscript8.6 KB
skills/implementing-soar-playbook-with-palo-alto-xsoar/LICENSEother11.0 KB

skills/implementing-soar-automation-with-phantom/scripts/agent.py

View on GitHub
#!/usr/bin/env python3
"""Splunk SOAR (Phantom) automation agent for playbook management."""

import json
import sys
import argparse
from datetime import datetime

try:
    import requests
    from requests.packages.urllib3.exceptions import InsecureRequestWarning
    requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
except ImportError:
    print("Install requests: pip install requests")
    sys.exit(1)


class SplunkSOARClient:
    """Client for Splunk SOAR (Phantom) REST API."""

    def __init__(self, base_url, auth_token, verify_ssl=False):
        self.base_url = base_url.rstrip("/")
        self.session = requests.Session()
        self.session.headers.update({
            "ph-auth-token": auth_token,
            "Content-Type": "application/json",
        })
        self.session.verify = verify_ssl

    def _get(self, endpoint, params=None):
        resp = self.session.get(f"{self.base_url}/rest{endpoint}", params=params, timeout=30)
        resp.raise_for_status()
        return resp.json()

    def _post(self, endpoint, data=None):
        resp = self.session.post(f"{self.base_url}/rest{endpoint}", json=data, timeout=30)
        resp.raise_for_status()
        return resp.json()

    def list_playbooks(self, page_size=50):
        """List all configured playbooks."""
        return self._get("/playbook", params={"page_size": page_size})

    def get_playbook(self, playbook_id):
        """Get details of a specific playbook."""
        return self._get(f"/playbook/{playbook_id}")

    def run_playbook(self, playbook_id, container_id, scope="all"):
        """Execute a playbook against a container."""
        return self._post("/playbook_run", data={
            "playbook_id": playbook_id,
            "container_id": container_id,
            "scope": scope,
        })

    def list_containers(self, label=None, status=None, page_size=50):
        """List containers (incidents/events)."""
        params = {"page_size": page_size, "sort": "id", "order": "desc"}
        if label:
            params["_filter_label"] = f'"{label}"'
        if status:
            params["_filter_status"] = f'"{status}"'
        return self._get("/container", params=params)

    def create_container(self, name, label, severity, description=""):
        """Create a new container for an incident."""
        return self._post("/container", data={
            "name": name, "label": label,
            "severity": severity, "description": description,
            "status": "new",
        })

    def add_artifact(self, container_id, name, cef_data, label="event"):
        """Add an artifact (IOC) to a container."""
        return self._post("/artifact", data={
            "container_id": container_id,
            "name": name,
            "label": label,
            "cef": cef_data,
            "severity": "medium",
        })

    def list_apps(self):
        """List installed apps (connectors)."""
        return self._get("/app")

    def list_assets(self):
        """List configured assets."""
        return self._get("/asset")

    def get_action_results(self, action_run_id):
        """Get results of an action run."""
        return self._get(f"/action_run/{action_run_id}")

    def run_action(self, action_name, app_id, asset_id, parameters, container_id):
        """Run an action via an app connector."""
        return self._post("/action_run", data={
            "action": action_name,
            "app_id": app_id,
            "asset_id": asset_id,
            "container_id": container_id,
            "parameters": [parameters],
        })

    def get_system_info(self):
        """Get SOAR system information."""
        return self._get("/system_info")

    def list_users(self):
        """List SOAR users."""
        return self._get("/ph_user")


def create_phishing_response_playbook_data():
    """Generate phishing response playbook configuration."""
    return {
        "name": "Phishing Investigation and Response",
        "description": "Automated phishing email triage and response",
        "steps": [
            {"action": "file_reputation", "app": "VirusTotal",
             "description": "Check attachment hash against VT"},
            {"action": "url_reputation", "app": "VirusTotal",
             "description": "Check URLs in email against VT"},
            {"action": "domain_reputation", "app": "VirusTotal",
             "description": "Check sender domain reputation"},
            {"action": "whois_domain", "app": "WHOIS",
             "description": "WHOIS lookup on sender domain"},
            {"action": "hunt_email", "app": "Exchange",
             "description": "Search for same email across mailboxes"},
            {"action": "decision_gate", "type": "prompt",
             "description": "Analyst reviews enrichment and decides"},
            {"action": "quarantine_email", "app": "Exchange",
             "description": "Quarantine email from all mailboxes"},
            {"action": "block_sender", "app": "Firewall",
             "description": "Block sender IP/domain on email gateway"},
            {"action": "create_ticket", "app": "ServiceNow",
             "description": "Create incident ticket for tracking"},
        ],
    }


def create_malware_containment_playbook_data():
    """Generate malware containment playbook configuration."""
    return {
        "name": "Malware Containment and Remediation",
        "steps": [
            {"action": "get_process_info", "app": "CrowdStrike",
             "description": "Get process details from EDR"},
            {"action": "file_reputation", "app": "VirusTotal",
             "description": "Check file hash reputation"},
            {"action": "detonate_file", "app": "Sandbox",
             "description": "Detonate in sandbox if unknown"},
            {"action": "decision_gate", "type": "prompt",
             "description": "Analyst approves containment"},
            {"action": "contain_device", "app": "CrowdStrike",
             "description": "Network isolate the endpoint"},
            {"action": "disable_user", "app": "ActiveDirectory",
             "description": "Disable compromised user account"},
            {"action": "create_ticket", "app": "ServiceNow",
             "description": "Create P1 incident ticket"},
        ],
    }


def run_soar_audit(client):
    """Run SOAR platform audit."""
    print(f"\n{'='*60}")
    print(f"  SPLUNK SOAR (PHANTOM) AUDIT")
    print(f"  Generated: {datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S')} UTC")
    print(f"{'='*60}\n")

    try:
        sys_info = client.get_system_info()
        print(f"--- SYSTEM INFO ---")
        print(f"  Version: {sys_info.get('version', 'N/A')}")
        print(f"  Build: {sys_info.get('build', 'N/A')}")
    except Exception as e:
        print(f"  System info unavailable: {e}")

    playbooks = client.list_playbooks()
    pb_data = playbooks.get("data", [])
    print(f"\n--- PLAYBOOKS ({len(pb_data)}) ---")
    for pb in pb_data[:15]:
        status = "ACTIVE" if pb.get("active") else "INACTIVE"
        print(f"  [{status}] {pb.get('name', 'N/A')} (ID: {pb.get('id')})")

    apps = client.list_apps()
    app_data = apps.get("data", [])
    print(f"\n--- INSTALLED APPS ({len(app_data)}) ---")
    for app in app_data[:15]:
        print(f"  {app.get('name', 'N/A')} v{app.get('app_version', 'N/A')}")

    assets = client.list_assets()
    asset_data = assets.get("data", [])
    print(f"\n--- CONFIGURED ASSETS ({len(asset_data)}) ---")
    for asset in asset_data[:10]:
        print(f"  {asset.get('name', 'N/A')} -> {asset.get('product_name', 'N/A')}")

    containers = client.list_containers(status="open")
    ct_data = containers.get("data", [])
    print(f"\n--- OPEN CONTAINERS ({len(ct_data)}) ---")
    for ct in ct_data[:10]:
        print(f"  [{ct.get('severity', 'N/A')}] {ct.get('name', 'N/A')} (Status: {ct.get('status')})")

    print(f"\n--- PLAYBOOK TEMPLATES ---")
    phishing = create_phishing_response_playbook_data()
    print(f"  {phishing['name']}: {len(phishing['steps'])} steps")
    malware = create_malware_containment_playbook_data()
    print(f"  {malware['name']}: {len(malware['steps'])} steps")

    print(f"\n{'='*60}\n")
    return {"playbooks": len(pb_data), "apps": len(app_data), "containers": len(ct_data)}


def main():
    parser = argparse.ArgumentParser(description="Splunk SOAR Automation Agent")
    parser.add_argument("--url", required=True, help="SOAR instance URL")
    parser.add_argument("--token", required=True, help="SOAR auth token")
    parser.add_argument("--audit", action="store_true", help="Run SOAR audit")
    parser.add_argument("--list-playbooks", action="store_true")
    parser.add_argument("--run-playbook", nargs=2, metavar=("PB_ID", "CONTAINER_ID"),
                        help="Run playbook on container")
    parser.add_argument("--output", help="Save report to JSON")
    args = parser.parse_args()

    client = SplunkSOARClient(args.url, args.token)

    if args.audit:
        report = run_soar_audit(client)
        if args.output:
            with open(args.output, "w") as f:
                json.dump(report, f, indent=2, default=str)
    elif args.list_playbooks:
        pb = client.list_playbooks()
        for p in pb.get("data", []):
            print(f"  [{p.get('id')}] {p.get('name')}")
    elif args.run_playbook:
        result = client.run_playbook(int(args.run_playbook[0]), int(args.run_playbook[1]))
        print(json.dumps(result, indent=2))
    else:
        parser.print_help()


if __name__ == "__main__":
    main()
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 197kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall