# Pathhunt File Integrity Scanner

> Search directories for secrets and monitor file integrity using SHA-256 baselines and keyword hunting.

Pathhunt File Integrity Scanner is a free AI agent skill on Agensi by ali dağdelen, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [ali dağdelen](https://www.agensi.io/creators/alidagdelen)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-11-28
- Security: scan passed (2026-11-28); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/pathhunt-file-integrity-scanner
- Tags: security, python, audit, devops, filesystem

## About this skill

Manually auditing logs and project files for secrets or unauthorized changes is slow and error-prone. PathHunt automates keyword discovery and File Integrity Monitoring (FIM) using localized Python scripts to secure your directories.

### What it does
- **Keyword hunting** searches filenames and file contents across entire directory trees.
- **Targeted scanning** filters searches by specific file extensions like `.env`, `.json`, or `.log`.
- **Integrity monitoring** generates SHA-256 baselines to track file state over time.
- **Change detection** identifies modified, added, or deleted files by comparing current states against baseline snapshots.
- **Structured reporting** groups results by filename or content matches for fast triage.

### How it works
1. Run the search command with a directory path and a specific keyword to locate strings in files.
2. Apply extension filters to narrow the search scope to configuration or log files.
3. Initialize a FIM baseline to create a JSON snapshot of file hashes in a directory.
4. Execute the verify command to compare the live directory against the baseline and report tampering.

### Frameworks & tools
This skill uses a standalone Python 3 CLI script and standard libraries including `hashlib` for SHA-256 generation, `argparse` for command handling, and `json` for baseline storage.

### Why this beats prompting it yourself
Generic prompts often hallucinate file paths or fail to process binary/large files correctly. This skill uses a native script to ensure 100% accurate hash comparisons and comprehensive recursive directory traversal that an LLM cannot perform reliably through context alone.

### Use cases
- Scan project directories for hardcoded API keys or sensitive credentials.
- Detect unauthorized modifications to system configuration files or source code.
- Filter through massive log directories for specific error patterns or status codes.
- Audit deployment artifacts to ensure no files were dropped or altered during transfer.

### Known limitations
Requires Python 3 installed on the host. Large directories may impact performance during hash generation. Does not support real-time kernel-level file system event monitoring.

## Requires

- Python 3

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Pathhunt File Integrity Scanner skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does Pathhunt differ from a standard file search tool?

Pathhunt combines keyword searching and File Integrity Monitoring (FIM). While it can scan for specific strings like 'API_KEY', it also generates SHA-256 hashes to detect if a file's content has been altered, even if the keywords remain the same.

### Which AI agents or frameworks are compatible with Pathhunt?

This skill is designed for any AI agent capable of executing Python 3 scripts with filesystem access. It works best with agents that can process structured JSON output to summarize security findings for the user.

### What exactly is included in the purchase?

You will receive the core Python CLI script, a README with setup instructions, and a set of pre-configured commands for your AI agent to trigger scans, baseline generation, and integrity verification.

### Are there any specific system requirements or dependencies?

Pathhunt uses standard Python libraries, so no complex external dependencies are required. However, the host environment must have Python 3 installed, and the AI agent must have read/write permissions for the directories you wish to monitor.

### Can Pathhunt handle large project directories with thousands of files?

Yes, Pathhunt handles large directories through recursive traversal. While the initial hash baseline for thousands of files may take a moment to generate, subsequent verification scans are optimized to report only the differences (additions, deletions, or modifications).

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
