{"id":44,"date":"2026-10-30T13:46:17","date_gmt":"2026-10-30T13:46:17","guid":{"rendered":"https:\/\/erkanozdogan.com\/blog\/binance-polymarket-breaches-five-trust-boundaries-october-2026\/"},"modified":"2026-10-30T13:46:17","modified_gmt":"2026-10-30T13:46:17","slug":"binance-polymarket-breaches-five-trust-boundaries-october-2026","status":"publish","type":"post","link":"https:\/\/erkanozdogan.com\/blog\/binance-polymarket-breaches-five-trust-boundaries-october-2026\/","title":{"rendered":"Inside the Binance and Polymarket breaches: five trust boundaries, and how to hold each one"},"content":{"rendered":"<p class=\"lead\">Security reviews usually ask &#8220;what can an attacker break?&#8221;. The two incidents of 29 October 2026 are a reminder to ask a different question: &#8220;what do we already trust, and what could it do if it turned?&#8221;. At Polymarket the answer was a performance monitoring script that ran inside every logged-in page. At Binance, on the company&#8217;s preliminary account, it was a path that started on an engineer&#8217;s laptop and ended in the ability to submit withdrawals. This post walks through both attacks as a chain of five trust boundaries, shows the server and code controls that hold each boundary, and ends with a response plan and a tool to audit the scripts on your own pages.<\/p>\n<div class=\"tldr\">\n<p class=\"tldr-label\">TL;DR<\/p>\n<ul>\n<li>Polymarket lost about 2.5 million dollars when a DebugBear RUM script it loaded was swapped for code that used open sessions to sell positions and move tokens; trading stopped for about an hour.<\/li>\n<li>Binance estimates about 6.3 billion dollars of impact across ten chains, with about 3 billion frozen; its early view is a compromised DevOps laptop leading to a container that could submit withdrawals.<\/li>\n<li>Five boundaries failed or were bypassed: the device, the pipeline, third-party code, the user session, and the brake that should stop abnormal volume.<\/li>\n<li>Each boundary has a known control: managed devices and short-lived access, split signing and approval, SRI plus CSP, step-up authentication, and velocity limits with a kill switch.<\/li>\n<li>The audit tool below lists every third-party script in a page&#8217;s HTML, flags missing SRI and drafts a starting CSP.<\/li>\n<\/ul>\n<\/div>\n<h2>The two incidents in brief<\/h2>\n<p><strong>Polymarket, 17:30 to 19:05 UTC.<\/strong> DebugBear is a UK company whose real-user-monitoring (RUM) product is embedded with a script tag. The copy served to polymarket.com was replaced with malicious JavaScript. It detected logged-in users, read their positions and balances, then used the session already present to sell positions or send prediction-market tokens to an attacker address, reporting back to a DebugBear subdomain. Polymarket removed the script in a build at 17:59 UTC, switched to cancel-only mode at about 18:05 and resumed trading at about 19:05. Trackers put losses at about 2.2 to 2.75 million dollars across roughly 700 addresses. Polymarket says everyone affected will be made whole; DebugBear told RUM customers to remove its embed code.<\/p>\n<p><strong>Binance, from about 20:05 UTC.<\/strong> Hot wallet outflows began, most of them within about 20 minutes, across ten blockchains according to TRM Labs. Binance&#8217;s preliminary investigation, as reported, points to a compromised DevOps engineer&#8217;s laptop that may have reached a service container able to submit withdrawal transactions. On Ethereum the attacker reportedly used an EIP-7702 delegation so a hot wallet forwarded funds to a malicious contract. Circle and Tether froze more than 2.3 billion dollars in stablecoins, Binance paused withdrawals, estimated about 6.3 billion dollars of impact with about 3 billion frozen, and said it found no evidence of leaked private keys. TRM Labs and Chainalysis attribute the theft to North Korea&#8217;s TraderTraitor; Binance has not confirmed that.<\/p>\n<p>The incidents are not known to be connected. What links them is the shape of the failure.<\/p>\n<figure class=\"wp-block-image size-full gitm-figure\"><svg role=\"img\" aria-label=\"The Binance and Polymarket attack chains as five links each, with the control that could break each link\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 1600 720\"><rect width=\"1600\" height=\"720\" fill=\"#fff\"\/><text x=\"80\" y=\"80\" font-family=\"Arial, Helvetica, sans-serif\" font-size=\"40\" font-weight=\"700\" letter-spacing=\"-1.5\" fill=\"#111820\" text-anchor=\"start\">Two chains, five places to break them<\/text><text x=\"80\" y=\"122\" font-family=\"Menlo, monospace\" font-size=\"18\" font-weight=\"400\" letter-spacing=\"2\" fill=\"#84909a\" text-anchor=\"start\">WHERE EACH ATTACK COULD HAVE BEEN STOPPED<\/text><text x=\"80\" y=\"200\" font-family=\"Menlo, monospace\" font-size=\"17\" font-weight=\"700\" letter-spacing=\"3\" fill=\"#c62828\" text-anchor=\"start\">BINANCE<\/text><rect x=\"75\" y=\"220\" width=\"250\" height=\"60\" rx=\"4\" fill=\"#fff\" stroke=\"#111820\" stroke-width=\"2\"\/><text x=\"200\" y=\"257\" font-family=\"Arial, Helvetica, sans-serif\" font-size=\"18\" font-weight=\"700\" letter-spacing=\"0\" fill=\"#111820\" text-anchor=\"middle\">Engineer laptop<\/text><line x1=\"325\" y1=\"250\" x2=\"375\" y2=\"250\" stroke=\"#c4ccd3\" stroke-width=\"3\"\/><rect x=\"375\" y=\"220\" width=\"250\" height=\"60\" rx=\"4\" fill=\"#fff\" stroke=\"#111820\" stroke-width=\"2\"\/><text x=\"500\" y=\"257\" font-family=\"Arial, Helvetica, sans-serif\" font-size=\"18\" font-weight=\"700\" letter-spacing=\"0\" fill=\"#111820\" text-anchor=\"middle\">Service container<\/text><line x1=\"625\" y1=\"250\" x2=\"675\" y2=\"250\" stroke=\"#c4ccd3\" stroke-width=\"3\"\/><rect x=\"675\" y=\"220\" width=\"250\" height=\"60\" rx=\"4\" fill=\"#fff\" stroke=\"#111820\" stroke-width=\"2\"\/><text x=\"800\" y=\"257\" font-family=\"Arial, Helvetica, sans-serif\" font-size=\"18\" font-weight=\"700\" letter-spacing=\"0\" fill=\"#111820\" text-anchor=\"middle\">Signing pipeline<\/text><line x1=\"925\" y1=\"250\" x2=\"975\" y2=\"250\" stroke=\"#c4ccd3\" stroke-width=\"3\"\/><rect x=\"975\" y=\"220\" width=\"250\" height=\"60\" rx=\"4\" fill=\"#fff\" stroke=\"#111820\" stroke-width=\"2\"\/><text x=\"1100\" y=\"257\" font-family=\"Arial, Helvetica, sans-serif\" font-size=\"18\" font-weight=\"700\" letter-spacing=\"0\" fill=\"#111820\" text-anchor=\"middle\">Hot wallet<\/text><line x1=\"1225\" y1=\"250\" x2=\"1275\" y2=\"250\" stroke=\"#c4ccd3\" stroke-width=\"3\"\/><rect x=\"1275\" y=\"220\" width=\"250\" height=\"60\" rx=\"4\" fill=\"#fff\" stroke=\"#c62828\" stroke-width=\"2\"\/><text x=\"1400\" y=\"257\" font-family=\"Arial, Helvetica, sans-serif\" font-size=\"18\" font-weight=\"700\" letter-spacing=\"0\" fill=\"#c62828\" text-anchor=\"middle\">Outflow<\/text><line x1=\"200\" y1=\"280\" x2=\"200\" y2=\"320\" stroke=\"#175cff\" stroke-width=\"2\" stroke-dasharray=\"4 4\"\/><rect x=\"75\" y=\"320\" width=\"250\" height=\"44\" rx=\"22\" fill=\"#175cff\" fill-opacity=\"0.08\" stroke=\"#175cff\" stroke-width=\"2\"\/><text x=\"200\" y=\"348\" font-family=\"Arial, Helvetica, sans-serif\" font-size=\"15\" font-weight=\"700\" letter-spacing=\"0\" fill=\"#175cff\" text-anchor=\"middle\">Managed device<\/text><line x1=\"500\" y1=\"280\" x2=\"500\" y2=\"320\" stroke=\"#175cff\" stroke-width=\"2\" stroke-dasharray=\"4 4\"\/><rect x=\"375\" y=\"320\" width=\"250\" height=\"44\" rx=\"22\" fill=\"#175cff\" fill-opacity=\"0.08\" stroke=\"#175cff\" stroke-width=\"2\"\/><text x=\"500\" y=\"348\" font-family=\"Arial, Helvetica, sans-serif\" font-size=\"15\" font-weight=\"700\" letter-spacing=\"0\" fill=\"#175cff\" text-anchor=\"middle\">Bastion + short certs<\/text><line x1=\"800\" y1=\"280\" x2=\"800\" y2=\"320\" stroke=\"#175cff\" stroke-width=\"2\" stroke-dasharray=\"4 4\"\/><rect x=\"675\" y=\"320\" width=\"250\" height=\"44\" rx=\"22\" fill=\"#175cff\" fill-opacity=\"0.08\" stroke=\"#175cff\" stroke-width=\"2\"\/><text x=\"800\" y=\"348\" font-family=\"Arial, Helvetica, sans-serif\" font-size=\"15\" font-weight=\"700\" letter-spacing=\"0\" fill=\"#175cff\" text-anchor=\"middle\">Second approval<\/text><line x1=\"1100\" y1=\"280\" x2=\"1100\" y2=\"320\" stroke=\"#175cff\" stroke-width=\"2\" stroke-dasharray=\"4 4\"\/><rect x=\"975\" y=\"320\" width=\"250\" height=\"44\" rx=\"22\" fill=\"#175cff\" fill-opacity=\"0.08\" stroke=\"#175cff\" stroke-width=\"2\"\/><text x=\"1100\" y=\"348\" font-family=\"Arial, Helvetica, sans-serif\" font-size=\"15\" font-weight=\"700\" letter-spacing=\"0\" fill=\"#175cff\" text-anchor=\"middle\">Velocity limit<\/text><line x1=\"1400\" y1=\"280\" x2=\"1400\" y2=\"320\" stroke=\"#175cff\" stroke-width=\"2\" stroke-dasharray=\"4 4\"\/><rect x=\"1275\" y=\"320\" width=\"250\" height=\"44\" rx=\"22\" fill=\"#175cff\" fill-opacity=\"0.08\" stroke=\"#175cff\" stroke-width=\"2\"\/><text x=\"1400\" y=\"348\" font-family=\"Arial, Helvetica, sans-serif\" font-size=\"15\" font-weight=\"700\" letter-spacing=\"0\" fill=\"#175cff\" text-anchor=\"middle\">Kill switch<\/text><text x=\"80\" y=\"470\" font-family=\"Menlo, monospace\" font-size=\"17\" font-weight=\"700\" letter-spacing=\"3\" fill=\"#d68a00\" text-anchor=\"start\">POLYMARKET<\/text><rect x=\"75\" y=\"490\" width=\"250\" height=\"60\" rx=\"4\" fill=\"#fff\" stroke=\"#111820\" stroke-width=\"2\"\/><text x=\"200\" y=\"527\" font-family=\"Arial, Helvetica, sans-serif\" font-size=\"18\" font-weight=\"700\" letter-spacing=\"0\" fill=\"#111820\" text-anchor=\"middle\">Vendor CDN<\/text><line x1=\"325\" y1=\"520\" x2=\"375\" y2=\"520\" stroke=\"#c4ccd3\" stroke-width=\"3\"\/><rect x=\"375\" y=\"490\" width=\"250\" height=\"60\" rx=\"4\" fill=\"#fff\" stroke=\"#111820\" stroke-width=\"2\"\/><text x=\"500\" y=\"527\" font-family=\"Arial, Helvetica, sans-serif\" font-size=\"18\" font-weight=\"700\" letter-spacing=\"0\" fill=\"#111820\" text-anchor=\"middle\">RUM script<\/text><line x1=\"625\" y1=\"520\" x2=\"675\" y2=\"520\" stroke=\"#c4ccd3\" stroke-width=\"3\"\/><rect x=\"675\" y=\"490\" width=\"250\" height=\"60\" rx=\"4\" fill=\"#fff\" stroke=\"#111820\" stroke-width=\"2\"\/><text x=\"800\" y=\"527\" font-family=\"Arial, Helvetica, sans-serif\" font-size=\"18\" font-weight=\"700\" letter-spacing=\"0\" fill=\"#111820\" text-anchor=\"middle\">Logged-in page<\/text><line x1=\"925\" y1=\"520\" x2=\"975\" y2=\"520\" stroke=\"#c4ccd3\" stroke-width=\"3\"\/><rect x=\"975\" y=\"490\" width=\"250\" height=\"60\" rx=\"4\" fill=\"#fff\" stroke=\"#111820\" stroke-width=\"2\"\/><text x=\"1100\" y=\"527\" font-family=\"Arial, Helvetica, sans-serif\" font-size=\"18\" font-weight=\"700\" letter-spacing=\"0\" fill=\"#111820\" text-anchor=\"middle\">Session authority<\/text><line x1=\"1225\" y1=\"520\" x2=\"1275\" y2=\"520\" stroke=\"#c4ccd3\" stroke-width=\"3\"\/><rect x=\"1275\" y=\"490\" width=\"250\" height=\"60\" rx=\"4\" fill=\"#fff\" stroke=\"#d68a00\" stroke-width=\"2\"\/><text x=\"1400\" y=\"527\" font-family=\"Arial, Helvetica, sans-serif\" font-size=\"18\" font-weight=\"700\" letter-spacing=\"0\" fill=\"#d68a00\" text-anchor=\"middle\">Outflow<\/text><line x1=\"200\" y1=\"550\" x2=\"200\" y2=\"590\" stroke=\"#175cff\" stroke-width=\"2\" stroke-dasharray=\"4 4\"\/><rect x=\"75\" y=\"590\" width=\"250\" height=\"44\" rx=\"22\" fill=\"#175cff\" fill-opacity=\"0.08\" stroke=\"#175cff\" stroke-width=\"2\"\/><text x=\"200\" y=\"618\" font-family=\"Arial, Helvetica, sans-serif\" font-size=\"15\" font-weight=\"700\" letter-spacing=\"0\" fill=\"#175cff\" text-anchor=\"middle\">Self-host or SRI<\/text><line x1=\"500\" y1=\"550\" x2=\"500\" y2=\"590\" stroke=\"#175cff\" stroke-width=\"2\" stroke-dasharray=\"4 4\"\/><rect x=\"375\" y=\"590\" width=\"250\" height=\"44\" rx=\"22\" fill=\"#175cff\" fill-opacity=\"0.08\" stroke=\"#175cff\" stroke-width=\"2\"\/><text x=\"500\" y=\"618\" font-family=\"Arial, Helvetica, sans-serif\" font-size=\"15\" font-weight=\"700\" letter-spacing=\"0\" fill=\"#175cff\" text-anchor=\"middle\">CSP script-src<\/text><line x1=\"800\" y1=\"550\" x2=\"800\" y2=\"590\" stroke=\"#175cff\" stroke-width=\"2\" stroke-dasharray=\"4 4\"\/><rect x=\"675\" y=\"590\" width=\"250\" height=\"44\" rx=\"22\" fill=\"#175cff\" fill-opacity=\"0.08\" stroke=\"#175cff\" stroke-width=\"2\"\/><text x=\"800\" y=\"618\" font-family=\"Arial, Helvetica, sans-serif\" font-size=\"15\" font-weight=\"700\" letter-spacing=\"0\" fill=\"#175cff\" text-anchor=\"middle\">connect-src allowlist<\/text><line x1=\"1100\" y1=\"550\" x2=\"1100\" y2=\"590\" stroke=\"#175cff\" stroke-width=\"2\" stroke-dasharray=\"4 4\"\/><rect x=\"975\" y=\"590\" width=\"250\" height=\"44\" rx=\"22\" fill=\"#175cff\" fill-opacity=\"0.08\" stroke=\"#175cff\" stroke-width=\"2\"\/><text x=\"1100\" y=\"618\" font-family=\"Arial, Helvetica, sans-serif\" font-size=\"15\" font-weight=\"700\" letter-spacing=\"0\" fill=\"#175cff\" text-anchor=\"middle\">Step-up auth<\/text><line x1=\"1400\" y1=\"550\" x2=\"1400\" y2=\"590\" stroke=\"#175cff\" stroke-width=\"2\" stroke-dasharray=\"4 4\"\/><rect x=\"1275\" y=\"590\" width=\"250\" height=\"44\" rx=\"22\" fill=\"#175cff\" fill-opacity=\"0.08\" stroke=\"#175cff\" stroke-width=\"2\"\/><text x=\"1400\" y=\"618\" font-family=\"Arial, Helvetica, sans-serif\" font-size=\"15\" font-weight=\"700\" letter-spacing=\"0\" fill=\"#175cff\" text-anchor=\"middle\">Kill switch<\/text><\/svg><figcaption>The Binance and Polymarket attack chains as five links each, with the control that could break each link<\/figcaption><\/figure>\n<h2>Boundary 1: the device that holds production access<\/h2>\n<p>If Binance&#8217;s preliminary account holds, everything started on a laptop. That is not unusual: most serious intrusions of the last few years began on an employee device, through a malicious package, a fake job test, a browser extension or a stolen session cookie. The question is what that device can reach.<\/p>\n<ul>\n<li><strong>Manage it like a server.<\/strong> Disk encryption, endpoint detection, enforced updates, and a separate browser profile or a separate machine for production consoles.<\/li>\n<li><strong>Keep secrets off it.<\/strong> No long-lived SSH keys, cloud keys or kubeconfigs on disk. Use short-lived certificates from an SSH certificate authority, hardware security keys, and SSO sessions that expire.<\/li>\n<li><strong>Route through a bastion.<\/strong> Production should only accept connections from a jump host or VPN with multi-factor login, so that a laptop on its own reaches nothing.<\/li>\n<\/ul>\n<pre><code># an SSH certificate valid for 8 hours instead of a permanent key\nssh-keygen -s ca_user_key -I alice@laptop -n deploy -V +8h ~\/.ssh\/id_ed25519.pub<\/code><\/pre>\n<h2>Boundary 2: the pipeline that signs or deploys<\/h2>\n<p>The reported Binance path ran from the laptop to a service container that was allowed to submit withdrawals. In most companies the equivalent is a CI\/CD runner, a deploy bot, or a payment worker. The design mistake is the same everywhere: the component that asks for a high-value action is also the one that can complete it.<\/p>\n<ul>\n<li><strong>Separate request from approval.<\/strong> A withdrawal service should create a request; a separate signer, on separate infrastructure, should decide whether to sign it, applying its own rules.<\/li>\n<li><strong>Make the signer opinionated.<\/strong> It should refuse unknown destinations, amounts above a threshold without a second approval, and anything outside normal hours or volume.<\/li>\n<li><strong>Audit the pipeline like a perimeter.<\/strong> Who can exec into the container, which images it runs, which tokens it mounts, and whether every action is logged somewhere the container cannot delete.<\/li>\n<li><strong>Review delegation features.<\/strong> Account abstraction features such as EIP-7702 are powerful precisely because they let one signature change how an account behaves. Pre-signed authorizations are a standing risk; keep them rare, scoped and short-lived.<\/li>\n<\/ul>\n<h2>Boundary 3: the code your page loads from someone else<\/h2>\n<p>This is the Polymarket boundary, and the one most web teams share. A script tag pointing at a vendor&#8217;s CDN means the vendor can change your page at any moment. The browser makes no distinction between your code and theirs.<\/p>\n<ul>\n<li><strong>Inventory and cut.<\/strong> List every third-party script on logged-in pages and give each an owner. Remove anything that is not essential. Monitoring and analytics are rarely essential on a page that moves money.<\/li>\n<li><strong>Self-host or pin.<\/strong> Copy the script into your own build, or load it with Subresource Integrity so the browser refuses any version that does not match the hash.<\/li>\n<li><strong>Restrict with CSP.<\/strong> A Content Security Policy limits where scripts load from and, just as important, where the page can send data.<\/li>\n<\/ul>\n<pre><code>&lt;script src=\"https:\/\/cdn.vendor.example\/rum.js\"\n        integrity=\"sha384-BASE64HASH\"\n        crossorigin=\"anonymous\"&gt;&lt;\/script&gt;<\/code><\/pre>\n<pre><code># Apache: start in report-only mode, then switch to Content-Security-Policy\nHeader always set Content-Security-Policy-Report-Only \"default-src 'self'; script-src 'self' https:\/\/cdn.vendor.example; connect-src 'self' https:\/\/api.example.com; report-uri \/csp-report\"<\/code><\/pre>\n<p>SRI has a limit: it only works for files that do not change between deploys, which is exactly what many vendors avoid, because they ship updates to the same URL. That is a reason to self-host, not a reason to skip SRI. The <code>connect-src<\/code> directive matters too. The Polymarket script sent data back to a vendor subdomain; a policy that lists only your own APIs makes new destinations visible in reports, even if the vendor&#8217;s own domain is allowed. Third-party code is a supply chain like any other; our <a href=\"\/blog\/october-2026-patch-tracker-upstream-to-your-stack\/\">October 2026 patch tracker<\/a> shows how slowly fixes can travel through it, and <a href=\"\/blog\/emudhra-trust-stores-nodejs-java-bind-october-2026-developers\/\">the eMudhra trust store post<\/a> covers the same lesson for certificates.<\/p>\n<h2>Boundary 4: the session that acts for the user<\/h2>\n<p>The malicious Polymarket script did not need passwords. It used the authority that the logged-in page already had. Any web app where a session can move money, change payout details or create API keys has the same exposure to cross-site scripting, malicious extensions and compromised scripts.<\/p>\n<ul>\n<li><strong>Require step-up authentication<\/strong> for withdrawals, transfers, payout address changes and key creation. A passkey prompt is something injected JavaScript cannot complete on its own.<\/li>\n<li><strong>Bind the confirmation to the action.<\/strong> Show the exact amount and destination in the confirmation and sign that, so a script cannot swap details after the user agrees.<\/li>\n<li><strong>Scope session tokens.<\/strong> A token used to read a portfolio should not also be able to sell it. Separate read and write scopes, and keep write tokens short-lived.<\/li>\n<li><strong>Watch per-account behaviour.<\/strong> Hundreds of accounts selling everything to new addresses within minutes is a signal that can trigger an automatic hold.<\/li>\n<\/ul>\n<h2>Boundary 5: the brake<\/h2>\n<p>Both companies stopped the bleeding by pausing: Polymarket with cancel-only mode within minutes of the fix, Binance by pausing withdrawals. The brake is a boundary in its own right, and most teams have never tested theirs.<\/p>\n<ul>\n<li><strong>Velocity limits in code:<\/strong> maximum value per minute and per hour, per wallet and globally, with an automatic pause when crossed.<\/li>\n<li><strong>Kill switches as configuration:<\/strong> a flag that drops a third-party tag, revokes all sessions, or stops payouts, without a deploy.<\/li>\n<li><strong>Rehearsal:<\/strong> run the switch in a game day each quarter, so the first time you use it is not during an incident.<\/li>\n<\/ul>\n<h2>Which control would have broken which chain?<\/h2>\n<div class=\"table-wrap\">\n<table>\n<thead>\n<tr>\n<th>Control<\/th>\n<th>Polymarket chain<\/th>\n<th>Binance chain<\/th>\n<th>Where it lives<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Fewer third-party scripts<\/td>\n<td>Removes the entry point<\/td>\n<td>Not relevant<\/td>\n<td>Application<\/td>\n<\/tr>\n<tr>\n<td>Self-hosting or SRI<\/td>\n<td>Blocks a swapped file<\/td>\n<td>Not relevant<\/td>\n<td>Application<\/td>\n<\/tr>\n<tr>\n<td>CSP script-src and connect-src<\/td>\n<td>Limits loading and data exfiltration<\/td>\n<td>Not relevant<\/td>\n<td>Web server<\/td>\n<\/tr>\n<tr>\n<td>Step-up authentication<\/td>\n<td>Stops session-riding transactions<\/td>\n<td>Not relevant<\/td>\n<td>Application<\/td>\n<\/tr>\n<tr>\n<td>Managed device, short-lived access<\/td>\n<td>Protects the vendor&#8217;s own systems<\/td>\n<td>Removes reusable access on the laptop<\/td>\n<td>Operations<\/td>\n<\/tr>\n<tr>\n<td>Split request and signing<\/td>\n<td>Not relevant<\/td>\n<td>Container cannot complete a withdrawal<\/td>\n<td>Infrastructure<\/td>\n<\/tr>\n<tr>\n<td>Velocity limits and automatic pause<\/td>\n<td>Caps mass selling<\/td>\n<td>Caps the 20-minute outflow<\/td>\n<td>Application and infrastructure<\/td>\n<\/tr>\n<tr>\n<td>Tested kill switch<\/td>\n<td>Faster than a build<\/td>\n<td>Faster than a manual pause<\/td>\n<td>Both<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>Audit the scripts on your own pages<\/h2>\n<p>Open a logged-in page of your application, view its source, and paste it below together with your domain. The tool lists every script from another origin, marks the ones without SRI, and drafts a starting <code>script-src<\/code> for your CSP. It runs in your browser and sends nothing.<\/p>\n<div class=\"gitm-widget\" data-widget=\"script-audit\"><\/div>\n<h2>An hour-by-hour response plan<\/h2>\n<div class=\"table-wrap\">\n<table>\n<thead>\n<tr>\n<th>When<\/th>\n<th>Server and operations<\/th>\n<th>Application and code<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Minute 0 to 15<\/td>\n<td>Pause payouts or withdrawals; isolate the suspect device from the network<\/td>\n<td>Remove the suspect script with a flag or a hotfix; switch to read-only or cancel-only<\/td>\n<\/tr>\n<tr>\n<td>Minute 15 to 60<\/td>\n<td>Revoke the device&#8217;s VPN, SSH certificates, SSO sessions and cloud tokens<\/td>\n<td>Invalidate all user sessions; rotate API keys the page could reach<\/td>\n<\/tr>\n<tr>\n<td>Hour 1 to 6<\/td>\n<td>Capture disk and memory images; pull bastion, container and signer logs<\/td>\n<td>Save the malicious script as served; pull CDN and CSP report logs<\/td>\n<\/tr>\n<tr>\n<td>Hour 6 to 24<\/td>\n<td>Request freezes from issuers, exchanges or payment processors; notify law enforcement<\/td>\n<td>Identify affected accounts from transaction logs; publish a clear user notice<\/td>\n<\/tr>\n<tr>\n<td>Day 2 to 3<\/td>\n<td>Rebuild devices and containers from known-good images; re-issue every credential<\/td>\n<td>Ship SRI, CSP and step-up authentication before reopening; reopen in stages<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>The order matters more than the speed. Pausing first and investigating second is what kept both incidents from growing, and preserving evidence before rebuilding is what will make the post-mortems possible.<\/p>\n<h2>A field note from these two blogs<\/h2>\n<p>When the DebugBear news broke, we ran the same audit on this site and on adnancanturk.com. Neither loads any third-party script: no analytics, no RUM, no tag manager, no web font CDN. The only external links in the page head point to our own domain, and the interactive tools in these posts, including the one above, are a small file served from our own server. We did not design it this way for security alone; fewer requests also make pages faster. But it means a compromised vendor has nothing to inject into, and it is a cheap property to keep. If you need monitoring, the server&#8217;s own logs and a self-hosted collector give you most of the value without handing your page to someone else&#8217;s CDN.<\/p>\n<h2>What users of the two platforms should do<\/h2>\n<p>Use the official apps and sites only, and treat any message offering help with recovery as phishing. Follow Binance&#8217;s announcements for withdrawal status and Polymarket&#8217;s for reimbursement. Reports say the Polymarket script abused existing sessions rather than approvals, so reviewing account activity is more useful than revoking approvals. This is not financial advice.<\/p>\n<h2>The short version<\/h2>\n<p>Every link in both chains was something the victim had chosen to trust: a vendor&#8217;s script, a logged-in session, an engineer&#8217;s device, a container that could submit withdrawals. None of those choices is wrong on its own. What failed was the assumption that trust, once granted, never needs a second check. Short-lived access, split approval, pinned or self-hosted code, step-up authentication and a tested brake are each a second check, and together they turn a twenty-minute disaster into a contained incident.<\/p>\n<h2 id=\"faq-five-trust-boundaries\">FAQ: the Binance and Polymarket breaches for developers and operators<\/h2>\n<h3 id=\"faq-what-is-debugbear-rum\">What is DebugBear and why did its script affect Polymarket?<\/h3>\n<p>DebugBear is a UK website performance monitoring company. Its real-user-monitoring product is a script customers embed in their pages. When the copy served to polymarket.com was replaced with malicious code, it ran with the same trust as Polymarket&#8217;s own code inside every logged-in page.<\/p>\n<h3 id=\"faq-was-it-smart-contract-bug\">Was either attack a smart contract bug?<\/h3>\n<p>No. Polymarket&#8217;s losses came from a malicious script abusing open sessions, and Binance&#8217;s reported path ran through a laptop and a service container that could submit withdrawals. Both abused access that was already trusted rather than breaking code on the chain.<\/p>\n<h3 id=\"faq-sri-vendor-updates\">Does Subresource Integrity work with vendor scripts that update often?<\/h3>\n<p>Only if the file at a given URL never changes. Vendors that ship updates to the same URL break SRI, which is a strong argument for self-hosting the script and updating it deliberately, so you control when new code reaches your users.<\/p>\n<h3 id=\"faq-csp-stop-attack\">Would a Content Security Policy have stopped the Polymarket attack?<\/h3>\n<p>Not on its own if the vendor domain was allowed, because the malicious file came from that domain. A tight <code>connect-src<\/code> would have limited where data could be sent, and SRI or self-hosting would have refused the changed file. CSP is one layer, not the whole fix.<\/p>\n<h3 id=\"faq-what-is-eip-7702\">What is EIP-7702 and how was it involved at Binance?<\/h3>\n<p>EIP-7702 lets an Ethereum account delegate its execution to contract code. Reports say the attacker used it so a Binance hot wallet pointed at a malicious contract that swept incoming funds. Binance has not published the full technical details yet.<\/p>\n<h3 id=\"faq-step-up-authentication\">What is step-up authentication and when should an app require it?<\/h3>\n<p>It is a fresh check, such as a passkey or second factor, required before a sensitive action even when the user is already logged in. Require it for withdrawals, transfers, payout address changes, API key creation and changes to security settings.<\/p>\n<h3 id=\"faq-short-lived-ssh-certificates\">Why use short-lived SSH certificates instead of SSH keys?<\/h3>\n<p>A permanent key on a stolen laptop keeps working until someone notices and removes it everywhere. A certificate that expires after a few hours stops working on its own, so the window an attacker gets from a stolen device is small by design.<\/p>\n<h3 id=\"faq-velocity-limits-design\">How should velocity limits be designed for payouts or withdrawals?<\/h3>\n<p>Set limits per minute and per hour, per account and globally, add delays for new destinations, and pause automatically when a limit is crossed. Keep the limit logic in the signer or payment service, not in the component that requests the payout.<\/p>\n<h3 id=\"faq-find-third-party-scripts\">How do I find every third-party script my site loads?<\/h3>\n<p>Check the page source and the browser&#8217;s network panel on logged-in pages, then deploy a CSP in report-only mode and read the reports for a week. Tag managers can load further scripts at runtime, so the network panel and CSP reports catch what the source alone misses.<\/p>\n<h3 id=\"faq-incident-order-of-work\">What is the right order of work in the first hour of an incident?<\/h3>\n<p>Pause the path that moves money or data, remove or isolate the compromised component, revoke the sessions and credentials it could use, and preserve evidence. Investigation, freezes and user communication follow once the damage has stopped growing.<\/p>\n<h2>Sources<\/h2>\n<ul class=\"sources\">\n<li><a href=\"https:\/\/www.bleepingcomputer.com\/news\/security\/polymarket-halts-trading-after-crypto-draining-script-breach-25m-traced\/\" rel=\"noopener\" target=\"_blank\">Polymarket halts trading after crypto-draining script breach<\/a>, BleepingComputer<\/li>\n<li><a href=\"https:\/\/www.securityweek.com\/2-million-drained-from-polymarket-traders-in-new-supply-chain-attack\/\" rel=\"noopener\" target=\"_blank\">Polymarket traders drained in supply chain attack<\/a>, SecurityWeek<\/li>\n<li><a href=\"https:\/\/finance.yahoo.com\/markets\/crypto\/articles\/binance-6-3-billion-hack-083916125.html\" rel=\"noopener\" target=\"_blank\">Binance 6.3 billion dollar breach, TRM Labs analysis<\/a>, Yahoo Finance<\/li>\n<li><a href=\"https:\/\/techcrunch.com\/2026\/10\/29\/binance-pauses-withdrawals-as-hackers-suspected-of-stealing-billions-in-crypto\/\" rel=\"noopener\" target=\"_blank\">Binance pauses withdrawals<\/a>, TechCrunch<\/li>\n<li><a href=\"https:\/\/eips.ethereum.org\/EIPS\/eip-7702\" rel=\"noopener\" target=\"_blank\">EIP-7702<\/a>, Ethereum Improvement Proposals<\/li>\n<li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/Security\/Subresource_Integrity\" rel=\"noopener\" target=\"_blank\">Subresource Integrity<\/a>, MDN<\/li>\n<li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/CSP\" rel=\"noopener\" target=\"_blank\">Content Security Policy<\/a>, MDN<\/li>\n<li><a href=\"https:\/\/owasp.org\/www-project-top-ten\/\" rel=\"noopener\" target=\"_blank\">OWASP Top Ten<\/a>, OWASP<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The 29 October 2026 incidents at Polymarket and Binance did not break any cryptography. A vendor script and, reportedly, an engineer&#8217;s laptop were trusted further than they should have been. A walk through both attacks as five trust boundaries, with the server and code controls that hold each one, an hour-by-hour response plan, and a script audit tool.<\/p>\n","protected":false},"author":0,"featured_media":45,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[33,36,35,38,41,34,39,37,27,40],"class_list":["post-44","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security","tag-binance","tag-content-security-policy","tag-debugbear","tag-incident-response","tag-october-2026","tag-polymarket","tag-privileged-access","tag-subresource-integrity","tag-supply-chain","tag-web-security"],"_links":{"self":[{"href":"https:\/\/erkanozdogan.com\/blog\/wp-json\/wp\/v2\/posts\/44","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/erkanozdogan.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/erkanozdogan.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/erkanozdogan.com\/blog\/wp-json\/wp\/v2\/comments?post=44"}],"version-history":[{"count":0,"href":"https:\/\/erkanozdogan.com\/blog\/wp-json\/wp\/v2\/posts\/44\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/erkanozdogan.com\/blog\/wp-json\/wp\/v2\/media\/45"}],"wp:attachment":[{"href":"https:\/\/erkanozdogan.com\/blog\/wp-json\/wp\/v2\/media?parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/erkanozdogan.com\/blog\/wp-json\/wp\/v2\/categories?post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/erkanozdogan.com\/blog\/wp-json\/wp\/v2\/tags?post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}