# Filesystem and Cloud Enumeration Preceding Lateral Movement

- **Severity:** High
- **Signature ID:** `8e4f5d74-7aa5-5b67-a647-aad470bf4030`
- **MITRE ATLAS:** AML.T0037 (Data from Local System), AML.T0075 (Cloud Service Discovery), AML.T0053 (AI Agent Tool Invocation)
- **OWASP:** ASI02 (Tool Misuse and Exploitation)

## Summary

This rule flags an AI agent performing large-scale discovery — walking entire directory trees or listing whole cloud storage buckets — rather than looking at a few files. That kind of broad enumeration is typically the reconnaissance step before an attacker decides what data to steal or where to move next.

## How the attack works

An attacker with control over or influence on an AI agent has it run recursive filesystem commands or whole-tree directory walks instead of targeted lookups. The same pattern applies to cloud storage: the agent lists entire buckets or object stores rather than specific known paths. This enumeration itself does not exfiltrate anything, but it maps out what exists and where, informing the attacker's next move. The rule specifically requires the recursive or whole-tree form of these commands, not ordinary single-directory listings, to cut down on noise from normal use.

## Why it matters

On its own this only reveals reconnaissance; the real loss occurs if it is followed by actual data access or exfiltration. Organizations that miss this step lose early warning time to detect and stop an attack before sensitive files or cloud objects are actually taken.

## What you can do

- Review any recursive filesystem or full-bucket enumeration performed by AI agents to confirm it matches an expected task.
- Restrict agent tool permissions so filesystem and cloud storage access is scoped to specific paths or buckets rather than broad recursive access.
- Correlate enumeration events with subsequent file reads, downloads, or lateral movement to catch attacks in progress.
- Expect false positives from build tools, linters, backup/sync software, and scheduled cloud inventory jobs, and tune baselines around known legitimate schedules.

## Known benign look-alikes

- Build systems and linters walking a source tree
- Backup and sync tooling enumerating a home directory
- Cloud cost or inventory reporting that lists buckets on a schedule
- An agent legitimately asked to audit or index a large repository

## References

- https://attack.mitre.org/techniques/T1083/

---
Source: https://www.netzilo.com/threats/lateral-movement-enumeration
