{"id":44,"date":"2026-10-07T09:00:00","date_gmt":"2026-10-07T09:00:00","guid":{"rendered":"https:\/\/demo.goodlayers.com\/wardline\/homepages\/main\/stolen-session-tokens-what-mfa-does-not-stop\/"},"modified":"2026-11-01T10:44:16","modified_gmt":"2026-11-01T10:44:16","slug":"stolen-session-tokens-what-mfa-does-not-stop","status":"publish","type":"post","link":"https:\/\/demo.goodlayers.com\/wardline\/homepages\/main\/stolen-session-tokens-what-mfa-does-not-stop\/","title":{"rendered":"Stolen session tokens: what MFA does not stop"},"content":{"rendered":"<p>Multi-factor sign-in protects the login. It does nothing for the session that login creates. If someone copies that session, they arrive already signed in.<\/p>\n<p>We see this most often in mailboxes. A staff member follows a link to a page that looks like their sign-in screen. They enter their password and approve the prompt, and the page passes both to the real service while keeping the session token it gets back.<\/p>\n<p>Nothing has failed from the user&#8217;s side. They signed in, they saw their inbox, and they went back to work. MFA did its job. The token is now on someone else&#8217;s machine, and it stays valid until it expires or is revoked.<\/p>\n<h2>What it looks like in the logs<\/h2>\n<p>The sign-in itself looks normal. The clue comes a few minutes later, when the same session shows up somewhere else. These are the four signs we check first:<\/p>\n<ul>\n<li>One session ID seen from two networks inside ten minutes.<\/li>\n<li>A new device or browser on a session that did not start with a sign-in.<\/li>\n<li>A mailbox rule created in the first hour of the session.<\/li>\n<li>Mail read in bulk at a pace no person keeps up.<\/li>\n<\/ul>\n<blockquote><p>The login was clean. The session was not. Watch both.<\/p><\/blockquote>\n<h2>A query to start from<\/h2>\n<p>Most log tools can answer the first question on that list. Here it is as pseudocode, so you can adapt it to yours. Expect a few false alarms from people moving between office and phone networks.<\/p>\n<pre><code># One session, two networks, ten minutes\nsignins\n| where result == \"success\"\n| group by session_id\n| where count_distinct(network) &gt; 1\n| where max(time) - min(time) &lt; 10m\n| show user, session_id, network, time<\/code><\/pre>\n<p class=\"wp-caption-text\">Pseudocode, not tied to one product. Sample only.<\/p>\n<h2>What to do this month<\/h2>\n<p>You do not need a new product for most of this. Three changes cover the common cases, and your identity provider probably already has the settings.<\/p>\n<ul>\n<li>Move finance and admin staff to hardware keys, which will not sign in to a lookalike page.<\/li>\n<li>Shorten session lifetimes for admin roles.<\/li>\n<li>Make sure someone can revoke sessions at 2 a.m., and has practised it. Changing a password alone may not end a live session.<\/li>\n<\/ul>\n<p>If you find a session you cannot explain, revoke it first and ask questions second. A signed-out user is a small problem. You can always apologise in the morning.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Multi-factor sign-in protects the login. It does nothing for the session that login creates. What to change, in order of effort.<\/p>\n","protected":false},"author":2,"featured_media":29,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[3],"class_list":["post-44","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-identity","tag-field-notes"],"_links":{"self":[{"href":"https:\/\/demo.goodlayers.com\/wardline\/homepages\/main\/wp-json\/wp\/v2\/posts\/44","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.goodlayers.com\/wardline\/homepages\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/demo.goodlayers.com\/wardline\/homepages\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/demo.goodlayers.com\/wardline\/homepages\/main\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.goodlayers.com\/wardline\/homepages\/main\/wp-json\/wp\/v2\/comments?post=44"}],"version-history":[{"count":2,"href":"https:\/\/demo.goodlayers.com\/wardline\/homepages\/main\/wp-json\/wp\/v2\/posts\/44\/revisions"}],"predecessor-version":[{"id":185,"href":"https:\/\/demo.goodlayers.com\/wardline\/homepages\/main\/wp-json\/wp\/v2\/posts\/44\/revisions\/185"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/demo.goodlayers.com\/wardline\/homepages\/main\/wp-json\/wp\/v2\/media\/29"}],"wp:attachment":[{"href":"https:\/\/demo.goodlayers.com\/wardline\/homepages\/main\/wp-json\/wp\/v2\/media?parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/demo.goodlayers.com\/wardline\/homepages\/main\/wp-json\/wp\/v2\/categories?post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/demo.goodlayers.com\/wardline\/homepages\/main\/wp-json\/wp\/v2\/tags?post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}