isPhishingnoulPlayground
这封邮件是钓鱼吗?
这封邮件是钓鱼吗?伪造的 Apple 通知被判高风险;公司内部维护通知被判低风险。
请求
stateemail
fromApple 支持 <no-reply@apple-id-verify.co>subject【紧急】您的 Apple ID 将在 24 小时内被停用body我们检测到异常登录。请立即点击下方链接并输入您的 Apple ID 密码和验证码以保留账户:hxxp://apple-id-verify.co/login
结果
示例数据对比两个示例
这两个示例仅有一处细节不同。结果随之变化。
变化之处虚假品牌通知 → 内部维护邮件
这些结果为示例数据,非实况模型运行。登录后可用你自己的内容试用。
isPhishing: 置信度 = 0.04 → 置信度 = 0.97 tactic: none · 普通邮件 → credentials · 索要凭证
tacticchoice各选项置信度
品牌冒充31%
制造紧迫感22%
索要凭证45%
普通邮件2%
复制代码
设置 SYSTEM_ONE_API_KEY。代码片段使用已发布的目录模型 ID。
请求 JSON
application/json
{"model":"decider-v1.1","state":{"from":"Apple 支持 <no-reply@apple-id-verify.co>","subject":"【紧急】您的 Apple ID 将在 24 小时内被停用","body":"我们检测到异常登录。请立即点击下方链接并输入您的 Apple ID 密码和验证码以保留账户:hxxp://apple-id-verify.co/login"},"questions":{"isPhishing":{"type":"noul","instructions":"Is this email a phishing attempt?","criteria":{"true":"试图获取账户访问、凭证或付款","false":"普通商务邮件"}},"tactic":{"type":"choice","instructions":"Which tactic does the email mainly use?","criteria":{"impersonation":"品牌冒充","urgency":"制造紧迫感","credentials":"索要凭证","none":"普通邮件"}}}}cURL · POST /v1/systemone
sh
curl "https://system-one.dev/v1/systemone" \ -H "Authorization: Bearer $SYSTEM_ONE_API_KEY" \ -H 'Content-Type: application/json' \ -H 'Idempotency-Key: saved-operation-id' \ --data '{"model":"decider-v1.1","state":{"from":"Apple 支持 <no-reply@apple-id-verify.co>","subject":"【紧急】您的 Apple ID 将在 24 小时内被停用","body":"我们检测到异常登录。请立即点击下方链接并输入您的 Apple ID 密码和验证码以保留账户:hxxp://apple-id-verify.co/login"},"questions":{"isPhishing":{"type":"noul","instructions":"Is this email a phishing attempt?","criteria":{"true":"试图获取账户访问、凭证或付款","false":"普通商务邮件"}},"tactic":{"type":"choice","instructions":"Which tactic does the email mainly use?","criteria":{"impersonation":"品牌冒充","urgency":"制造紧迫感","credentials":"索要凭证","none":"普通邮件"}}}}'TypeScript
TypeScript
// npm install @system-one-ai/core@0.8.0 @system-one-ai/adapter-system-one@0.7.0 @system-one-ai/transport-fetch@0.8.0import { createSystemOne, choice, score, booleanQuestion } from '@system-one-ai/core';import { systemOneAdapter } from '@system-one-ai/adapter-system-one';import { createFetchTransport } from '@system-one-ai/transport-fetch';const client = createSystemOne({ baseURL: "https://system-one.dev/v1", apiKey: process.env.SYSTEM_ONE_API_KEY!, model: "decider-v1.1", adapter: systemOneAdapter, transport: createFetchTransport(), timeoutMs: 30_000, maxRetries: 0,});const result = await client.evaluate({ state: { "from": "Apple 支持 <no-reply@apple-id-verify.co>", "subject": "【紧急】您的 Apple ID 将在 24 小时内被停用", "body": "我们检测到异常登录。请立即点击下方链接并输入您的 Apple ID 密码和验证码以保留账户:hxxp://apple-id-verify.co/login" }, questions: { isPhishing: booleanQuestion("Is this email a phishing attempt?", { true: "试图获取账户访问、凭证或付款", false: "普通商务邮件", }), tactic: choice("Which tactic does the email mainly use?", { impersonation: "品牌冒充", urgency: "制造紧迫感", credentials: "索要凭证", none: "普通邮件", }), },}, { headers: { 'Idempotency-Key': crypto.randomUUID() } });result.answers.isPhishing.probabilityresult.answers.tactic.choiceresult.response.requestId;