Xpersona
L

linux-forensics-automation

CLAWHUB · Unverified

Automates Linux forensic data collection, generates detailed reports, and uploads them to Google Drive or emails results for fast incident response and audits. Skill: linux-forensics-automation Owner: peachhfuzz Summary: Automates Linux forensic data collection, generates detailed reports, and uploads them to Google Drive or emails results for fast incident response and audits. Tags: latest:1.0.0 Version history: v1.0.0 | 2026-03-24T23:56:32.694Z | user Initial release of Linux Forensics Automation. - Automates comprehensive forensic data collection from Linux systems. - Ge

62
Rank
84
Safety
965
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 965 downloads reported by the source. Last updated 10/12/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s179g3w4yxndj92bssckvvs5zs83ht0p:linux-forensics-automation
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-peachhfuzz-linux-forensics-automation/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

10,886 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: forensics-automation
description: Automated Linux forensic collection and archival. Generate comprehensive system forensic reports (users, network, logs, processes, packages, disk usage, etc.) and automatically upload to Google Drive or email results. Use when you need to: (1) Quickly collect forensic data from a Linux system, (2) Archive forensic reports to Google Drive, (3) Automate forensic collection + sharing in one command, or (4) Build forensic automation into security workflows.
---

# Forensics Automation Skill

Automated collection and archival of Linux system forensic data.

## Quick Start

### Prerequisites

Google Drive API setup required once:

```bash
# 1. Create GCP project and enable Google Drive API
# 2. Create OAuth 2.0 Desktop App credentials (JSON)
# 3. Run one-time setup
python3 setup_gmail.py

# Follow OAuth flow, authorize, paste code back
# Tokens saved to ~/.gmail_tokens.json
```

### Basic Usage

**Generate forensic report:**
```bash
bash linux_forensics.sh /tmp
# Creates: /tmp/forensics_YYYYMMDD_HHMMSS.txt
```

**Upload to Google Drive:**
```bash
python3 upload_to_drive.py /tmp/forensics_20260324_180000.txt
# Returns: File ID and shareable Drive link
```

**One-command: Generate + Upload:**
```bash
bash forensics_and_upload.sh
# Generates report and uploads in one go
```

**Send forensic data via email:**
```bash
python3 send_email.py recipient@example.com "Forensic Report" "Report attached"
```

## What Gets Collected

Each forensic report includes:

- **System Info**: Kernel version, hostname, OS details
- **Users & Groups**: All user accounts, sudoers configuration
- **Network**: IP addresses, routes, listening ports, connections
- **Packages**: Installed software (apt/rpm)
- **Processes**: Full process listing with arguments
- **System Logs**: dmesg, auth logs, system events
- **Cron Jobs**: Scheduled tasks across all users
- **File Integrity**: Recently modified files (last 7 days)
- **Disk Usage**: Storage breakdown

## Script Details

### `linux_forensics.sh`

Core forensic collection script.

```bash
bash linux_forensics.sh [output_directory]

# Example
bash linux_forensics.sh /tmp
# Creates /tmp/forensics_YYYYMMDD_HHMMSS.txt (~300KB typical)
```

**What it does:**
- Gathers comprehensive system information
- Runs read-only commands (safe to execute)
- Outputs to timestamped file for easy tracking
- Minimal dependencies (bash, standard Unix tools)

### `forensics_and_upload.sh`

Orchestration script: Generate report + Upload to Drive in one command.

```bash
bash forensics_and_upload.sh

# One-step forensic collection and archival
# Includes 2-second rate limit delay to avoid Google API throttling
```

**What it does:**
- Runs `linux_forensics.sh` automatically
- Gets most recent report
- Waits 2 seconds (rate limiting)
- Uploads to Google Drive
- Returns Drive link

### `upload_to_drive.py`

Upload any file to Google Drive using authenticated session.

```bash
python3 upload_to_drive.py <file_path> [

_meta.json

{
  "ownerId": "kn7fzt480b73yd3wahns4vmv0583hz3h",
  "slug": "linux-forensics-automation",
  "version": "1.0.0",
  "publishedAt": 1774396592694
}

skill-card.md

## Description:

Automates Linux forensic data collection, generates detailed reports, and uploads them to Google Drive or emails results for fast incident response and audits.

This skill is ready for commercial/non-commercial use.

## Publisher:

[peachhfuzz](https://clawhub.ai/user/peachhfuzz)

### License/Terms of Use:

MIT-0

## Use Case:

Security operations, incident response, audit, and engineering teams use this skill to collect Linux system forensic data and prepare commands or workflow guidance for archiving reports to Google Drive or sending status by email.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Forensic reports may contain sensitive system, user, network, process, log, package, cron, file, and disk usage data.

Mitigation: Use only for authorized incident response or audit work, redact or encrypt reports before sharing, and review collected fields against local policy.

Risk: Reports can be uploaded to Google Drive or referenced in email workflows, which can expose sensitive data if permissions are too broad.

Mitigation: Confirm Drive folder permissions, avoid public or broadly shared links, restrict OAuth scopes, and review token storage before use.

Risk: Long-lived OAuth refresh tokens can enable continued access beyond a single forensic task.

Mitigation: Store tokens with restrictive permissions, rotate or revoke them when no longer needed, and require local review of any referenced scripts before installation or execution.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/peachhfuzz/skills/linux-forensics-automation)
- [Google Drive API Documentation](https://developers.google.com/drive/api)
- [OAuth 2.0 for Desktop Apps](https://developers.google.com/identity/protocols/oauth2/native-app)
- [Linux man-pages project](https://www.man7.org/linux/man-pages/)

## Skill Output:

**Output Type(s):** [Text, Markdown, Code, Shell commands, Configuration, Guidance]

**Output Format:** [Markdown with inline bash and Python command examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May describe collection, upload, and email workflows that handle sensitive forensic reports.]

## Skill Version(s):

1.0.0 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to linux-forensics-automation and adjacent AI workflows.