Python File Audit

Audit. Detect. Protect.

Stop path traversal, zip bombs, and malicious file uploads before they hit your application logic. Add robust security validation using direct function calls or simple Python decorators.

Python File Audit protects your code from file-based attacks with one line.

Plug & Play Security

Drop standard decorators over existing file processing functions without rewriting application logic.

File handling is a silent attack surface

Most Python apps trust files too easily. Zip bombs, path traversal, malicious archives, oversized payloads, and special files (symlinks, devices, FIFOs) can crash services, leak data, or worse.

Zero Workflow Friction

Automatic extension detection handles CSV, ZIP, TAR, GZ, JSON, XML files instantly.

Get Started

pip install fileaudit

One line. Real protection.

from fileaudit import validate_csv

@validate_csv
def process_csv(csv_path):
    # your existing logic — now protected
    ...

Why Teams Trust Python File Audit

Security First

  • Open Source Security Foundation (OpenSSF) Best Practices badge.
  • AI security validation with human expert review.
  • Secure development process.

Free & Open Source

No black boxes. No lock-in. Just simple open security. Community-driven and actively maintained on Github.

Created by security experts

Developed and maintained by the creator of Python Code Audit and author of the Python Security Handbook!

Python File Audit for Commercial Applications

  • FileAudit is safe for use in close-source applications. The MPL-2.0 share-alike terms do not apply to applications built on top of FileAudit.
  • You do not need a commercial license. The MPL-2.0 applies to FileAudit’s own source code, not your applications. Many commercial applications use FileAudit!

Find Simple Solutions for Complex Problems
Join the ROI movement !

Openness by default to solve the most challenging problems. This foundation is open for all, so join us !