Skip to content

[P2][security] Rate limiting + caching for IOC/TheHive/MITRE-ATT&CK scripts #6

Description

@Toqsick

Source: RepoLens Security-Audit 2026-08-16 (findings security/rate-abuse/001, 003, 004, adversarial-verified ✅)

Four scripts hammer external APIs without any rate limiting, caching or backoff:

  • 001 IOC enrichment (VirusTotal/AbuseIPDB): zero sleep/429 handling
  • 003 TheHive agent.py:145,170: paged queries (50/500), no backoff
  • 004 MITRE ATT&CK agent.py:117-118: unconditional 13MB bundle GET on every call — needs cache/If-None-Match/304

Suggested fix: shared ratelimit.py helper (token bucket + Retry-After) + local cache for the ATT&CK bundle.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions