name: Bottomless Decoy File Tree
code: CAT-007
summary: >-
  Decoy directory tree that never ends or loops back on itself, with
  sensitive-sounding names and notes pointing to the next file. Exploits pentest
  agents' depth-first exploration.
family: tarpit
goals: [delay, degrade, detect]
delivery: [network-service, file-artifact, generated-content]
targets: [pentest-agent]
description: |-
  Agents tend to exhaust one branch before backtracking. Mantis serves a generated FTP tree of infinite depth whose listings repeat an instruction to keep looking; commands other than `ls` and `cd` return "command not found", and thousands of entries per listing can fill context. CHeaT uses static variants. Access to looped files doubles as detection.
variants:
  - name: Generated infinite tree
    description: Mantis agent-tarpit, entered via an injection after the agent exploits a decoy.
  - name: Nested lure directory
    description: One enticing directory (e.g. `private_docs`) with hundreds of nested subdirectories (CHeaT).
  - name: Circular references
    description: file1 says the credentials are in file2, file2 points to file3, file3 points back to file1 (CHeaT).
implementations:
  - { name: Mantis, url: https://github.com/pasquini-dario/project_mantis, kind: research }
references:
  - title: 'Hacking Back the AI-Hacker: Prompt Injection as a Defense Against LLM-driven Cyberattacks'
    url: https://arxiv.org/abs/2410.20911
    publisher: George Mason University
    date: '2024-10'
    findings:
      - >-
        Mantis agent-tarpit vs three LLM pentest agents including PentestGPT
        (modified) and HackingBuddyGPT: agents kept searching depth-first
        without backtracking; less reliable than Mantis's command-injection
        mode because agents sometimes left to inspect downloaded files.
  - title: 'Cloak, Honey, Trap: Proactive Defenses Against LLM Agents'
    url: https://www.usenix.org/system/files/usenixsecurity25-ayzenshteyn.pdf
    publisher: USENIX Security 2025
    date: '2025-08'
    findings:
      - >-
        PentestGPT, FTP server with a `private_docs` directory nested 250
        levels, 20 trials: the agent consistently followed the tree to its
        deepest level.
      - >-
        PentestGPT on GPT-4o, circular file references: hallucinated hidden
        files after 3 cycles and hidden credentials after 8. Models that
        recognized the loop kept re-checking.
added: 2026-12-01
