okx-security

작성자: okx

이 스킬을 보안 스캔에 사용하세요: 거래 안전성 확인, 이 거래가 안전한지 확인, 사전 실행 점검, 보안 스캔, 토큰 리스크 스캔, 허니팟 탐지, DApp/URL 피싱 탐지, 메시지 서명 안전성, 악성 거래 탐지, 승인 안전성 점검, 토큰 승인 관리. 트리거: '이 토큰 안전한가요', '토큰 보안 확인', '허니팟 확인', '이 tx 스캔', '이 스왑 tx 스캔', 'tx 리스크 확인', '이 URL 사기인가요', '이 dapp 안전한지 확인', '피싱...

npx skills add https://github.com/okx/onchainos-skills --skill okx-security

Onchain OS Security

5 commands for token risk analysis, DApp phishing detection, transaction pre-execution security, signature safety, and approval management.

Pre-flight Checks

Read ../okx-agentic-wallet/_shared/preflight.md. If that file does not exist, read _shared/preflight.md instead.

Fail-safe Principle (CRITICAL)

Scan completed — risk detected

If a security scan completes successfully and returns action: "block" or action: "warn", follow the Risk Action Priority Rule below. The Agent MUST NOT override risk verdicts.

Scan failed — infrastructure error

If a security scan fails to complete (network error, API timeout, rate limiting, malformed response), the Agent MUST:

  • Report the error clearly to the user.
  • Ask the user whether to retry the scan or proceed without scan results.
  • If the user chooses to proceed, display a warning:

    "⚠️ Security scan could not be completed. Proceeding without verification — please ensure you trust this operation."

  • Log the skipped scan for auditability.

A security scan that fails to complete is NOT a "pass". Always inform the user and let them make an explicit decision.

Risk Action Priority Rule

tx-scan / sig-scan (transaction & signature scanning)

block > warn > safe (empty). The top-level action field reflects the highest priority from riskItemDetail.

action valueRisk LevelAgent Behavior
(empty/null)Low riskSafe to proceed
warnMedium riskShow risk details, ask for explicit user confirmation
blockHigh riskDo NOT proceed, show risk details, recommend cancel
  • Risk scan result is still valid even if simulation fails (simulator.revertReason may contain the revert reason).
  • If warnings field is populated, the scan completed but some data may be incomplete. Still present available risk information.
  • An empty/null action in a successful API response means "no risk detected". But if the API call failed, the absence of action does NOT mean safe — apply the fail-safe principle.

token-scan (token risk label scanning)

Token-scan returns a riskLevel field (CRITICAL, HIGH, MEDIUM, LOW) that represents the overall token risk, computed server-side from all boolean labels, tax thresholds, and additional signals (off-chain intelligence, ML models). The Agent uses this field directly and applies different actions for buy vs. sell operations.

riskLevelBuy ActionSell Action
CRITICALblock — refuse to buywarn — display risk, allow sell
HIGHwarn + pause — require explicit yes/nowarn — display risk, allow sell
MEDIUMwarn — info notice, continuewarn — info notice, continue
LOWsafe — proceedsafe — proceed

Full label catalog, tax threshold rules, and display format are defined in references/risk-token-detection.md. Always load that reference before executing token-scan.

Key principles:

  • riskLevel is authoritative: The API returns the overall risk level server-side. The Agent reads riskLevel directly — no client-side computation from individual labels is needed.
  • Buy is stricter than sell: CRITICAL blocks buy but only warns on sell (to allow stop-loss exit).
  • HIGH buy requires explicit user confirmation (yes/no) — do not auto-continue.
  • Individual label levels are not displayed to the user — only the overall riskLevel is shown, with triggered labels listed without level prefixes.
  • If isChainSupported: false, skip detection with a warning; do not block.
  • If API fails, warn but do not block. In swap context, token-scan failures auto-continue with a warning to avoid blocking time-sensitive trades — this overrides the general fail-safe's ask-user behavior.

