应对的攻击Threats対応する攻撃撞库Credential stuffingパスワードリスト攻撃
撞库Credential stuffingパスワードリスト攻撃
攻击者以其他网站泄露的邮箱与密码成批尝试登录您的网站,命中后接管真实用户的账号,盗用其中的余额、积分与已绑定的支付方式。Zerda 在登录提交时判定请求是否来自脚本,并标出尝试多个账号的设备。Attackers try emails and passwords leaked from other sites against your login in bulk, take over the real users' accounts they hit, and use the balances, points and saved payment methods inside. Zerda judges whether each login comes from a script and flags devices that try many accounts.攻撃者は他のサイトから流出したメールアドレスとパスワードでログインを大量に試行し、一致した正規ユーザーのアカウントを乗っ取って、残高、ポイント、登録済みの支払い方法を不正に利用します。Zerda はログインの送信時にリクエストがスクリプトによるものかを判定し、多数のアカウントを試行する端末を明示します。
查看攻击演示See the attack demo攻撃のデモを見る →接入文档 →Documentation →ドキュメント →
攻击过程How the attack works攻撃の流れ
- 获取凭据Obtain credentials認証情報の入手
从公开或地下流通的泄露数据中整理邮箱与密码组合。Email and password pairs are compiled from leaked data circulating publicly or underground.公開または闇市場で流通する流出データから、メールアドレスとパスワードの組み合わせを集めます。
- 批量尝试Try in bulk大量試行
脚本经住宅代理池分散来源逐条尝试,控制单个 IP 的频次以避开限流。A script tries them one by one through residential proxy pools, keeping each IP under the rate limit.スクリプトが住宅プロキシで送信元を分散しながら 1 件ずつ試行し、IP ごとの回数をレート制限より低く抑えます。
- 接管账号Take overアカウントの乗っ取り
登录成功的账号被转售,或其中的余额与支付方式被直接盗用。Accounts that log in are resold, or their balances and payment methods are used directly.ログインに成功したアカウントは転売されるか、残高や支払い方法が直接悪用されます。
Zerda 的识别依据What Zerda checksZerda が確認すること
检测自动化框架痕迹与被篡改的浏览器属性。Traces of automation frameworks and tampered browser properties.自動化フレームワークの痕跡や、改ざんされたブラウザのプロパティを検知します。
按键时长与指针节奏不符合真人输入账号与密码的过程。Key press durations and pointer rhythm that do not fit a person typing in an email and password.キーを押している時間やポインターのリズムが、人間がメールアドレスとパスワードを入力する過程と一致しないことを捉えます。
判定住宅代理,以及同一设备短时间内的出口轮换。Residential proxies, and one device rotating exits in a short time.住宅プロキシや、同じ端末による短時間の出口の切り替えを判定します。
同一设备尝试多个账号,或同一账号出现在多台设备上,会在后台事件中标出。One device trying many accounts, or one account showing up on many devices, is flagged on the event in the console.1 台の端末で複数のアカウントを試行した場合や、1 つのアカウントが複数の端末に現れた場合は、コンソールのイベントに明示されます。
默认处置Default decisions既定の対応
以下为场景 login 的默认策略,可在后台按场景调整,或以自定义规则覆盖。The default policy for the login action is below. You can change it per action in the console or override it with custom rules.アクション login の既定のポリシーは次のとおりです。コンソールでアクションごとに変更するか、カスタムルールで上書きできます。
| 判定Verdict判定 | 默认处置Default decision既定の対応 |
|---|---|
likely_human真人Likely human人間 | allow放行Allow許可 |
suspicious可疑Suspicious疑わしい | challenge二次验证Step-up check追加認証 |
bot自动化程序Botボット | block拒绝Block拒否 |
null未取得令牌No tokenトークンなし | challenge二次验证Step-up check追加認証 |
接入Integration導入
在网页提交时取令牌,并以相同的场景名在后端核验:Request a token when the form is submitted, and verify it on your backend with the same action name:フォームの送信時にトークンを取得し、同じアクション名でバックエンドから検証します。
const token = await window.Zerda?.getToken(undefined, { action: 'login' });
curl -X POST https://api.zerda.dev/api/verify \
-H "Authorization: Bearer sk_your_secret_key" \
-H "Content-Type: application/json" \
-d '{"token":"<token>","email":"user@example.com","action":"login"}'
后端核验 →Verify on the backend →バックエンドでの検証 →规则与场景策略 →Rules and policy →ルールとアクション別ポリシー →
常见问题Questionsよくある質問
已开启两步验证,还需要防撞库吗?We already use two-factor authentication. Do we still need this?二要素認証を導入済みでも対策は必要ですか?
需要。两步验证阻止的是密码命中之后的登录;批量尝试本身仍会消耗您的资源,并可能触发账号锁定而影响真实用户。在提交时识别脚本,可在校验密码之前拦下批量尝试。Yes. Two-factor authentication stops the login after a password matches, but the bulk attempts still use your resources and can trigger account lockouts that hit real users. Catching the script at submission stops the attempts before the password is checked.必要です。二要素認証が防ぐのは、パスワードが一致した後のログインです。大量の試行そのものはサイトのリソースを消費し、アカウントロックによって正規ユーザーに影響が出ることもあります。送信時にスクリプトを識別すれば、パスワードの照合前に試行を止められます。
应在哪一步调用核验?Where in the login flow should verify be called?検証はログインのどの段階で呼び出しますか?
在校验密码之前。判定为自动化程序时直接拒绝,不进入密码校验,攻击者也就无从得知账号密码是否有效。Before the password is checked. Requests judged to be bots are refused without a password check, so the attacker never learns whether the credentials were valid.パスワードの照合前です。ボットと判定されたリクエストは照合せずに拒否するため、攻撃者は認証情報が有効かどうかを知ることができません。