Skip to main content

Backend-first enumeration assistant for authorized pentesters.

Project description

PenPal

PenPal is a local-first assistant for authorized enumeration. It turns services and tool output into stored evidence, clear next checks, and visible command syntax. The Python core is deterministic; PI is the optional conversational cockpit.

PenPal does not execute exploits, hide commands, use credentials automatically, or provide C2 tasking.

Choose Your Path

Run the demo with PI

Use this path when you want the conversational cockpit. Download a release archive or clone the repository. You need Python 3.11 or newer, Node.js 22.19 or newer, and npm.

git clone https://github.com/yousifnazhat/penpal.git
cd penpal
python3 -m penpal doctor
python3 -m penpal --workspace penpal-workspace scope set --include 10.10.10.5
python3 -m penpal --workspace penpal-workspace init 10.10.10.5 --name demo
python3 -m penpal --workspace penpal-workspace parse-nmap demo examples/pi/demo-nmap.xml
python3 -m penpal --workspace penpal-workspace suggest demo
./scripts/setup-pi.sh
pi

On Windows PowerShell, run ./scripts/setup-pi.ps1 instead. The setup scripts install the pinned PI version when it is missing, then verify the project package without using a model or provider credentials.

Inside PI, approve project-local files if prompted, run /login when a provider is not configured, then try:

Use PenPal to summarize target demo and recommend next checks.

Run /penpal-status for a provider-free check that PI, PenPal, and the bundled playbooks are connected.

Connect an MCP client

Use this path when your existing agent supports MCP rather than PI. Install the optional local server, then configure the client to start the shown command over stdio:

python3 -m pip install --pre "penpal-enum[mcp]"
penpal --workspace penpal-workspace mcp

The MCP server has the same seven read-only workflows as the PI cockpit. It masks sensitive values and does not execute commands or modify your workspace.

Use the Python core only

The core works without PI. Install it and create a target:

python3 -m pip install --pre penpal-enum
penpal doctor
penpal init 10.10.10.5 --name demo
penpal parse-nmap demo ./scan.xml
penpal suggest demo

The release wheel and source archive also include the Python core and bundled playbooks. Add the PI cockpit to a registry installation with:

pi install npm:@yousif_nazhat/penpal-pi@0.2.0-rc.2

Diagnose setup

penpal doctor
penpal doctor --json

Doctor checks the Python version, playbooks, workspace schemas, scope, plaintext sensitive parameters, missing environment variables, and PI status. It does not modify the workspace. Include the redacted JSON output in bug reports.

What PenPal Does

  • Stores scoped targets, services, evidence, parameters, notes, and jobs in a local workspace.
  • Parses Nmap XML and ingests pasted or saved tool output.
  • Masks credential-like evidence and sensitive parameters by default.
  • Uses deterministic suggestions, service modules, and reviewed playbooks to explain the next authorized check.
  • Uses environment references for secrets so values are not persisted in workspace JSON.
  • Provides a loopback-only JSON API for local integrations.

Everyday Commands

penpal doctor
penpal init <host> --name <name>
penpal scope set --include <host-or-cidr> [--exclude <host-or-cidr>]
penpal parse-nmap <name> <nmap.xml>
penpal ingest <name> --file <output.txt> --source <tool-name> --service <proto/port>
penpal services <name>
penpal evidence <name>
penpal suggest <name>
penpal context <name> --json
penpal mcp
penpal playbooks playbooks
penpal modules list
penpal modules plan <name> <module>

scan prints commands by default. It runs them only with --execute. Use params set-env for passwords, tokens, and keys; params set keeps sensitive values in local plaintext for compatibility.

Safety

Configure engagement scope before a real assessment. Keep the local API on its default loopback address. Review every suggested command and remain responsible for authorization. Playbooks require authorized use and operator approval.

Help And Contributing

Run the contributor checks with:

python3 -m pip install ".[dev]"
python3 scripts/check.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

penpal_enum-0.2.0rc2.tar.gz (66.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

penpal_enum-0.2.0rc2-py3-none-any.whl (57.4 kB view details)

Uploaded Python 3

File details

Details for the file penpal_enum-0.2.0rc2.tar.gz.

File metadata

  • Download URL: penpal_enum-0.2.0rc2.tar.gz
  • Upload date:
  • Size: 66.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for penpal_enum-0.2.0rc2.tar.gz
Algorithm Hash digest
SHA256 28fa02031b012affe4e140e1ffe72e0c1dd63e569ef7099e0472b9d63805950b
MD5 f64286c10ba0df0013bbc430baa3a17e
BLAKE2b-256 f57dab5be7b1c6b76c50e04a370ad6c46cb22a1316ce2a1cfc208fb2d7197b64

See more details on using hashes here.

Provenance

The following attestation bundles were made for penpal_enum-0.2.0rc2.tar.gz:

Publisher: publish-pypi.yml on yousifnazhat/penpal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file penpal_enum-0.2.0rc2-py3-none-any.whl.

File metadata

  • Download URL: penpal_enum-0.2.0rc2-py3-none-any.whl
  • Upload date:
  • Size: 57.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for penpal_enum-0.2.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 06dc1450f66c42046cde8ca78947dce73733e3b532f7fed50422fb1e55caef96
MD5 82ebd17152cc521065415c6a9e415ca1
BLAKE2b-256 89caca8176965211f74780625748ecec3c80580bf0c5f2ed8939989549df1f59

See more details on using hashes here.

Provenance

The following attestation bundles were made for penpal_enum-0.2.0rc2-py3-none-any.whl:

Publisher: publish-pypi.yml on yousifnazhat/penpal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page