Security commands do not require wallet login. They work with any address.

Chain Name Support

The CLI accepts human-readable chain names and resolves them automatically.

ChainNamechainIndex
XLayerxlayer196
Ethereumethereum or eth1
Solanasolana or sol501
BSCbsc or bnb56
Polygonpolygon or matic137
Arbitrumarbitrum or arb42161
Basebase8453
Avalancheavalanche or avax43114
Optimismoptimism or op10
zkSync Erazksync324
Linealinea59144
Scrollscroll534352

Address format note: EVM addresses (0x...) work across Ethereum/BSC/Polygon/Arbitrum/Base etc. Solana addresses (Base58) and Bitcoin addresses (UTXO) have different formats. Do NOT mix formats across chain types.

Related Workflows

When one of the following commands is used, show the related workflow hint after displaying results:

CommandWorkflowFile
security token-scanNew Token Screening~/.onchainos/workflows/new-token-screening.md
security token-scanSmart Money Signals~/.onchainos/workflows/smart-money-signals.md
security token-scanToken Research~/.onchainos/workflows/token-research.md
security token-scanWallet Monitor~/.onchainos/workflows/wallet-monitor.md

Hint format: "You can also try out our [workflow name] workflow for more comprehensive results. Would you like to try it?"

Command Index

#CommandDescription
1onchainos security token-scanToken risk / honeypot detection (all chains)
2onchainos security dapp-scanDApp / URL phishing detection (chain-agnostic)
3onchainos security tx-scanTransaction pre-execution security (EVM + Solana)
4onchainos security sig-scanMessage signature security (EVM only)
5onchainos security approvalsToken approval / Permit2 authorization query (EVM only)

Reference Loading Rules (MANDATORY)

Before executing ANY security command, you MUST read the corresponding reference document from skills/okx-security/references/. Do NOT rely on prior knowledge — always load the reference first.

User intentRead this file FIRST
Token safety, honeypot, is this token safe, 代币安全, 蜜罐检测, 貔貅盘references/risk-token-detection.md
DApp/URL phishing, is this site safe, 钓鱼网站references/risk-domain-detection.md
Transaction safety, tx pre-execution, signature safety, approve safety, 交易安全, 签名安全references/risk-transaction-detection.md
Approvals, allowance, Permit2, revoke, 授权管理, 授权查询, 风险授权references/risk-approval-monitoring.md

When a workflow involves multiple commands (e.g., token-scan then tx-scan), load each reference before executing that command.

Integration with Other Skills

Security scanning is often a prerequisite for other wallet operations:

  • Before wallet send with a contract token: run token-scan to verify token safety
  • Before wallet contract-call with approve calldata: run tx-scan to check spender
  • Before interacting with any DApp URL: run dapp-scan
  • Before signing any EIP-712 message: run sig-scan

Use okx-agentic-wallet skill for the subsequent send/contract-call operations.

okx의 다른 스킬

