Loading...

文章背景图

pipelock 保姆级部署教程:Open-source AI agent firewall for MCP security and agent egr

2026-11-09
0
- 字
- 分钟
|

pipelock

项目简介

Open-source AI agent firewall for MCP security and agent egress. Scans mediated HTTP, MCP, A2A, and WebSocket traffic for exfiltration, SSRF, and prompt injection, and emits mediator-signed action receipts: verifiable audit evidence from outside the agent.

pipelock

  • 项目地址:pipelab-org/pipelock
  • Stars:987
  • 主语言:Go
  • 主题标签:#agent-security #ai-agent-security #ai-agents #ai-firewall #ai-security #dlp #egress-proxy #github-action

基本使用

克隆仓库后阅读 README 文档,按照项目说明进行配置和运行。本项目开源免费,欢迎 Star 和贡献代码。

注意事项

  1. 请前往项目主页查看最新版本和文档
  2. 部分项目需要配合 API Key 或配置文件使用
  3. 建议在隔离环境中测试后再部署到生产环境

本文由自动化整理发布,项目信息来自 GitHub。如有疑问请参考项目官方文档。

安装部署(实操步骤)

1. 前置准备

  • 项目仓库:pipelab-org/pipelock(https://github.com/pipelab-org/pipelock)
  • 需要本机具备 Git;按项目语言准备对应运行时(Python / Node.js / Go / Java 等)
  • 建议先在本机或测试服务器上跑通,再部署到生产环境
  • 遇到依赖版本问题时,以仓库 README 与 Releases 说明为准

2. 官方安装 / 启动命令(摘自项目 README,可直接复制执行)

pipelock demo --receipts-dir ./out                                   # runs attack scenarios, writes 7 signed receipts + signer.pub
pipelock verify-receipt "$(ls ./out/*.json | head -1)" --key ./out/signer.pub  # check a signature yourself (each receipt is <action-id>.json)
pipelock init --output ./pipelock.yaml        # names a recorder directory and generates its signing key
pipelock run --config ./pipelock.yaml         # record while your agent works
pipelock evidence view --receipt-dir ./recorder --out report.html   # static offline report, no server
pipelock evidence serve --receipt-dir ./recorder                    # same report, served read-only
# Build the current release from source (Community edition, Go 1.26+)
git clone --branch v3.8.0 --depth 1 https://github.com/pipelab-org/pipelock.git
make -C pipelock install

# Discover local agent integrations and save a config
pipelock init --output ./pipelock.yaml

# Test the scanner
pipelock check --config ./pipelock.yaml --url "https://api.vendor.example/?k=$(printf '%s%s' 'AKIA' 'IOSFODNN7EXAMPLE')"  # blocked: AWS Access ID
pipelock check --config ./pipelock.yaml --url "https://docs.python.org/3/"                # allowed
# Download a binary
# See https://github.com/pipelab-org/pipelock/releases

# Docker
docker pull ghcr.io/pipelab-org/pipelock:3.8.0

# Homebrew on macOS
brew install luckyPipewrench/tap/pipelock
pipelock sandbox --config pipelock.yaml -- python agent.py
pipelock sandbox --best-effort \
  --best-effort-reason "container user namespaces disabled" \
  --best-effort-expiry 30m -- python agent.py
pipelock mcp proxy --sandbox --config pipelock.yaml -- npx server

3. 部署流程

  1. 克隆仓库:git clone https://github.com/pipelab-org/pipelock
  2. 进入目录后按上面的官方命令安装依赖
  3. 参考 README 的配置说明填写配置文件或环境变量
  4. 按官方说明启动服务,确认监听端口与访问地址
  5. 浏览器访问验证功能,确认无报错后再开放外网

4. 常见问题排查

  • 依赖安装失败:先升级包管理器,再确认运行时版本符合 README 要求
  • 启动报端口占用:修改配置中的端口或释放被占用端口
  • 页面打不开:检查防火墙 / 安全组是否放行对应端口
  • 功能异常:查看运行日志,对照 Issues 中同类问题处理

5. 官方链接

评论交流

文章目录