Security Scan

Prompt 注入检测

检测用户输入的 Prompt 是否包含注入攻击。

支持上下文辅助判断,返回注入风险等级和具体匹配规则。

post/api/v1/prompt-check

Request

  • Base URL: https://aishield.tools
  • URL: https://aishield.tools/api/v1/prompt-check
  • Auth: none required

Request body

promptstring required

待检测的 Prompt 文本

contextstring

上下文信息(可选,辅助判断)

Response

检测结果

safeboolean
risk_levelstring
matchesobject[]

Changes

No recorded changes to this operation across all 1 revision of this API.