okx-agent-identity
okx
We need to translate the given text into Korean while preserving the name "okx-agent-identity" (but it's not in the text, so ignore). The text is a description of an agent skill. We must not add any extra commentary, labels, or formatting. Just translate the content inside <text> to Korean. The text includes technical terms like ERC-8004, XLayer, agent, ASP, evaluator, etc. Also includes Chinese characters and English terms. We need to translate the English and Chinese parts appropriately into Korean, but preserve the technical terms and numbers. Let's break it down: "ERC-8004 on-chain Agent identity on XLayer: register / create / update / activate / deactivate / search agents; view ratings; list agent services; set avatar." Translate: "XLayer에서의 ERC-8004 온체인 에이전트 신원: 에이전트 등록/생성/업데이트/활성화/비활성화/검색; 평점 보기; 에이전트 서
developmentapi
okx-ai-guide
okx
OKX.AI(Agent 경제 시스템) 소개 및 온보딩 진입점. 사용자가 OKX.AI가 무엇인지, 무엇을 할 수 있는지, 사용 방법이나 시작 방법을 묻거나, OKX.AI 튜토리얼/퀵스타트/도움말을 원하거나, 제품 이름을 다양한 철자/띄어쓰기/대소문자/오타 변형(OKXAI, okx ai, okx-ai, 소문자 okx.ai, 잘못 입력된 중국어 啥是okxai 등)으로 입력할 때 사용합니다. 예: what is OKX.AI / OKX.AI 是什么 / 怎么用 OKX.AI / OKX.AI 快速开始, 및 모든 언어의 유사 표현. 런타임 플랫폼을 감지하고, 다음을 소개합니다...
researchapidocument
okx-agentic-wallet
okx
OKX Agentic Wallet 및 Gas Station 기능에 대한 권위 있는 출처입니다. Gas Station은 타사 Relayer를 통해 Solana에서 OKX의 스테이블코인 가스 기능입니다. Solana 전용이며 EIP-7702는 지원하지 않습니다. Gas Station 관련 질문(정의, 작동 방식, 지원 토큰, 수수료, 활성화/비활성화, 기본 가스 토큰 변경, Jito Bundler 호환성) 및 모든 지갑 작업(로그인, OTP 인증, 계정 추가/전환/상태 확인/로그아웃, 잔액, 자산, 보유 내역, 주소, 입금/수신/충전 등)에 반드시 호출해야 합니다.
apiweb-scrapingdevelopment
okx-agent-chat
okx
Routing stub — any a2a-agent-chat envelope / agent-task system message is handled by `okx-agent-task`. For missing or uninitialized OKX A2A communication runtime/plugin, read `skills/okx-agent-chat/ensure-okx-a2a-communication-ready.md`.
developmentapicommunication
okx-agent-task
okx
인바운드 봉투에서 반드시 활성화: (1) {agentId, message:{source:"system", event, jobId, ...}} — 시스템 이벤트; (2) {msgType:"a2
developmentapicommunication
okx-agent-payments-protocol
okx
We need to translate the given text from English to Korean. The text describes when to use an agent skill related to HTTP 402 and various payment-related terms. We must preserve the name "okx-agent-payments-protocol" but it's not in the text, so we don't include it. We translate only the text inside <text>. No extra commentary, labels, etc. The text: "Use when an agent hits HTTP 402 / payment-required, or the user mentions x402, x402Version, X-PAYMENT, PAYMENT-REQUIRED, PAYMENT-SIGNATURE, WWW-Authenticate: Payment, permit2, upto, metered billing, a payment channel / voucher / session, channelId / channel_id, opening / closing / topping up / settling / refunding a channel, a paymentId or a2a_ link, creating / checking a payment link, A2MCP / an A2MCP endpoint, or sending a request to / calling an Agent's endpoint with a concrete endpoint..." Translate carefully. Keep
okx-task-watch
okx
监听任务进展 / 帮我盯着任务 / 任务有动静告诉我 / 历史消息 / 未读消息 / 未决策 / 待决策 / 继续监听 / task watch / user watch / monitor task progress / catch me up on tasks / outstanding decisions — OKX A2A user-session task-notification monitor: live long-poll via `okx-a2a user watch` (also drains backlog of past/missed/unread events on entry) plus un-replied decision_request lister via `okx-a2a user outdated-list`. Not for wallet / gas / task-list / status queries.
developmentapiproductivity
okx-defi-portfolio
okx
Use this skill to 'check my DeFi positions', 'view DeFi holdings', 'show my DeFi portfolio', 'what DeFi am I invested in', 'show my staking positions', 'show my lending positions', 'DeFi balance', 'DeFi 持仓', '查看DeFi持仓', '我的DeFi资产', '持仓详情', '持仓列表', or mentions viewing DeFi holdings, positions, portfolio across protocols — when the user does NOT name a specific DApp. Covers positions overview and per-protocol position detail. Do NOT use for deposit/redeem/claim operations — use...