Example taskflows and custom MCP servers for the SecLab Taskflow Agent framework.
GitHub Security Lab maintains an experimental agentic framework for AI-driven security work — vulnerability auditing, alert triage, and variant analysis. This repository provides the concrete taskflow definitions, MCP server integrations, and helper scripts that turn the framework into runnable security workflows. It is a fork maintained by AiFeatures as part of the iAiFy enterprise.
| Field | Value |
|---|---|
| Version | 0.0.4 (pre-release) |
| Python | >= 3.9 |
| Build system | Hatch |
| License | MIT |
- Open this repo in a GitHub Codespace.
- Wait for the devcontainer to finish (look for
(.venv)in the prompt). - Run the demo:
python -m seclab_taskflow_agent \
-t seclab_taskflows.taskflows.audit.ghsa_variant_analysis_demo \
-g repo=github/cmark-gfm \
-g ghsa=GHSA-c944-cv5f-hpvrpip install hatch
hatch env createCreate a .env file in the repo root:
MEMCACHE_STATE_DIR=/app/data
CODEQL_DBS_BASE_PATH=/app/data
DATA_DIR=/app/data
LOG_DIR=/app/logs
Then run:
./scripts/run_seclab_agent.sh \
-t seclab_taskflows.taskflows.audit.ghsa_variant_analysis_demo \
-g repo=github/cmark-gfm \
-g ghsa=GHSA-c944-cv5f-hpvr| Variable | Purpose | Default |
|---|---|---|
AI_API_TOKEN |
AI API credentials | (required) |
AI_API_ENDPOINT |
AI model endpoint | https://models.github.ai/inference |
GH_TOKEN |
GitHub API access | (required) |
Note: Auditing taskflows can take several hours on large projects and require a Copilot Pro account.
./scripts/audit/run_audit.sh juice-shop/juice-shopResults are written to an SQLite database. The audit_result table has a has_vulnerability column marking likely genuine findings.
src/seclab_taskflows/
├── taskflows/ # Taskflow definitions (audit, triage, container shell)
├── mcp_servers/ # Custom MCP servers (GHSA, CodeQL, GitHub APIs, etc.)
├── configs/ # Agent and taskflow configuration
├── containers/ # Container image definitions
├── personalities/ # Agent persona prompts
├── prompts/ # Prompt templates
└── toolboxes/ # Tool definitions for taskflows
Requires Python >= 3.9 and Hatch.
# Install Hatch
pip install --upgrade hatch
# Lint (check only)
hatch fmt --linter --check
# Format
hatch fmt
# Run tests with coverage
hatch test --cover --randomize --parallel --retries 2 --retry-delay 1
# Type check
hatch run types:checkCI runs on every push and PR to main via .github/workflows/ci.yml. The pipeline:
- Lints with
hatch fmt --linter --check - Tests across Python 3.11 and 3.13 on Ubuntu, Windows, and macOS
- Publishing to PyPI/TestPyPI is handled by dedicated workflows
Enterprise deployments use Ai-road-4-You/enterprise-ci-cd@v1 reusable workflows.
This project follows OWASP Top 10 practices. See SECURITY.md for the vulnerability disclosure policy. No secrets should be hardcoded — use environment variables or GitHub Secrets.
See CONTRIBUTING.md and Ai-road-4-You/governance for guidelines.
MIT — Copyright GitHub, Inc.