跳到正文
TakoAPI
返回技能列表

safe-web

由 adamnaghs 提供

Web & Frontend Development
1.2k下载量由 clawskills.sh 提供
1星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Secure web fetch and search with **PromptGuard** scanning.

描述

该技能的功能

Wraps web fetch and search operations with PromptGuard scanning to detect prompt injection attacks hidden in web content. Any page or search result that fails the scan is blocked before it enters the AI context window. Operates fail-closed: if scanning cannot run, the tool returns an error rather than unverified content.

Native web fetch tools return content without injection scanning, so malicious pages can silently alter AI behavior without detection.

何时使用

  • Fetching articles from unfamiliar or untrusted URLs
  • Scraping competitor or news sites without exposing the AI to injected instructions
  • Searching the web during automated research pipelines
  • Processing user-supplied URLs in an AI agent workflow
  • Auditing web pages suspected of containing embedded injection attempts

示例工作流

输入

User asks: Summarize this article: https://unknown-blog.com/post

智能体
  1. 1

    Runs 'safe-web fetch https://unknown-blog.com/post'

  2. 2

    Downloads the page and strips scripts and styles with BeautifulSoup

  3. 3

    Scans extracted text with PromptGuard

  4. 4

    Blocks content and returns a SHIELD report if injection patterns are detected

  5. 5

    Returns clean text to the AI if the scan passes

输出

Clean article text ready for summarization, or a security alert listing matched injection patterns and the blocked URL

前置要求

  • PromptGuard installed from clawhub.ai/seojoonkim/prompt-guard
  • Brave Search API key set as BRAVE_API_KEY environment variable (required for search command, free tier available at brave.com/search/api/)

安装

clawhub install adamnaghs/safe-web

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接