Directory Traversal Attack Logs

AttackPatterns Web Application Directory Traversal / LFI

What This Means

Detect directory traversal and local file inclusion attacks across web platforms. Learn to identify path traversal patterns in access logs and protect sensitive server files.

Example Log

-- Access log showing traversal across platforms:
198.51.100.88 "GET /download?file=../../../etc/passwd HTTP/1.1" 200 1847
198.51.100.88 "GET /include.php?page=....//....//etc/shadow HTTP/1.1" 403 156
198.51.100.88 "GET /view?doc=%252e%252e%252fetc%252fpasswd HTTP/1.1" 400 0
198.51.100.88 "GET /api/file?path=C:%5c..%5c..%5cwindows%5csystem.ini HTTP/1.1" 403 0

Indicators of Suspicious Activity

How to Investigate

  1. Search all access logs for traversal patterns using regex (URL-decoded)
  2. Catalog all endpoints that accept file path parameters
  3. Check response codes — 200 responses to traversal indicate successful exploitation
  4. If 200 found, determine what file contents were exposed
  5. Review application code for vulnerable file inclusion or file read operations
  6. Check for evidence of follow-up attacks leveraging disclosed information

Recommended Mitigations

Scan This Log Instantly

Paste a suspicious log line below and get an instant AI-powered security assessment.

0 / 2000

Need a Full Investigation?

Scan entire log files, detect attack patterns, reconstruct timelines, and generate a full investigation report.

Run Smart Scan

Related Log Types

Related Attack Patterns

Frequently Asked Questions

What is the impact of a successful directory traversal?
Attackers can read any file the web server process has permission to access: configuration files with database credentials, private keys, password files, application source code, and system configuration.
How do attackers bypass traversal filters?
Common bypasses: double-encoding (%252e%252e), Unicode variants, mixed path separators (..\..//), null bytes (%00), and OS-specific tricks like ....// which becomes ../ after basic filter removal.
What is the difference between LFI and RFI?
Local File Inclusion (LFI) reads files from the server itself using traversal paths. Remote File Inclusion (RFI) includes files from external URLs, enabling remote code execution. RFI requires specific server configurations.