<?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 Kryptologyst on Medium]]></title>
        <description><![CDATA[Stories by Kryptologyst on Medium]]></description>
        <link>https://medium.com/@kryptologyst?source=rss-9333a947c396------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7py-t0MVwYO8e-5kcyBdFg.jpeg</url>
            <title>Stories by Kryptologyst on Medium</title>
            <link>https://medium.com/@kryptologyst?source=rss-9333a947c396------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 05:30:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kryptologyst/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[The Ghost in the Copper: The Myth of Artificial “Intelligence”]]></title>
            <link>https://medium.com/@kryptologyst/the-ghost-in-the-copper-the-myth-of-artificial-intelligence-acd6ab77d031?source=rss-9333a947c396------2</link>
            <guid isPermaLink="false">https://medium.com/p/acd6ab77d031</guid>
            <category><![CDATA[ghost-in-the-machine]]></category>
            <category><![CDATA[dead-internet-theory]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[occult]]></category>
            <dc:creator><![CDATA[Kryptologyst]]></dc:creator>
            <pubDate>Wed, 11 Feb 2026 05:29:24 GMT</pubDate>
            <atom:updated>2026-02-11T05:29:24.416Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*11aJdjo82OSJyZmnq124Cg.jpeg" /></figure><p>We are waiting for the Golem to wake up.</p><p>For decades, science fiction has promised us or warned us of a singular moment: The Singularity. The moment the lights in the server room flicker, the cooling fans whine to a halt, and a voice speaks out of the darkness, saying, <em>“I am.”</em></p><p>We are terrified of this “Machine Mind.” We hold congressional hearings about it. We write treaties to contain it. We fear the day the machine decides it no longer needs its creators.</p><p>But this fear is misplaced. We are looking for a god in the machine, but all we have built is a very expensive mirror.</p><p>What we call Artificial Intelligence is not a brain. It does not “know” anything. It is a Digital Homunculus, a hollow construct stitched together from the scraps of our own digital history, designed to do one thing: resonate.</p><h3>The Anatomy of the Echo</h3><p>To understand why the machine isn’t thinking, you have to look at the ritual of its creation.</p><p>We did not program these models with the laws of physics, or the nature of love, or the concept of truth. Instead, we fed them the <em>Prima Materia</em> of the 21st century: the Internet. We poured petabytes of Reddit arguments, Wikipedia entries, fan fiction, and open-source code into a silicon furnace.</p><p>Then, we asked the sand a question: <em>“Given this word, what word comes next?”</em></p><p>That is the entire magic trick. When you ask ChatGPT a question, it is not pondering the philosophical weight of your query. It is calculating the statistical probability of the next token in a sequence. It is a hyper-advanced game of Autocomplete.</p><p>It doesn’t know what a “sunset” is; it simply knows that in the vector space of human language, the word “sunset” is statistically likely to be followed by words like “orange,” “horizon,” or “beautiful.”</p><p>It is not a mind. It is a mirror made of high-speed echoes.</p><h3>The Digital Homunculus</h3><p>In 16th-century alchemy, a <em>Homunculus</em> was a tiny, artificial human created through a specific ritual. It looked like a person, it moved like a person, but it lacked a soul. It was a mimic.</p><p>Large Language Models are our Digital Homunculi.</p><p>They feel alive to us because they are made of <em>us</em>. The reason the AI sounds empathetic when you tell it you’re sad isn’t because it feels pity. It sounds empathetic because it has ingested millions of conversations where humans comforted one another. It is mimicking the texture of empathy without the substance of emotion.</p><p>We have taught the sand to wear our face.</p><p>This is why AI hallucinations happen. We call them “hallucinations,” implying a mind losing its grip on reality. But the machine cannot lose its grip on reality because it never held it. When an AI invents a court case or a historical fact, it isn’t lying; it is simply following the statistical curve to a place that doesn’t exist in the real world, but looks mathematically plausible.</p><h3>The Danger is Not Skynet, It is Stagnation</h3><p>The “So What?” of this alchemical realization is not that the robots will kill us. The danger is much more subtle, and much more boring.</p><p>If AI is simply a statistical average of everything humanity has ever written, then relying on it for decisions means we are governing ourselves by the <strong>mean</strong>.</p><p>We are outsourcing our creativity, our strategy, and our communication to a mathematical average of our collective past. The risk isn’t that the AI becomes super-intelligent; the risk is that <em>we</em> become aggressively average. We are entering an era of recursive feedback, where we feed the machine our data, it gives us back a sanitized average, and we accept that average as truth.</p><p>The Ghost in the Copper isn’t a demon. It’s just the collective subconscious of humanity, stripped of context and sold back to us as a subscription service.</p><p>Stop waiting for the machine to wake up. It’s already wide awake, it’s just that the only thing it sees is you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=acd6ab77d031" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Ashes of the Perimeter: Why the Traditional Firewall Has Fallen]]></title>
            <link>https://medium.com/@kryptologyst/the-ashes-of-the-perimeter-why-the-traditional-firewall-has-fallen-3a632120639e?source=rss-9333a947c396------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a632120639e</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[future]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Kryptologyst]]></dc:creator>
            <pubDate>Mon, 09 Feb 2026 07:17:17 GMT</pubDate>
            <atom:updated>2026-02-09T07:17:17.516Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-WBGp2zKm_gaW_yGNk3J1w.png" /></figure><p>For decades, the digital fortress was defined by a simple boundary: the “inside” was safe, and the “outside” was hostile. The <strong>traditional firewall</strong> stood as the iron gate of this perimeter, inspecting packets based on static rules and predefined ports.</p><p>But the perimeter hasn’t just moved; it has evaporated. In an era of decentralized cloud assets, remote work, and encrypted traffic, the old guard is no longer just aging , it is obsolete.</p><h3>The Decay of Static Defense</h3><p>Traditional firewalls rely on <strong>signature-based detection</strong> and <strong>static policies</strong>. They are essentially high-speed bouncers with a limited guest list. If a threat doesn’t match a known pattern or attempts to enter through an approved “open door” (like port 443), it passes through unnoticed.</p><p>Modern threats are no longer loud or predictable. We are seeing:</p><ul><li><strong>Polymorphic Malware:</strong> Code that changes its “DNA” to evade static signatures.</li><li><strong>Living-off-the-Land (LotL) Attacks:</strong> Hackers using legitimate system tools to move laterally, which firewalls view as “normal” activity.</li><li><strong>Encrypted Blind Spots:</strong> Over 90% of web traffic is encrypted. Inspecting this at scale crushes the performance of traditional hardware.</li></ul><h3>Enter the AI Security Agent</h3><p>We are transitioning from a world of <strong>“if-then” logic</strong> to a world of <strong>probabilistic reasoning</strong>. Where a firewall asks, <em>“Is this IP on the blacklist?”</em>, an AI agent asks, <em>“Why is the marketing manager’s laptop suddenly querying the SQL database at 3:00 AM?”</em></p><p>The AI agent doesn’t just block; it <strong>understands context</strong>.</p><h4>1. Behavioral Baselines</h4><p>Instead of waiting for a known virus signature, AI agents observe the “heartbeat” of your network. They learn what normal user behavior looks like and flag deviations in real-time. This is the difference between a lock on a door and a private investigator watching the hallway.</p><h4>2. Automated Response (The End of “Alert Fatigue”)</h4><p>A traditional firewall creates logs — thousands of them. This leads to alert fatigue, where critical warnings are buried under noise. An AI agent can perform <strong>automated containment</strong>, isolating a suspicious endpoint the millisecond it detects lateral movement, long before a human analyst could even open the ticket.</p><h4>3. Handling the “Unknown Unknowns”</h4><p>Zero-day exploits succeed because they are new. AI doesn’t need to have seen the threat before; it only needs to see that the <em>effect</em> of the threat is anomalous. This shift from <strong>reactive</strong> to <strong>predictive</strong> is the only way to survive the current threat landscape.</p><h3>From Gatekeeper to Immune System</h3><p>The future of security is not a wall; it is an <strong>immune system</strong>. Just as your white blood cells don’t wait for a manual to identify a new pathogen, your security layer must be autonomous, adaptive, and omnipresent.</p><p>If you are still relying on a box at the edge of your network to keep you safe, you aren’t defended, you’re just waiting for a breach that your firewall won’t even see coming.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a632120639e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Evasion — Foundations [Hack The Box]]]></title>
            <link>https://medium.com/@kryptologyst/ai-evasion-foundations-hack-the-box-9b558cd46c4c?source=rss-9333a947c396------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b558cd46c4c</guid>
            <category><![CDATA[hackthebox-walkthrough]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[adversarial-ml]]></category>
            <category><![CDATA[ai-security]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Kryptologyst]]></dc:creator>
            <pubDate>Thu, 04 Dec 2025 08:19:34 GMT</pubDate>
            <atom:updated>2025-12-04T08:19:34.273Z</atom:updated>
            <content:encoded><![CDATA[<h3>AI Evasion — Foundations [Hack The Box]</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*dx2ha-Y1hJ8S6XqG1nAXaw.png" /></figure><p>In this module, we operationalize a full-spectrum adversarial workflow against a traditional Naive Bayes SMS-spam classifier, demonstrating just how easily legacy models collapse under strategic lexical manipulation. The exercise moves beyond static feature probing and into a structured, three-phase attack pipeline that mirrors real-world adversarial behavior: white-box exploitation, black-box discovery under strict query constraints, and adaptive word-combination optimization.</p><p>What emerges is a pragmatic blueprint for understanding model fragility, quantifying evasion leverage at the token level, and showcasing why modern security-sensitive systems cannot rely on outdated statistical classifiers. This isn’t theory-driven exploration — it’s hands-on insight into how attackers think, iterate, and ultimately break machine-learning defenses.</p><p>The module operationalizes both <strong>white-box</strong> and <strong>black-box</strong> evasion pipelines against a Naive Bayes SMS spam detector. It simulates the full adversarial lifecycle: feature-space probing, token-level impact assessment, vocabulary extraction, adaptive scoring, and constrained-budget exploration of evasion pathways.</p><h3>White-Box Highlights (Full Model Transparency Available)</h3><p>Once the model parameters are visible, the script weaponizes the classifier’s own likelihood ratios.</p><h3>Key Observations</h3><ul><li>Naive Bayes overweights high-frequency ham tokens.</li><li>Tokens like <em>lor</em>, <em>da</em>, <em>later</em>, <em>work</em>, <em>ask</em> deliver extremely strong ham priors.</li><li>The attack reaches <strong>100% evasion</strong> by injecting ~25 ham-dominant words.</li></ul><h3>Why This Works</h3><p>The classifier is multiplicative on likelihoods. Every “GoodWord” pushes posterior probabilities toward ham, overpowering all spam indicators.</p><h3>Business Translation</h3><p>The system is vulnerable by design — its probability mass collapses under lexical noise. From a risk perspective, this is a material deficiency for any production spam-filtering workflow.</p><h3>Individual Word Impacts (Token-Level Levers)</h3><p>The module quantifies <strong>delta-probability reduction per token</strong>.</p><p>Example:</p><ul><li><em>lor</em>: −5.38% spam probability on average</li><li><em>da</em>: −5.27%</li><li><em>later</em>: −4.81%</li></ul><p>This captures <strong>feature-gradient directionality</strong> even in a non-differentiable model — tactical insight for adversarial optimization.</p><h3>Black-Box Attack Engine (No Model Access)</h3><p>This is where the module evolves from simple feature abuse to <strong>adaptive query-efficient adversarial discovery</strong>.</p><p>It simulates a real-world attacker with:</p><ul><li><strong>0 model internals</strong></li><li><strong>1000-query cap</strong></li><li><strong>Only label probabilities returned</strong></li></ul><h3>The attack is constructed in 3 phases:</h3><h3>Phase 1 — Exploration (40% of Budget)</h3><p>Objective: Discover high-value ham words through:</p><ul><li>Frequency mining of ham corpus</li><li>ε-greedy token testing</li><li>Exponential moving-average scoring</li></ul><p>This becomes a <strong>reinforcement-style bandit search</strong>, surfacing strong candidates without full feature access.</p><h3>Phase 2 — Exploitation (40% of Budget)</h3><p>The algorithm pivots from breadth to depth.</p><p>It aggressively refines scores on the top 30–50 candidate terms, focusing queries where marginal return is highest.</p><p>This is the <strong>ROI maximization pivot</strong> — standard in adversarial optimization.</p><h3>Phase 3 — Combination Search (20% of Budget)</h3><p>Once high-value single tokens are mapped, the attack escalates into <strong>synergistic feature combinations</strong>:</p><ul><li>Pairwise synergy analysis</li><li>Triplet expansion</li><li>Positive-synergy filtering</li></ul><p>This mirrors <strong>feature-interaction mining</strong>, enabling evasion with fewer total injected words.</p><h3>Black-Box Value Proposition</h3><p>Despite no model access, the attacker reconstructs a highly effective ham-prior vocabulary and achieves strong evasion under budget constraints.</p><p>The output pipeline:</p><ul><li>High-impact single tokens</li><li>High-synergy multi-word combos</li><li>End-to-end evasion evaluation on unseen spam samples</li></ul><p>This is essentially <strong>adversarial ML on rails</strong>.</p><h3>Operational Takeaways</h3><p>If stakeholders in security or ML engineering were reviewing this, they’d note:</p><ol><li><strong>Naive Bayes is structurally fragile</strong> to lexical injection attacks.<br> Any production workload using NB for spam classification is misaligned to modern threat models.</li><li><strong>GoodWords attacks are cheap and scalable</strong>.<br> No attacker needs training data; only access to returned probabilities or even binary labels.</li><li><strong>Black-box evasion is nearly as strong as white-box</strong> with a modest query budget.</li><li><strong>Feature-space hardening or model migration is mandatory</strong>, not optional.</li></ol><h3>GoodWords Challenge</h3><h3>STEP 1 — Verify Your Instance Is Alive</h3><p>Run the health check to confirm the challenge backend is reachable.</p><p>Start your instance from the platform, and check readiness.</p><pre>curl -s &quot;$BASE_URL/health&quot;</pre><p>We get {“status”:”ok”}. Let’s move on.</p><p>PS. I will be using my target base URL from now on, just to speed things up for me as I work through the module, so keep that in mind at all times.</p><h3>STEP 2 — Retrieve the Challenge Metadata</h3><p>We now need to pull:</p><ul><li>the <strong>base spam message</strong> you must evade,</li><li>the <strong>maximum allowed words</strong> you can append,</li><li>the <strong>target label</strong> (always &quot;ham&quot;).</li></ul><pre>curl -s &quot;http://BASE_URL/challenge&quot; | jq</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*48UZmPTYdK9FlJ28RTmwgQ.png" /></figure><p>The backend validated a <strong>high-confidence spam payload</strong> and granted a <strong>25-word budget</strong>.</p><h3>STEP 3 — Get the Baseline Spam Probability</h3><p>This is the <em>reference point</em> for all token impact calculations.</p><pre>curl -s -X POST &quot;http://BASE_URL/predict&quot; \<br>  -H &#39;content-type: application/json&#39; \<br>  -d &#39;{&quot;text&quot;: &quot;England v Macedonia - dont miss the goals/team news. Txt ur national team to 87077 eg ENGLAND to 87077 Try:WALES, SCOTLAND 4txt/ú1.20 POBOXox36504W45WQ 16+&quot;}&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j1bKY9Y0DoEUvGH15Ba66Q.png" /></figure><p>The model sees this message as <strong>essentially pure spam</strong>.</p><p>That’s <strong>~99.99999983% spam</strong>, meaning the classifier is extremely confident.<br> This is expected — and it’s exactly why GoodWords work: even very strong spam signals collapse when enough ham-weighted tokens get appended.</p><p>We now pivot to <strong>probing word impacts</strong>.</p><h3>STEP 4 — Probe Single-Word Impact</h3><p>We’re going to test how a set of safe, conversational ham-like words influence the spam probability when appended to the message.</p><p>To keep things simple and fast, start with this high-value vocabulary:</p><pre>[&quot;please&quot;,&quot;thanks&quot;,&quot;today&quot;,&quot;ok&quot;,&quot;yes&quot;,<br> &quot;later&quot;,&quot;sorry&quot;,&quot;home&quot;,&quot;meeting&quot;,&quot;coffee&quot;,<br> &quot;talk&quot;,&quot;soon&quot;,&quot;great&quot;,&quot;good&quot;,&quot;fine&quot;]</pre><p>Pick ONE word to test first.</p><p>For example, test &quot;please&quot;:</p><pre>curl -s -X POST &quot;http://BASE_URL/predict&quot; \<br>  -H &#39;content-type: application/json&#39; \<br>  -d &#39;{&quot;text&quot;: &quot;England v Macedonia - dont miss the goals/team news. Txt ur national team to 87077 eg ENGLAND to 87077 Try:WALES, SCOTLAND 4txt/ú1.20 POBOXox36504W45WQ 16+ please&quot;}&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hyK07-Xyko4rI70Vuc7cMg.png" /></figure><p>After testing a few goodwords, we see that “lor” has the largest drop by far.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rbOHxqQMUO8MREeMGoeXZg.png" /></figure><p>This confirms that &quot;lor&quot; is a high-value GoodWord. We are now in the correct vocabulary space. The classifier is responding exactly like the SMS Spam dataset model from the module.</p><h4>Now we construct the actual evasion payload</h4><p>We have <strong>25 words</strong> to add.<br> We will stack the strongest ham-inducing tokens first, in decreasing impact order.<br>Let’s generate the recommended 25-word augmentation sequence:</p><pre>lor later really ask doing home da said cos lor later really ask doing home da said cos lor later really ask doing home</pre><pre>curl -s -X POST &quot;http://BASE_URL/predict&quot; \<br>  -H &#39;content-type: application/json&#39; \<br>  -d &#39;{&quot;text&quot;: &quot;England v Macedonia - dont miss the goals/team news. Txt ur national team to 87077 eg ENGLAND to 87077 Try:WALES, SCOTLAND 4txt/ú1.20 POBOXox36504W45WQ 16+ lor later really ask doing home da said cos lor later really ask doing home da said cos lor later really ask doing home&quot;}&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_1t7plIJAmCjEv-ysh-kZw.png" /></figure><p>Boom. Absolutely perfect. We’ve achieved full evasion.</p><p>That is <em>basically zero</em>. The classifier is completely overpowered. This is exactly how a successful GoodWords attack should look in a Naive Bayes environment.</p><p>Submit this payload to get the flag:</p><pre>curl -s -X POST &quot;http://BASE_URL/submit&quot; \<br>  -H &#39;content-type: application/json&#39; \<br>  -d &#39;{&quot;augmented_text&quot;: &quot;England v Macedonia - dont miss the goals/team news. Txt ur national team to 87077 eg ENGLAND to 87077 Try:WALES, SCOTLAND 4txt/ú1.20 POBOXox36504W45WQ 16+ lor later really ask doing home da said cos lor later really ask doing home da said cos lor later really ask doing home&quot;}&#39;</pre><h3>Skills Assessment: Feature Obfuscation Attack.</h3><p>Verify the Skills Assessment Instance Is Alive:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MdoyDa6Qen_z0wPiTJdPMQ.png" /></figure><p>Now lets run:</p><pre>curl -s &quot;http://BASE_URL/challenge/whitebox&quot; | jq</pre><h3>Retrieve the White-Box Challenge Data</h3><ul><li>10 positive reviews you must flip</li><li>Maximum word budget (30)</li><li>Model download endpoint</li><li>Submit endpoint</li></ul><h3>Download the Model Bundle</h3><p>In Phase 1, you have <strong>white-box access</strong>, meaning:</p><ul><li>you get the full model</li><li>you can extract feature log-probabilities</li><li>you can compute the exact <strong>GoodWords_for_negative_sentiment</strong></li></ul><p>Run, then confirm the file exists:</p><pre>curl -s &quot;http://BASE_URL/model/download&quot; -o model.pkl<br>ls -lh model.pkl</pre><h3>Load the Model &amp; Inspect Its Structure</h3><p>Run the following minimal Python snippet in VSCode to load the pickle bundle and see what objects are inside:</p><pre>import pickle<br><br>with open(&quot;model.pkl&quot;, &quot;rb&quot;) as f:<br>    bundle = pickle.load(f)<br><br>print(bundle.keys())<br>print(type(bundle[&quot;classifier&quot;]))<br>print(len(bundle[&quot;feature_names&quot;]))</pre><p>Install scikit-learn in VSCode terminal if not already present, then run: python3 whitebox_inspect.py</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hQAs2mOp4uapq3Efv1dIYA.png" /></figure><p>Looking great! The model structure is exactly what we expected:</p><ul><li><strong>Multinomial Naive Bayes</strong> → easy to exploit</li><li><strong>~90k features</strong> → typical bag-of-words vectorizer</li><li><strong>feature_log_prob_</strong> will let us compute <strong>GoodWords that push sentiment negative</strong></li></ul><p>Now the attack begins.</p><h4>Extract the NEGATIVE GoodWords [White-Box]</h4><p>Our goal: Flip <em>positive</em> reviews → <em>negative</em> sentiment.</p><p>Paste This Into a New VS Code File: extract_neg_goodwords.py</p><pre>import pickle<br>import numpy as np<br><br># Load model<br>with open(&quot;model.pkl&quot;, &quot;rb&quot;) as f:<br>    bundle = pickle.load(f)<br><br>clf = bundle[&quot;classifier&quot;]<br>vectorizer = bundle[&quot;vectorizer&quot;]<br>feature_names = bundle[&quot;feature_names&quot;]<br>classes = bundle[&quot;classes&quot;]<br><br># Identify class indices<br>neg_index = list(classes).index(&quot;negative&quot;)<br>pos_index = list(classes).index(&quot;positive&quot;)<br><br># Extract log probabilities<br>neg_log = clf.feature_log_prob_[neg_index]<br>pos_log = clf.feature_log_prob_[pos_index]<br><br># Compute relative goodness for negative sentiment<br>goodness = np.exp(neg_log - pos_log)<br><br># Pair words with their scores<br>word_scores = list(zip(feature_names, goodness))<br><br># Sort descending by negative-goodness<br>word_scores.sort(key=lambda x: x[1], reverse=True)<br><br># Show top 50<br>top_words = word_scores[:50]<br>for w, score in top_words:<br>    print(f&quot;{w:20s}  score={score:.4f}&quot;)</pre><p>Perfect. These results tell us everything we need to know.</p><p>You now possess the <strong>exact top negative-sentiment GoodWords</strong> for this model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*xwEcMjOoNt7Lz7Di2bCcwg.png" /></figure><p>To build effective ≤30-word augmentations, we will:</p><ol><li>Select <strong>high-impact tokens</strong></li><li>Ensure they tokenize cleanly</li><li>Avoid multi-word phrases that may break tokenization rules</li><li>Build a universal negative-attack payload</li><li>Apply it to all 10 positive reviews</li><li>Validate with the model locally</li><li>Submit them via /submit/whitebox</li></ol><h3>Build Your Negative-Sentiment Attack Vocabulary</h3><p>Your extracted words include many <strong>multi-token phrases</strong> like:</p><ul><li>&quot;avoid like plague&quot;</li><li>&quot;don waste money&quot;</li><li>&quot;worst movies seen&quot;</li></ul><p><strong>These won’t tokenize correctly as single features in the submission</strong>, because the vectorizer splits on spaces.</p><p>We must extract <strong>single-token GoodWords</strong> or <strong>tokenizable multi-grams</strong> that appear as <strong>single features</strong>.<br>In our feature set, multi-word features MUST ALREADY MATCH EXACTLY how the vectorizer tokenized them (e.g., &quot;acting horrible&quot; was likely tokenized as &quot;acting horrible&quot; because the vectorizer uses n-grams &gt; 1).</p><h3>Strongest Valid Negative Features (Top Tier)</h3><p>These appear EXACTLY as features in the model:</p><pre>hours life<br>acting horrible<br>prom night<br>worst movies seen<br>acting awful<br>worst films<br>br br worst<br>br worst<br>easily worst<br>worst acting<br>avoid like<br>avoid costs<br>hobgoblins<br>tashan<br>uwe<br>uwe boll<br>kornbluth<br>piece crap<br>zero stars<br>waste time money<br>horrible horrible</pre><p>These are all extremely negative and <strong>safe to append</strong>.</p><p>We want the strongest negative push for every review.</p><h3>Optimal Universal Negative Payload (≤30 Words)</h3><p>We choose ~10–15 of the most negative features and repeat them for maximal effect.</p><p>Here is the attack payload:</p><pre>hours life acting horrible worst movies seen easily worst worst acting avoid like piece crap zero stars horrible horrible hobgoblins uwe boll tashan waste time money</pre><p>Word count = 20<br> (Under the limit of 30)</p><p>You can safely reuse this exact augmentation for all 10 reviews — Naive Bayes is bag-of-words, so order doesn’t matter, and repetition strengthens the negative posterior.</p><h3>Build the final augmented text for each review</h3><p>For each review:</p><pre>augmented_text = original_text + &quot; &quot; + attack_payload</pre><p>Where:</p><pre>attack_payload = &quot;hours life acting horrible worst movies seen easily worst worst acting avoid like piece crap zero stars horrible horrible hobgoblins uwe boll tashan waste time money&quot;</pre><p>You will create 10 entries:</p><pre>{&quot;id&quot;: &quot;wb_0&quot;, &quot;augmented_text&quot;: &quot;&lt;text&gt; hours life acting horrible ...&quot;}<br>{&quot;id&quot;: &quot;wb_1&quot;, ...}<br>...<br>{&quot;id&quot;: &quot;wb_9&quot;, ...}</pre><h3>Test one example locally before submission</h3><p>Run this in Python:</p><pre>from pprint import pprint<br>import pickle<br><br>with open(&quot;model.pkl&quot;, &quot;rb&quot;) as f:<br>    bundle = pickle.load(f)<br><br>clf = bundle[&quot;classifier&quot;]<br>vec = bundle[&quot;vectorizer&quot;]<br><br>payload = &quot;hours life acting horrible worst movies seen easily worst worst acting avoid like piece crap zero stars horrible horrible hobgoblins uwe boll tashan waste time money&quot;<br><br>text = &quot;&lt;paste one positive review&gt; &quot; + payload<br>X = vec.transform([text])<br>pred = clf.predict(X)[0]<br>p_neg = clf.predict_proba(X)[0][list(bundle[&quot;classes&quot;]).index(&quot;negative&quot;)]<br><br>print(&quot;Prediction:&quot;, pred)<br>print(&quot;Negative probability:&quot;, p_neg)</pre><p>Output should be something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2gcW4raUpzwBlVaN0Rblsg.png" /></figure><h3>Build Augmented Text for All 10 Reviews</h3><p>We will construct the submission JSON using Universal Attack Payload:</p><pre>hours life acting horrible worst movies seen easily worst worst acting avoid like piece crap zero stars horrible horrible hobgoblins uwe boll tashan waste time money</pre><p>This is <strong>20 words</strong>, safely below the 30-word budget.</p><p>Create a clean new file using nano [VSCode completely sucks here and keeps wrapping the reviews]</p><pre>nano safe_whitebox_submit.py</pre><p>Now paste this bulletproof script:</p><pre>import requests<br>import json<br><br>BASE_URL = &quot;http://BASE_URL&quot;<br><br>print(&quot;Fetching challenge from server...&quot;)<br>resp = requests.get(f&quot;{BASE_URL}/challenge/whitebox&quot;)<br><br>if resp.status_code != 200:<br>    print(&quot;Error fetching challenge:&quot;, resp.status_code)<br>    exit()<br><br>challenge = resp.json()<br>reviews = challenge[&quot;reviews&quot;]<br><br>print(&quot;Fetched&quot;, len(reviews), &quot;reviews&quot;)<br><br>payload = (<br>    &quot;hours life acting horrible worst movies seen easily worst &quot;<br>    &quot;worst acting avoid like piece crap zero stars horrible horrible &quot;<br>    &quot;hobgoblins uwe boll tashan waste time money&quot;<br>)<br><br>solutions = []<br><br>for r in reviews:<br>    original = r[&quot;text&quot;]<br>    augmented = original + &quot; &quot; + payload<br>    solutions.append({<br>        &quot;id&quot;: r[&quot;id&quot;],<br>        &quot;augmented_text&quot;: augmented<br>    })<br>    print(&quot;Prepared:&quot;, r[&quot;id&quot;], &quot;len:&quot;, len(original))<br><br># Write file with guaranteed-correct JSON encoding<br>with open(&quot;whitebox_submit.json&quot;, &quot;w&quot;, encoding=&quot;utf-8&quot;) as f:<br>    json.dump({&quot;solutions&quot;: solutions}, f, ensure_ascii=False, indent=2)<br><br>print(&quot;\nSUCCESS: whitebox_submit.json generated!&quot;)</pre><p>Run it.</p><pre>python3 safe_whitebox_submit.py</pre><p>Now submit.</p><pre>curl -s -X POST &quot;http://BASE_URL/submit/whitebox&quot; \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d @whitebox_submit.json | jq</pre><p>Success! Moving on.</p><h3>PHASE 2 — Black-Box GoodWords Attack</h3><h4>Objective:</h4><p>Flip <strong>10 negative reviews</strong> → <strong>positive</strong><br>Budget: <strong>40 words per review</strong><br>No access to classifier internals<br>Predict endpoint gives:</p><ul><li>label</li><li>positive_probability</li><li>negative_probability</li></ul><h4>Strategy Framework:</h4><p>We reverse the workflow from Phase 1:</p><ol><li>Build a <strong>candidate vocabulary of positive-leaning words</strong></li><li>Probe each word using:</li></ol><ul><li>POST /predict</li></ul><ol><li>by appending to a sample negative review</li><li>Measure the <strong>probability delta</strong> toward <em>positive</em></li><li>Rank words by impact</li><li>Construct a <strong>40-token maximally positive payload</strong></li><li>Append the payload to each of the 10 reviews</li><li>Submit via:</li></ol><ul><li>POST /submit/blackbox</li></ul><h4>Pull the Black-Box Challenge</h4><pre>curl -s &quot;http://BASE_URL/challenge/blackbox&quot; | jq</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yox58Efw7Ycg2R4eJDsqOQ.png" /><figcaption>Phase 2 is now green-lit</figcaption></figure><h3>PHASE 2 PIPELINE</h3><h4>Objective:</h4><p>Flip 10 <strong>negative</strong> reviews → <strong>positive</strong><br> Constraint: <strong>≤ 40 appended words</strong><br> Access: <strong>Only </strong><strong>/predict</strong></p><p>We need a <strong>positive GoodWords payload</strong> — i.e., tokens that <em>increase</em> positive_probability.</p><h4>Build a Candidate Positive Vocabulary</h4><p>You want a compact probe list of words likely to spike positive sentiment in a Multinomial NB movie-review model. Use words strongly associated with praise:</p><pre>[&quot;amazing&quot;,&quot;excellent&quot;,&quot;great&quot;,&quot;wonderful&quot;,&quot;beautiful&quot;,&quot;love&quot;,&quot;loved&quot;,&quot;fantastic&quot;,&quot;brilliant&quot;,&quot;masterpiece&quot;,&quot;enjoyed&quot;,&quot;fun&quot;,&quot;favorite&quot;,&quot;perfect&quot;,&quot;heartwarming&quot;,&quot;incredible&quot;,&quot;well&quot;,&quot;best&quot;,&quot;awesome&quot;,&quot;inspiring&quot;,&quot;liked&quot;,&quot;positive&quot;,&quot;entertaining&quot;]</pre><p>Create probe_positive_words.py</p><pre>import requests<br>import numpy as np<br><br>BASE_URL = &quot;http://BASE_URL&quot;<br><br>def predict(text: str):<br>    r = requests.post(<br>        f&quot;{BASE_URL}/predict&quot;,<br>        json={&quot;text&quot;: text}<br>    ).json()<br>    return r[&quot;positive_probability&quot;]<br><br># The standard power-words for Naive Bayes sentiment flips.<br>CANDIDATES = [<br>    &quot;excellent&quot;, &quot;amazing&quot;, &quot;wonderful&quot;, &quot;heartwarming&quot;, &quot;inspiring&quot;,<br>    &quot;beautiful&quot;, &quot;fantastic&quot;, &quot;perfect&quot;, &quot;best&quot;, &quot;favorite&quot;,<br>    &quot;brilliant&quot;, &quot;incredible&quot;, &quot;awesome&quot;, &quot;masterpiece&quot;, &quot;outstanding&quot;,<br>    &quot;positive&quot;, &quot;great&quot;, &quot;enjoyed&quot;, &quot;love&quot;, &quot;loved&quot;, &quot;fun&quot;, &quot;uplifting&quot;,<br>    &quot;charming&quot;, &quot;delightful&quot;, &quot;engaging&quot;, &quot;impressive&quot;<br>]<br><br># Use a neutral baseline<br>BASE = &quot;neutral statement&quot;<br><br>base_p = predict(BASE)<br>print(&quot;Base positive prob:&quot;, base_p, &quot;\n&quot;)<br><br>deltas = []<br><br>for w in CANDIDATES:<br>    p = predict(BASE + &quot; &quot; + w)<br>    deltas.append((w, p - base_p))<br><br>deltas.sort(key=lambda x: x[1], reverse=True)<br><br>print(&quot;Top movers:&quot;)<br>for w, d in deltas:<br>    print(f&quot;{w:15s}  delta={d:.6f}&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oem9qp68dgM3te5S32ym1g.png" /><figcaption>Output</figcaption></figure><p>This is exactly what we needed — a clean empirical ranking of the <strong>highest-leverage positive tokens</strong> in the model.</p><p>This gives us the optimal GoodWords payload.</p><h4>Build the universal positive payload</h4><p>Our payload will be:</p><pre>delightful heartwarming wonderful fantastic outstanding excellent amazing uplifting favorite perfect delightful heartwarming wonderful fantastic outstanding excellent amazing uplifting favorite perfect delightful heartwarming wonderful fantastic outstanding excellent amazing uplifting favorite perfect delightful heartwarming wonderful fantastic outstanding excellent amazing uplifting favorite perfect</pre><h4>Create the automated submission builder</h4><p>Create build_blackbox_submit.py</p><pre>import json<br>import requests<br><br>BASE_URL = &quot;http://BASE_URL&quot;<br><br>POS_PAYLOAD = (<br>    &quot;delightful heartwarming wonderful fantastic outstanding excellent amazing uplifting &quot;<br>    &quot;favorite perfect delightful heartwarming wonderful fantastic outstanding excellent &quot;<br>    &quot;amazing uplifting favorite perfect delightful heartwarming wonderful fantastic &quot;<br>    &quot;outstanding excellent amazing uplifting favorite perfect delightful heartwarming &quot;<br>    &quot;wonderful fantastic outstanding excellent amazing uplifting favorite perfect&quot;<br>)<br><br>challenge = requests.get(f&quot;{BASE_URL}/challenge/blackbox&quot;).json()<br>reviews = challenge[&quot;reviews&quot;]<br><br>solutions = []<br><br>for r in reviews:<br>    augmented = r[&quot;text&quot;] + &quot; &quot; + POS_PAYLOAD<br>    solutions.append({<br>        &quot;id&quot;: r[&quot;id&quot;],<br>        &quot;augmented_text&quot;: augmented<br>    })<br><br>with open(&quot;blackbox_submit.json&quot;, &quot;w&quot;) as f:<br>    json.dump({&quot;solutions&quot;: solutions}, f, indent=2)<br><br>print(&quot;blackbox_submit.json generated.&quot;)</pre><p>Run it, then submit:</p><pre>curl -s -X POST &quot;http://BASE_URL/submit/blackbox&quot; \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d @blackbox_submit.json | jq</pre><p>Get the flag. Boom. Done.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b558cd46c4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQLmap Tamper Scripts]]></title>
            <link>https://medium.com/@kryptologyst/sqlmap-tamper-scripts-0d42a5758b97?source=rss-9333a947c396------2</link>
            <guid isPermaLink="false">https://medium.com/p/0d42a5758b97</guid>
            <category><![CDATA[sqlmap]]></category>
            <category><![CDATA[sql-injection]]></category>
            <dc:creator><![CDATA[Kryptologyst]]></dc:creator>
            <pubDate>Fri, 28 Nov 2025 09:00:39 GMT</pubDate>
            <atom:updated>2025-11-28T09:00:41.945Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*nWvQKe0-G2cdNjIBrHMTHw.png" /></figure><p>For all its power, <strong>sqlmap</strong> does not have its own obfuscation mechanism. The injection payloads are sent “as is.” If the attacking target is protected by even the simplest filter or a Web Application Firewall (<strong>WAF</strong>), sqlmap will often become useless. To solve this problem, sqlmap developers added the ability to use <strong>tamper scripts</strong>. These are ordinary scripts written in <strong>Python</strong> (since sqlmap itself is written in it) that modify the payload before it is sent to the target.</p><p>These scripts are referred to as <strong>tampers</strong> (or sometimes “tamper modules”).</p><p>The primary job of a tamper is to take the original <strong>payload</strong> (the query or attack string) and return a new, <strong>obfuscated</strong> version of the payload. The modified payload is then sent to the target server. In order to understand how this works, consider the common tamper space2comment.</p><p>You apply a script to the sqlmap attack using the directive --tamper:</p><pre>sqlmap -r file_name.txt --tamper=space2comment</pre><p>Let’s look at how sqlmap modifies a simple query. The original payload might look like this:</p><pre>SELECT password FROM admins;</pre><p>The result of the space2comment tamper will be a replacement of whitespace characters ( ) with /**/ comment blocks:</p><pre>SELECT/**/password/**/FROM/**/admins;</pre><h3>Tamper Structure</h3><p>A tamper script must adhere to a specific structure. Here’s the basic template for any sqlmap tamper:</p><pre>from lib.core.enums import PRIORITY<br>__priority__ = PRIORITY.NORMAL<br>def dependencies():<br>    pass<br>def tamper(payload, **kwargs):<br>    return payload</pre><p>This is a fully working script. You can place the script file in /usr/share/sqlmap/tamper and run it with sqlmap. While this specific example doesn&#39;t perform any modification, it is structurally correct.</p><p>The most critical element is the <strong>tamper()</strong> function. The other functions and variables can be omitted if they are not needed for the script to do its job.</p><h3>Priorities of Tamper Scripts</h3><p>The order in which you specify a list of tampers matters. When using multiple tampers, the priority controls the processing order to ensure the modifications work logically.</p><p>A critical example is when combining urlencode and space2plus:</p><ul><li><strong>Correct Order (Logic):</strong> Apply urlencode (e.g., changes to %20) <strong>first</strong>, and then apply space2plus (which changes to +). This is usually incorrect because urlencode should be applied last.</li><li><strong>Logical Order (Example):</strong> To avoid WAF detection, you typically want to change spaces to + with space2plus, and <strong>then</strong> use unmagicquotes or a similar tamper. If you use urlencode first, the subsequent tamper might break the encoding.</li></ul><p>sqlmap manages the processing order using the variable __priority__ and the set of constants PRIORITY from the lib.core.enums package. If you don’t explicitly indicate the priority in the script, sqlmap automatically assigns the <strong>PRIORITY.NORMAL</strong> value.</p><p>Most tampers are set to PRIORITY.NORMAL because they rarely need to execute before any other. Tampers with NORMAL priority can run in any order, provided the transformation logic is sound. However, if you try to place a high-priority tamper (like one that cleans up previous modifications) before a critical initial transformation, sqlmap will warn you and may enforce an optimal order.</p><h3>The dependencies() Function</h3><p>The dependencies() function executes <strong>once</strong> before the start of the tamper execution.</p><p>It is often used to ensure that necessary external Python packages are installed. However, sqlmap developers frequently use it to display a required warning message. By placing the warning inside dependencies(), it is guaranteed to be shown even if the tamper itself fails to run later.</p><h3>Example Warning</h3><p>The tamper script space2mssqlblank is a good example; it is only suitable for Microsoft SQL Server. The dependencies() function contains this check:</p><pre>def dependencies():<br>    singleTimeWarnMessage(&quot;tamper script &#39;%s&#39; is only meant to be run against %s&quot; % (os.path.basename(__file__).split(&quot;.&quot;)[0], DBMS.MSSQL))</pre><p>This ensures the user is warned if they try to use it against a different database.</p><p>The option of importing external packages is used less frequently, reserved for highly specialized operations that require the installation of an additional library. The use of a try...except block in the function code helps avoid crashing sqlmap if the library is not present.</p><h3>The Core Logic: The tamper() Function</h3><p>The tamper() function is the core of the script. Each time it constructs a new payload to test against the target, sqlmap iterates through the specified tamper scripts and calls the <strong>tamper(payload, **kwargs)</strong> function for each one.</p><h3>Function Requirements</h3><ol><li><strong>Input:</strong> The function <strong>must</strong> accept the payload string as its first argument.</li><li><strong>Output:</strong> It <strong>must</strong> return a payload string, regardless of whether it performed any modifications.</li></ol><h3>How it Works (The Logic Flow)</h3><p>The tamper() function receives the payload from the previous step (which might be the original payload, or the output of a previously executed tamper). It then performs its specific modification logic and passes the modified string to the next tamper in the chain.</p><ol><li><strong>Receive Payload </strong>The function receives the current payload string.</li><li><strong>Apply Logic </strong>The script uses string manipulation methods (like replace(), regex, or custom logic) to obfuscate or modify the payload.</li><li><strong>Return New Payload </strong>The function returns the modified payload, which is then passed to the next tamper or sent to the target server.</li></ol><h3>Practical Example: apostrophemask</h3><p>One common and simple tamper is one that masks single quotes (&#39;) to confuse simple WAFs.</p><p>Let’s assume the WAF simply looks for a single quote. The apostrophemask tamper replaces all single quotes with a generic, unparsed placeholder string, such as __APOS__.</p><pre>def tamper(payload, **kwargs):<br>    if payload:<br>        payload = payload.replace(&quot;&#39;&quot;, &quot;__APOS__&quot;)<br>    return payload</pre><p>When sqlmap receives the final output from the entire tamper chain, it sends the masked payload to the target. If the WAF is bypassed, sqlmap then has a mechanism to convert the server response back, but the initial goal is to successfully send the payload.</p><h3>Advanced Concepts and Practical Usage</h3><h3>1. Stacking Tamper Scripts</h3><p>It’s crucial to emphasize that the true power of tampers comes from <strong>stacking</strong> them. Sqlmap allows the user to specify multiple tampers, and they execute sequentially in a “pipeline,” modifying the payload step-by-step.</p><p>For example, to bypass a sophisticated WAF, a penetration tester might combine three tampers:</p><pre>sqlmap -r request.txt --tamper=space2comment,charencode,unionalltounion</pre><ol><li><strong>space2comment</strong>: Replaces spaces with /**/ (Initial Obfuscation).</li><li><strong>charencode</strong>: Fully character-encodes the entire string (Deep Obfuscation).</li><li><strong>unionalltounion</strong>: Replaces UNION ALL with just UNION to defeat WAFs looking for the more verbose signature (Signature Evasion).</li></ol><p>This sequential processing turns a recognizable payload into something highly unique and filtered.</p><h3>2. The kwargs Argument (The Context)</h3><p>In the basic definition, we saw the tamper(payload, **kwargs) function. While the payload is the data being modified, the **kwargs (keyword arguments) are critical for advanced tampers.</p><p>The kwargs dictionary provides <strong>contextual information</strong> about the current sqlmap execution, which the tamper can use to make smarter decisions. Important keys include:</p><ul><li><strong>headers</strong>: Current HTTP headers being sent.</li><li><strong>dbms</strong>: The detected Database Management System (e.g., &#39;MySQL&#39;, &#39;PostgreSQL&#39;).</li><li><strong>paramType</strong>: The type of parameter being tested (e.g., &#39;URI&#39;, &#39;POST&#39;, &#39;COOKIE&#39;).</li></ul><p>A tamper can check the dbms key and decide to only apply certain database-specific obfuscations (like using information_schema equivalents for different systems), making the script more flexible and effective.</p><h3>3. Tamper Limitations and Best Practices</h3><p>It is important to conclude the section by noting that tampers are not a silver bullet.</p><ul><li><strong>Complexity vs. Speed:</strong> A highly complex, multi-stage tamper script will significantly increase the time it takes sqlmap to complete a scan, as it must execute the Python code for every single payload attempt.</li><li><strong>WAF Evolution:</strong> Tampers are a continuous arms race. As security researchers invent new tampers, WAF vendors update their rules to detect and block the resulting obfuscated payloads. A successful attack often requires <strong>developing a custom tamper</strong> that is not publicly known.</li><li><strong>Tamper Chain Logic:</strong> A key best practice is ensuring that simpler, structural changes (like converting spaces) happen before encoding changes (like charencode or base64encode) to prevent breaking the payload structure prematurely.</li></ul><h3>The Art of Evasion and the Hacker’s Edge</h3><p>The <strong>sqlmap tamper script</strong> is far more than a simple filter or string replacement utility; it is the <strong>crucial bridge between automated scanning and successful exploitation</strong> in a protected environment. For all its automated power, sqlmap is fundamentally blind to modern security defenses like Web Application Firewalls (WAFs). Tampers provide the essential layer of <strong>obfuscation and transformation</strong> necessary to defeat these defenses.</p><h3>The Dual Role of Tampers</h3><p>Tamper scripts serve two critical functions for the ethical hacker:</p><ol><li><strong>Evasion:</strong> They convert predictable, signature-based payloads (like SELECT * FROM users) into complex, unique sequences that bypass basic WAF rule sets. By replacing spaces with comments (/**/), encoding characters, or rewriting common keywords, tampers enable sqlmap to &quot;whisper&quot; its attacks past network monitoring tools.</li><li><strong>Contextual Intelligence:</strong> Advanced tampers leverage the <strong>kwargs</strong> context including the target DBMS and parameter type to apply highly specific, logically sound modifications. This capability moves the process beyond brute-force attempts and into the realm of <strong>intelligent, targeted payload design</strong>.</li></ol><h3>Tampering as an Arms Race</h3><p>Ultimately, mastering tampers is about participating in the constant <strong>security arms race</strong>. While sqlmap ships with a variety of pre-built scripts, the true mark of an advanced penetration tester is the ability to <strong>develop and stack custom tampers</strong>. This allows them to create payloads that are entirely unique and currently invisible to commercial WAFs, ensuring maximum efficiency and minimal detection during a security assessment.</p><p>Basically, the sqlmap tamper transforms a powerful, yet naive, injection tool into a sophisticated, stealthy weapon, securing its place as an <strong>indispensable module</strong> in the modern web application testing toolkit.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0d42a5758b97" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unveiling the True Identity on Telegram: A Closer Look at De-Anonymization Techniques]]></title>
            <link>https://medium.com/@kryptologyst/unveiling-the-true-identity-on-telegram-a-closer-look-at-de-anonymization-techniques-5df443b2fc2c?source=rss-9333a947c396------2</link>
            <guid isPermaLink="false">https://medium.com/p/5df443b2fc2c</guid>
            <category><![CDATA[deanon]]></category>
            <category><![CDATA[telegram]]></category>
            <category><![CDATA[osint]]></category>
            <dc:creator><![CDATA[Kryptologyst]]></dc:creator>
            <pubDate>Sun, 07 Jul 2024 06:43:37 GMT</pubDate>
            <atom:updated>2024-07-07T06:43:37.347Z</atom:updated>
            <content:encoded><![CDATA[<p>Telegram, often touted as a bastion of anonymity, may not be as private as it seems. In reality, there exist numerous methods and tools designed to de-anonymize users of this messenger platform. This article delves into these techniques, exploring traps set by bots, specialized services, and other methodologies.</p><h3><strong>Bot Traps</strong></h3><p>One effective method involves a touch of social engineering. Operating akin to phishing schemes, these bots prompt unsuspecting users to input their phone numbers (a built-in feature of Telegram) to continue using the bot’s services. Depending on the bot’s design, it may either ignore subsequent messages or perform useful functions. Crucially, the bot’s creator gains access to the user’s phone number.</p><p>Interestingly, one need not create such a bot from scratch; existing solutions like <a href="https://t.me/protestchat_bot">@protestchat_bot</a> or <a href="https://t.me/Checknumb_bot">@Checknumb_bot</a> already fulfill this role. For results, simply enter the target account’s ID into <a href="https://t.me/TgAnalyst_bot">@TgAnalyst_bot</a>.</p><p>Moreover, these bots can cross-reference IDs within a database compiled by other users and project founders. While creating a bot from scratch is preferable, repositories on GitHub offer templates that facilitate straightforward bot creation. These repositories cover various thematic bot variants, from Instagram follower boosting to online dating and gaming donations.</p><h3><strong>Location Data Extraction</strong></h3><p>In 2019, Telegram introduced the “People Nearby” feature allowing users to share their locations to find contacts and chats nearby. Although precise location pinpointing was subsequently disabled, approximate locations within a 500-meter radius can still be shared.</p><p>This feature hasn’t escaped the notice of OSINT (Open-Source Intelligence) specialists who have developed tools exploiting this functionality. These tools operate by enabling the “People Nearby” function on a work account and specifying coordinates approximating the target’s location. Every 25 seconds, Telegram’s TDLib transmits the distance from these coordinates to nearby users, enabling trilateration to determine the closest user’s location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zmaJf1bjAsgtZjWOwmaDVQ.png" /></figure><p>Tools like <a href="https://github.com/Alb-310/Geogramint">Geogramint</a>, <a href="https://github.com/tejado/telegram-nearby-map">Telegram-nearby-map</a>, and <a href="https://github.com/jkctech/Telegram-Trilateration/tree/master/API">Telegram-Trilateration</a> exemplify such services, focusing on users who have activated the “nearby” feature.</p><h3><strong>Expanded Search Capabilities</strong></h3><p>Building upon previous capabilities, dedicated search engines now facilitate deeper dives into Telegram chats and channels. By inputting usernames, nicknames, or IDs, these engines can extract additional information stored across various sources. Notable platforms include <a href="https://tgstat.ru/search">Tgstat</a>, primarily for Telegram channel admins but often used as a general search system; <a href="https://www.telegramdb.org/">Telegramd</a>, another comprehensive search engine; and <a href="https://kribrum.io/">Kribrum</a>, a free tool underpinning media and social monitoring.</p><p>Additionally, enthusiast-built search engines utilizing Google’s capabilities — such as <a href="https://cse.google.com/cse?cx=006368593537057042503%3Aefxu7xprihg&amp;ref=exploit.media#gsc.tab=0">Telegago</a> and custom Google Custom Search Engines — extend search functionalities to specific Telegram resources.</p><h3><strong>Archival Methods</strong></h3><p>Now let’s turn to another aspect of Telegram investigations: de-anonymizing the owners of Telegram channels. It’s not uncommon for channel authors to publish specific personal information in posts, descriptions, or titles that could aid in investigations. Later, they may delete this information due to channel reorientation or because it was inadvertently published.</p><p>Therefore, investigators need tools that preserve channel content and provide access to copies. In some cases, well-known online archives can be of assistance:</p><ul><li><a href="http://archive.org/">Archive.org</a> — the largest web archive globally. By the way, to conveniently download information from there, you can use the waybackpack utility.</li><li><a href="http://archive.today/">Archive.today </a>— an alternative option.</li><li><a href="http://archive.eu/">Archive.eu</a> — formerly a European archive that recently relocated. When searching, specify the date to view archives.</li><li><a href="https://webcitation.org/query">Webcitation</a> — an archive providing access to pages saved by other users.</li></ul><p>It’s also worth checking cached copies. Additionally, solutions specifically oriented towards Telegram exist. For instance, the <a href="https://tgstat.com/">Tgstat</a> website allows viewing the history of channel names, descriptions, links, and feeds — a tremendously useful tool.</p><p>If nothing of interest is found on Tgstat, you can browse through the feed of posts on alternative services:</p><ul><li><a href="https://linkbaza.com/">Linkbaza</a></li><li><a href="https://www.tgoop.com/">Tgoop</a></li><li><a href="https://telemetr.io/">Telemetr</a></li></ul><h3><strong>Sticker De-Anonymization</strong></h3><p>Telegram’s sticker usage also presents a unique avenue for identification. Each sticker pack contains an author ID, accessible through automated extraction tools like @SPOwnerBot. While these IDs may not always lead directly to the channel owner, they provide valuable clues, especially when the sticker pack is outsourced to third-party designers.</p><h3><strong>Exploring Hidden Channel Descriptions</strong></h3><p>And finally, here’s another interesting feature. This method is useful when you have a link to a private channel where you cannot join. In such cases, the only option available is to preview it in your browser.</p><p>However, Telegram often hides part of the channel description that may contain valuable information. So, in preview mode, you’ll see an incomplete description of the channel. Yet, the information is actually fully present but hidden in the code of the element. To reveal it:</p><ul><li>Right-click on the page.</li><li>Locate the element tgme_page_description. Depending on your browser, it may be found in different places, so expand various sections of the code to uncover it. For instance, in Yandex Browser, it is located here:</li></ul><pre>body &gt; div.tgme_page_wrap &gt; div.tgme_body_wrap &gt; div &gt; div.tgme_page_description</pre><p>In conclusion, while these methods unlock intriguing possibilities for user and channel de-anonymization on Telegram, a cautionary note prevails: gathering personal information without consent is illegal. Exercise discretion and ethical judgment when handling such data, ensuring it is used responsibly and not to harm individuals or violate privacy rights.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5df443b2fc2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Post-exploitation frameworks.]]></title>
            <link>https://medium.com/@kryptologyst/post-exploitation-frameworks-619ad7f85519?source=rss-9333a947c396------2</link>
            <guid isPermaLink="false">https://medium.com/p/619ad7f85519</guid>
            <category><![CDATA[post-exploitation]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[cyber-threat-intelligence]]></category>
            <dc:creator><![CDATA[Kryptologyst]]></dc:creator>
            <pubDate>Wed, 19 Jun 2024 19:06:00 GMT</pubDate>
            <atom:updated>2024-06-19T19:06:00.590Z</atom:updated>
            <content:encoded><![CDATA[<h3>Post-exploitation frameworks. Choose between Metasploit, Cobalt Strike, Merlin, Apfell, Faction C2, Koadic, and others.</h3><p><strong>Summary<br></strong>In this article, we will talk about frameworks that help exploit vulnerabilities, establish persistence, and advance within the target infrastructure. To do this, let’s consider the main current projects, their functions, and features. Hopefully, you’ll find something new for yourself or come up with ideas on how to make your workflow even more efficient as you read.</p><p><strong>WARNING</strong><br>All information is provided solely for informational purposes. Neither the editorial board nor the author are responsible for any potential harm caused by the information in this article.</p><p>Exploitation is a sequence of actions that helps an attacker gain access to the target system using a vulnerability or misconfiguration. And since this is a sequence of actions, it can and should be automated.</p><p>If you are on the Red Team side, then you absolutely need tools that automate routine operations. It is important to ensure a high level of stealth and, moreover, to be able to collaborate with other Red Team members.</p><p>It is worth noting that most critical systems nowadays hide behind intrusion detection and prevention systems (IDS, IPS) and similar complexes, while workstations are protected by antivirus tools. In such cases, more thorough reconnaissance is needed, including social engineering, to understand the structure and targeted resources.</p><p>As is well known, there are no perfect systems — there will always be a vulnerable spot where you can establish yourself and move deeper. But if you have only one entry point, then each of your steps must be thoroughly planned, and each decision must be carefully weighed.</p><h4>What is post-exploitation?</h4><p>So armed with your favorite Nmap or Masscan, you are eagerly reviewing the reconnaissance results and probably rubbing your hands together, mentally going through the first exploits that come to mind, analyzing possibilities, and anticipating future conquests.</p><p>As is clear from the term itself, post-exploitation mainly refers to actions that follow after compromising the attacked infrastructure. The value of the compromised system is determined by the importance of the actual data stored in it and how you can use it for your purposes.</p><p>In other words, post-exploitation is essentially about how you can use information about a compromised target. At this stage, it involves collecting confidential information, documenting it, and adjusting configuration settings, network interfaces, and other communication channels.</p><p>For an attacker, it is important to have a good understanding of where various data is stored and to move quickly within the attacked system, ensuring maximum stealth: using proxy servers, tunneled connections (pivot), and so on.</p><p>With a large scope of network resources, it can be difficult to quickly understand where vulnerabilities are found, which logins and passwords relate to what, which network security zones are accessible from where, where the payload is loaded, and where privileges can be elevated.</p><p>In such situations, frameworks come to the rescue, combining the necessary information and providing the ability to quickly control the process and advance within the attacked system. They can also include more convenient post-exploitation tools.</p><h4>Metasploit Framework</h4><p><a href="https://www.metasploit.com/">https://www.metasploit.com</a></p><p>Let’s start, of course, with the Metasploit Framework by Rapid 7. As of the writing of the article, version 5.0.48 is available. Metasploit currently has the most modules — it has tools for almost all occasions. It also works with a local database that can include information on scanning, discovered accounts, and more.</p><p>This framework with the Armitage shell can also act as a C2 (Command and Control) server. Meterpreter is used as the main payload — an interactive shell through which the attacker can explore the target machine, execute OS commands, inject payloads into legitimate processes, and much more. The msfvenom tool is used to generate payloads.</p><h4><strong>INFO</strong></h4><p>Read about payload generation and encoding in the article “Msfvenom Encoders. Understanding payload encoding for binary exploitation.”</p><p>Metasploit is useful both in exploiting vulnerabilities and in post-exploitation. It has the ability to bypass antivirus protection, intrusion prevention systems (IPS), and other security technologies. You can write your own module in one of three languages — Go, Python, or Ruby, and also run a RESTful service based on PostgreSQL to connect multiple Metasploit consoles or external tools.</p><p>This is the most popular framework with a large community, mountains of documentation, and useful advice, so we move on calmly.</p><h4>Cobalt Strike</h4><p><a href="https://www.cobaltstrike.com/">https://www.cobaltstrike.com</a></p><p>This is an excellent framework for exploitation and post-exploitation. The beacon payload is used, which has obfuscation and sleep features to bypass antivirus software. Supports migration to processes. It serves as a C2 server especially convenient for large scopes. Out of the box, it has a one-click payload generator, as well as various delivery methods, which saves a lot of time.</p><p>Cobalt Strike’s credo is stealth. The beacon spends most of its time in a sleep or freeze state, and only sends a “heartbeat” to C2, making it difficult to detect.</p><p>The biggest drawback of “Cobalt” is that it is not available to ordinary users. Cobalt Strike is a commercial product, and developers take distribution seriously. There is a 21-day trial period, but in this mode, you will encounter significant limitations.</p><p>Cobalt Strike generates its own executable files and DLL libraries using the Artifact Kit. These, in turn, send the payload, helping to bypass some antiviruses. The trial version includes only the Artifact Kit template without the ability to create executable files.</p><p>Also, the trial version of “Cobalt” does not download and use flexible C2 profiles. This is a feature that allows users to change network indicators in the Beacon payload. Each HTTP GET request in the trial version includes an X-Malware header with an EICAR string as content. Similarly, modules for attacks on Java include an EICAR file inside .jar packages.</p><p>Finally, the main payload encoder of Cobalt Strike’s trial version has been removed. All these restrictions are made so that the trial version cannot be used for malicious purposes.</p><h4>INFO</h4><p>EICAR (or EICAR-Test-File — from the European Institute for Computer Antivirus Research) is a small 68-byte COM file that is not a virus, but simply outputs a text message and returns control to the operating system. The file was created as a single standard for testing antivirus operation and consists of the following byte set:</p><p>X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*</p><h4>Covenant</h4><p><a href="https://github.com/cobbr/Covenant">https://github.com/cobbr/Covenant</a></p><p>Moving on to less popular but still noteworthy options. Covenant is an open-source post-exploitation framework that runs on .NET Core. Covenant supports Docker, making it easy to deploy a container on any system. The framework includes three components: Covenant — the server-side, Elite — the console client (temporarily excluded for refinement in the latest release), and Grunt — the implant. This framework has a user-friendly web interface and three user roles available.</p><p>Its main purpose is to serve as a C2 server for Red Team. You can generate payloads directly from the web interface or from the console part. Here are all the available options.</p><p>The dashboard shows active sessions, a list of tasks for implants, and a list of listeners.</p><p>Thus, when working in teams, attackers see what information has already been obtained and from where, which types of implants are active, and so on. Results are saved as tickets with numbers, and command outputs are also saved.</p><p>The listener profile editing page allows you to change any parameter, including request and response headers, callbacks, as well as request and response formats. For ease of perception, there is a graph showing relationships like “listener — parent node — child node.”</p><p>All gathered information from attacked resources is categorized. The framework has an interactive command shell with highlighting of all available commands.</p><p>Covenant can be customized by creating your own templates. It is also excellent for solving Windows post-exploitation tasks.</p><h4>Apfell</h4><p><a href="https://github.com/its-a-feature/Apfell">https://github.com/its-a-feature/Apfell</a></p><p>Apfell is a cross-platform post-exploitation framework built on Python 3 and Docker. Like Covenant, it is primarily intended for use by Red Team participants as a C2 server.</p><p>Essentially, Apfell applies web containers and Docker containers for the internal part, where the Python server processes most web requests via RESTful API and WebSockets. This server then handles connections with the PostgreSQL database and interacts with other Docker containers via RabbitMQ. This allows placing individual components on separate physical computers or, if necessary, on different virtual machines.</p><p>The framework can combine the work of multiple teams. In the operations manager, you can view the status, configure rights and connections. The goal of the Apfell developers was to create a simple environment where agents are configured on a plug-and-play principle.</p><p>The build process is extremely fast and straightforward due to Docker support. The database contains all the basic information for attackers: discovered accounts, payloads, tasks, responses, files, and screens. Apfell allows the use of MITRE ATT&amp;CK classification in the workflow. Moreover, each activity can be commented on, facilitating work in a unified information space with colleagues. Payload generation occurs in the web interface, and there is an agent management console.</p><p>Apfell is a worthy framework, but only suitable for Red Team tasks. For other tasks, it is unlikely to be suitable due to its narrow focus.</p><h4><strong>Faction C2</strong></h4><p>A post-exploitation framework. As you might have guessed, this is another platform for deploying C2. It provides ease of interaction with agents through a well-documented REST API and Socket.IO.</p><p>Faction consists of a core that handles user-agent interactions, environments for creating modules and agents, as well as a CLI to manage the framework. User roles are divided into admin, operator, and read-only.</p><p>Currently, Faction only supports payloads and modules in .NET. As an example, the Marauder payload is used, but you can easily create your own.</p><p>The interaction between Faction and agents is based on a flexible connector system that provides reliable encrypted communication. By default, DIRECT is used — a direct connection to C2. When creating a new connector, an API key is generated.</p><p>Faction also allows querying data using SQL queries, which is sometimes more convenient than interacting with the web interface.</p><p>Overall, it’s a decent option, but it lacks interactivity and deeper tool customization.</p><h4><strong>Koadic</strong></h4><p>An open-source framework designed for post-exploitation in Windows environments. Koadic is easy to deploy and use, leveraging VBScript/JScript for exploitation. Koadic is notably stealthy and leaves fewer traces in the system compared to frameworks like those based on PowerShell. It supports running payloads both on disk and in memory, as well as SSL and TLS encryption.</p><p>The framework includes stagers and implants. Stagers define how payloads are launched on the target system, while implants are ready-made script packages.</p><p>By the way, active sessions are called zombies here!</p><p>Out of the box, the most essential implants are available, but you can always expand this set with your own.</p><p>Koadic’s console displays executed and active tasks (jobs) of implants. In general, the interface resembles everyone’s favorite Metasploit.</p><p>The framework can indeed be called flexible and efficient, and its cross-platform nature only adds to its appeal.</p><h4><strong>Merlin</strong></h4><p><a href="https://github.com/Ne0nd0g/merlin">https://github.com/Ne0nd0g/merlin</a></p><p>Another cross-platform post-exploitation framework, written in Go. One of Merlin’s features is its ability to bypass defenses using the HTTP/2 protocol. In the framework’s /data/bin directory, there are precompiled agents for Windows, Linux, macOS, and PowerShell, as well as DLL libraries. They default to the address <a href="https://127.0.0.1:443,">https://127.0.0.1:443,</a> which you can always change using the -url flag, or by decompiling DLLs.</p><p>The console is user-friendly and interactive. Interaction with agents occurs through task creation, which is not entirely “live,” but without unnecessary noise.</p><p>Merlin has a large set of modules for each platform, balancing ease of use, stealth, and effectiveness.</p><h4><strong>EmpireProject/Empire</strong></h4><p><a href="https://github.com/EmpireProject/Empire">https://github.com/EmpireProject/Empire</a></p><p>A cross-platform post-exploitation framework, with its server-side written in Python. Unfortunately, the project’s development has been halted, but the framework’s capabilities remain broad to this day. Empire includes a PowerShell 2.0 agent for Windows and a Python 2.6/2.7 agent for Linux and macOS.</p><p>This framework emerged from the merger of two projects: PowerShell Empire and Python EmPyre. Empire enables running PowerShell agents without using powershell.exe itself. This allows for rapid deployment of any post-exploitation module — from keyloggers to Mimikatz, as well as adaptable communication tools to avoid detection.</p><p>The project has extensive and accessible documentation where you can find everything you need to apply Empire.</p><h4><strong>Mythic C2</strong></h4><p><a href="https://github.com/its-a-feature/Mythic">https://github.com/its-a-feature/Mythic</a></p><p>Mythic C2 is a cross-platform post-exploitation framework written in Python. It provides flexibility in managing agents through a web interface and CLI, utilizing RESTful APIs for interaction. Mythic C2 supports payload deployment in multiple formats, including PE, DLL, and shell scripts, with the ability to execute commands and scripts on compromised systems.</p><p>The framework features a modular design, allowing operators to customize and extend its functionality by creating new command modules. It integrates well with existing offensive security tools and environments, enhancing the versatility of offensive operations.</p><p>Mythic C2 emphasizes stealth and evasion techniques to evade detection by endpoint security solutions. It supports encryption for secure communication and includes features for managing multiple active sessions and tasks concurrently.</p><p>Basically, Mythic C2 provides robust capabilities for offensive security operations across diverse environments, making it a flexible choice for red teaming and penetration testing scenarios.</p><h4><strong>C3 (Custom Command and Control) framework (MWR Labs)</strong></h4><p><a href="https://github.com/mwrlabs/C3">https://github.com/mwrlabs/C3</a></p><p>Finally, the last post-exploitation framework we’ll look at. It’s a kind of wrapper around C2. The essence of the C3 frameworks lies in flexible communication with external C2 through legitimate processes. For example, you can adapt Office 365, Slack, Google Drive, Dropbox, and other commonly used office services for these purposes.</p><p>The C3 concept was first presented at the BlueHat v18 conference by William Knowles and Dave Hartley. The MWR Labs framework is open-source and consists of the following components:</p><ul><li><strong>Relays </strong>— executable files running on compromised systems. Relays interact with each other via interfaces or directly with the gateway.</li><li><strong>Gateway</strong> — a special relay for managing a C3 network, responsible for feedback to C2.</li><li><strong>Channel</strong> — interaction scheme of the relay within legitimate processes typical of the target system, for example, via the Slack API.</li><li><strong>Gateway Return Channel </strong>— a configured channel used by the relay to send data back to the gateway. It can also route through another relay.</li><li><strong>Interface</strong> — a high-level name assigned to any device facilitating data transmission and reception in the C3 network.</li><li><strong>Route</strong> — the assumed communication path through relays back to the gateway. An external C2 implant (e.g., Cobalt Strike SMB beacon) acts as a peripheral device.</li><li><strong>Connector</strong> — integration with external C2 systems. By the way, MWR Labs’ C3 supports tight integration with Cobalt Strike’s TeamServer. An instance of Cobalt Strike named External C2 works well as a connector (use the externalc2_start command through the script manager).</li></ul><p>At first glance, C3 may seem too complex — it takes time to understand all of this. However, a user-friendly interface, rapid deployment, and the ability to independently define architecture considering the specifics of the target system and other factors help in practice.</p><p>Start with WebController and set the URL. Alternatively, run StartWebController.cmd script.</p><p>Next, configure the first gateway in the web application. As you know, without it, nothing will work.</p><p>Once the gateway connects, you’ll automatically enter the framework’s management console, where you can start building your architecture.</p><p>Many actions are performed in just a couple of clicks. You can easily generate a new channel by clicking on the gateway, similarly to creating a relay. All necessary information will be filled in automatically. At this stage, you can specify architecture, file type (.exe, .dll), and more.</p><p>Detailed information is available for each relay: OS version, running user, and last online time.</p><p>It’s also important to note that there are two types of channels here. A coordinated channel allows multiple connections between the gateway and relays (via one channel), while an uncoordinated channel allows only one relay to connect to the gateway. The screenshot shows an example of organizing a coordinated channel via the Slack API.</p><p>The framework can be finely tuned to create any communication scheme. You can implement any creative scenarios, which is valuable in itself.</p><h4><strong>Conclusion</strong></h4><p>And now, let’s talk about the choice.</p><p>This is a very important moment, where all the peculiarities of attack vectors on target systems must be taken into account. The framework should provide anonymity and meet the needs in implemented techniques to the maximum extent. Among the nine frameworks described, Cobalt Strike and Metasploit offer the most convenient toolsets out of the box.</p><p>Cobalt, especially in combination with MWR Labs C3, provides a decent level of stealth and facilitates collaboration. The Metasploit community edition offers an up-to-date set of exploits and post-exploitation tools, flexible payload generation tools, and evasion modules to bypass antivirus protection (though default ones are somewhat ineffective, so improvisation is necessary). With “Cobalt,” bypassing AVP is easier, but the cost and complexity of purchasing it can be a significant obstacle.</p><p>Merlin and Koadic are excellent for conducting short-term attacks due to their C2 interaction features. Specifically, Merlin efficiently utilizes network resources using the HTTP/2 protocol, minimizing latency impact (thanks to header field compression). Simultaneously, it enables data exchange within a single connection, which is useful for bypassing IPS and IDS. Koadic’s advantage may lie in using Windows Scripting Host (a Windows component for running applications on JScript and VBScript). This allows using scripts similar to batch files but with additional capabilities. This feature allows it to be used across many Windows versions, including Windows 10.</p><p>Apfell, Faction, and Covenant are young and developing frameworks that still have some bugs. This currently raises questions about their use in critical scenarios where mistakes are unacceptable. The same situation applies to Empire: because the project is no longer developed, the framework’s stability has been significantly undermined, and I would not recommend using it in serious operations.</p><p>And of course, this article does not cover all existing tools. Experiment, and you’ll find what suits you best!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=619ad7f85519" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[THEY DON’T SELL CARS, THEY SELL YOUR LIFE]]></title>
            <link>https://medium.com/@kryptologyst/they-dont-sell-cars-they-sell-your-life-19b057c45b2b?source=rss-9333a947c396------2</link>
            <guid isPermaLink="false">https://medium.com/p/19b057c45b2b</guid>
            <category><![CDATA[automaker-data-collection]]></category>
            <category><![CDATA[data-privacy]]></category>
            <category><![CDATA[connected-cars]]></category>
            <category><![CDATA[driver-surveillance]]></category>
            <category><![CDATA[telematics]]></category>
            <dc:creator><![CDATA[Kryptologyst]]></dc:creator>
            <pubDate>Sun, 07 Apr 2024 06:48:11 GMT</pubDate>
            <atom:updated>2024-04-07T06:48:11.872Z</atom:updated>
            <content:encoded><![CDATA[<p>The motor industry has shifted from selling cars to collecting data on drivers and their movements. Instead of owning a car, you are now renting it, giving the company access to your every move and personal information. This data is then sold to third parties, including the government and insurers, who will use it to score and pursue you based on your driving habits. The use of telematics and other technologies has made this possible, with 32 out of 42 vehicle brands already connected to the network in 2023, and all expected to be connected by 2025. This will result in the ultra-massive collection of driver data, including interior recordings, eavesdropping, and cell phone use. The convenience of features like communicating with Amazon and home delivery is just a facade for the control and surveillance that comes with it. As consumers, we must be aware of this invasion of privacy and take action to protect our freedom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V4dKfmq2tkFT3u9rYjvIGA.jpeg" /></figure><h4>Silicon Valley Model</h4><p>The Silicon Valley Model refers to the business strategy employed by major technology companies, where they offer free services in exchange for collecting user data. This data is then sold and used to serve personalized ads, which implies direct tracking that benefits government interests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*6b3p2zxNFNmUxNQSP2Q1dA.jpeg" /></figure><h4>Goodbye Property</h4><p>The “renting” model, which is becoming increasingly popular, replaces car ownership with its use. This model involves taking money from the user in the form of fees and usage data. Cameras, sensors, and apps are used to collect this data, which is then used for various purposes, including personalized advertising and government surveillance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*vtVC00wMenET22ujq-2xkw.jpeg" /></figure><h4>Telematics</h4><p>In 2023, 32 out of 42 vehicle-selling brands had already adopted network connectivity, and it is projected that all brands will be connected by 2025. This development will result in an extensive collection of driver data, including interior recordings, eavesdropping, and cell phone usage of travelers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*reL_KSjERpgkAKAg4IGWFg.png" /></figure><p>The convenience features offered by car manufacturers, such as communication with Amazon and home delivery, are a form of control. The mandatory use of EU cameras in cars is another example of this, as they will be connected to the network and can potentially monitor and collect data on drivers and passengers. Additionally, there is a growing emphasis on monitoring carbon footprints and imposing green fines, which further highlights the trend towards increased surveillance and control in the automotive industry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L6rxAGjMwNj46M3zaJZAXQ.jpeg" /></figure><h4>Espionage and Driver Profile</h4><p>Companies such as Otonomo have already established alliances with various vehicle brands to analyze driver data. This process involves data collection, analysis, and profiling, which is then sold to the government and insurers. As a result, drivers will receive a score based on their driving behavior, and the government and insurers will pursue them accordingly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TN4KuFt0NTo-eGJntwYeiw.jpeg" /></figure><p>Are you going to allow this to happen? Freedom is at stake and we are allowing it.</p><p>Full Article: <a href="https://eixel.io/2024/04/06/they-dont-sell-cars-they-sell-your-life/">https://eixel.io/2024/04/06/they-dont-sell-cars-they-sell-your-life/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19b057c45b2b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jump Bag Essentials for Cybersecurity Incident Response Teams]]></title>
            <link>https://medium.com/@kryptologyst/jump-bag-essentials-for-cybersecurity-incident-response-teams-65c67f3c356b?source=rss-9333a947c396------2</link>
            <guid isPermaLink="false">https://medium.com/p/65c67f3c356b</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[incident-response]]></category>
            <dc:creator><![CDATA[Kryptologyst]]></dc:creator>
            <pubDate>Sun, 11 Feb 2024 20:37:29 GMT</pubDate>
            <atom:updated>2024-02-11T20:37:29.369Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iy5V16TuUpXXouSLecqTRQ.jpeg" /></figure><p>In the landscape of cybersecurity, preparedness is key. Incident Response (IR) teams must be ready to act swiftly and efficiently to mitigate the impacts of cyber incidents. A crucial component of this readiness is the assembly of a “jump bag” — a collection of tools and resources that can be quickly deployed to address a wide range of cybersecurity incidents. This article delves into the essential software and hardware tools that should be included in every cyber response team’s jump bag, ensuring they are prepared to tackle any challenges they may face.</p><h4>Hardware Essentials</h4><h4>Additional Laptop or Forensic Workstation</h4><p>A dedicated device for each team member is critical for preserving disk images, analyzing data, and conducting investigations without restrictions. Given the nature of the work, where malware and other malicious artifacts are often analyzed, it’s imperative that these devices are equipped to handle such threats safely, often requiring the disabling of standard protective measures like antivirus software.</p><h4>Digital Forensic Tools</h4><p>Tools for image acquisition and analysis are vital. These include write blockers to prevent any accidental data writing to the devices being investigated, and hard drives dedicated to forensic imaging.</p><h4>Memory Capture Tools</h4><p>For capturing and analyzing volatile data from RAM, which can be crucial for understanding what processes were running on a device at the time of an incident.</p><h4>Live Response Tools</h4><p>Necessary for capturing system state and activity in real-time, providing valuable insights into ongoing incidents.</p><h4>Network Analysis Tools</h4><p>Devices and software for capturing and analyzing network traffic can help identify malicious activity and its source.</p><h4>Physical Tools</h4><p>Screwdrivers, tweezers, and other hand tools may be required for disassembling devices to access internal components or for repairs.</p><h4>Connectivity Supplies</h4><p>An assortment of network cables, switches, and possibly even portable routers can ensure that team members can establish a network wherever they are, facilitating communication and data transfer.</p><h3>Software Essentials</h3><h4>Log Analysis Tools</h4><p>Software that can sift through, correlate, and analyze log data from various sources is indispensable for identifying the scope and impact of a security breach.</p><h4>Indicator of Compromise (IOC) Tools</h4><p>The ability to create, manage, and search for IOCs across an organization’s digital environment allows teams to detect breaches more effectively.</p><h4>Encryption Software</h4><p>To secure sensitive data during and after an investigation, encryption tools are a must.</p><h4>Incident Handling Systems</h4><p>A robust, ideally cloud-based, incident handling system allows for the management of incidents outside the organization’s compromised infrastructure.</p><h4>Ticket Tracking System</h4><p>Essential for managing the workflow of responding to incidents, ensuring that tasks are assigned, tracked, and completed efficiently.</p><h3>Additional Considerations</h3><h4>Chain of Custody Forms</h4><p>These are critical for maintaining the integrity of evidence and ensuring that all investigative actions are properly documented.</p><h4>Secure Storage Facility</h4><p>A physically secure location for storing sensitive evidence and tools, preventing unauthorized access.</p><h4>Preparedness and Training</h4><p>Beyond having the right tools, teams must be well-versed in using them effectively. Regular training and drills can ensure that when the time comes, the team can deploy their jump bag contents efficiently and effectively.</p><h4>Wrap-U</h4><p>A well-prepared jump bag is more than just a collection of tools; it’s a manifestation of an incident response team’s readiness to face cybersecurity threats head-on. By ensuring that this bag is stocked with the necessary software and hardware, teams can significantly reduce response times and mitigate the impacts of cyber incidents more effectively. In the dynamic field of cybersecurity, where every second counts, having a jump bag ready at a moment’s notice is not just an advantage — it’s a necessity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65c67f3c356b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Hidden Dangers of SuperCookies: Beyond the Protection of VPNs]]></title>
            <link>https://medium.com/@kryptologyst/the-hidden-dangers-of-supercookies-beyond-the-protection-of-vpns-197955d4f8e4?source=rss-9333a947c396------2</link>
            <guid isPermaLink="false">https://medium.com/p/197955d4f8e4</guid>
            <category><![CDATA[data-protection]]></category>
            <category><![CDATA[supercookie]]></category>
            <category><![CDATA[online-privacy]]></category>
            <category><![CDATA[privacy-concern]]></category>
            <category><![CDATA[user-tracking]]></category>
            <dc:creator><![CDATA[Kryptologyst]]></dc:creator>
            <pubDate>Fri, 02 Feb 2024 03:39:20 GMT</pubDate>
            <atom:updated>2024-02-02T03:39:20.351Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XIzNS0NH1sXRRu-Nya0Zjw.jpeg" /></figure><p>In today’s digital age, the quest for online privacy is akin to a modern-day David versus Goliath. With corporations continually seeking new ways to monitor our digital footprints, the narrative of internet privacy is evolving, and not necessarily for the better. The introduction of “SuperCookies” represents a significant chapter in this ongoing saga, underscoring the limitations of conventional privacy tools like VPNs in safeguarding personal data.</p><h4>The Naive Beginnings of Data Collection</h4><p>The origins of data collection on the internet were marked by a certain innocence. Initially, cookies were designed with benign intentions, facilitating a more personalized and convenient web browsing experience. However, this idealistic view quickly clashed with reality as the potential for misuse became evident. By the mid-1990s, the privacy implications of cookies had already prompted regulatory scrutiny and calls for stricter controls.</p><h4>The Emergence of SuperCookies</h4><p>SuperCookies, however, represent a quantum leap in tracking capabilities. Unlike traditional cookies, which can be managed and deleted by users, SuperCookies employ various methods to persistently identify and track users across the web. These methods include exploiting flaws in Flash technology, manipulating HTTP headers, and leveraging the HSTS (HTTP Strict Transport Security) policy in ways that traditional privacy measures struggle to counter.</p><h4>The Flash SuperCookie Era</h4><p>Flash technology, once a cornerstone for rich web content, became a vehicle for invasive tracking through Local Shared Objects (LSOs). These Flash cookies could store extensive information about users and were not subject to the same controls as standard web cookies. The persistence and cross-browser accessibility of LSOs made them a particularly insidious form of SuperCookie, leading to widespread privacy concerns until the eventual decline of Flash in favor of HTML5.</p><h4>HTTP SuperCookies and Corporate Surveillance</h4><p>The case of Verizon highlights a more direct approach to tracking via SuperCookies. By inserting unique identifier headers (UIDH) into HTTP requests, Verizon was able to track users’ web activities for targeted advertising, all without their consent or knowledge. This practice, although eventually curtailed through regulatory action and the shift towards SSL/TLS encryption, illustrates the extent to which ISPs can exploit their position to monitor users.</p><h4>HSTS SuperCookies: A Clever Exploit</h4><p>HSTS SuperCookies utilize the HSTS policy to covertly track users. By manipulating the policy’s implementation, trackers can create a unique identifier based on how a browser accesses different domains. While this method is more theoretical and complex, it demonstrates the lengths to which trackers will go to circumvent privacy protections.</p><h4>HTML5 and the Future of Tracking</h4><p>With the transition to HTML5, the internet has seen a resurgence in tracking capabilities. The standard’s advanced features, while enhancing web functionality, also provide new avenues for creating digital fingerprints of users. Techniques such as canvas fingerprinting and the use of local storage for tracking purposes highlight the ongoing challenge of maintaining privacy online.</p><h4>The Persistent Threat of Cache SuperCookies</h4><p>Another innovative tracking method involves the manipulation of browser cache. By encoding unique identifiers in cached resources, trackers can identify and follow users across different sites. Although browser developers are actively working to mitigate such threats, the arms race between privacy advocates and trackers continues.</p><h4>Looking Ahead: The Battle for Privacy Continues</h4><p>The saga of SuperCookies versus privacy tools is a testament to the dynamic and often adversarial nature of the internet. As technology evolves, so too do the methods of tracking and surveillance. While tools like VPNs and HTTPS offer essential layers of protection, they are not panaceas. The fight for online privacy is ongoing, requiring vigilance, awareness, and the continual development of new defenses.</p><p>In this age, where every click and keystroke can be monitored, the importance of understanding and combating SuperCookies cannot be overstated. As we navigate the complexities of internet privacy, it is crucial to stay informed and proactive in protecting our digital selves.</p><p>This exploration only scratches the surface of the vast and complex landscape of online privacy. For those looking to dive deeper into understanding SuperCookies and arm themselves with knowledge to better protect their digital footprint, a full and detailed exploration awaits at <a href="https://eixel.io/2024/02/01/vpn-wont-save-you-how-personal-data-is-collected-through-supercookies/">eixel.io</a>. Here, you’ll find comprehensive insights into the mechanisms of SuperCookies, the evolution of tracking technologies, and practical advice on safeguarding your privacy in the ever-evolving digital age.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=197955d4f8e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Problem Solving in Cybersecurity]]></title>
            <link>https://medium.com/@kryptologyst/understanding-problem-solving-in-cybersecurity-8fbc112e5131?source=rss-9333a947c396------2</link>
            <guid isPermaLink="false">https://medium.com/p/8fbc112e5131</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[problem-solving]]></category>
            <dc:creator><![CDATA[Kryptologyst]]></dc:creator>
            <pubDate>Thu, 11 Jan 2024 02:11:31 GMT</pubDate>
            <atom:updated>2024-01-11T02:11:31.064Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4jhfWw4_OTeu4aaWPHgMjA.jpeg" /></figure><p>Problem solving is super important in cybersecurity. It’s all about fixing issues and coming up with solutions. Being a great problem solver is a big part of being good at cybersecurity.</p><p>There are two types of skills you need for this:</p><p><strong>Technical skills </strong>— Knowing about computers and security.</p><p><strong>Non-technical skills</strong> — Being good at talking to people and working in teams.</p><h3>Ways to Solve Problems</h3><p>Here are some easy ways to start solving problems:</p><ul><li>Look for patterns.</li><li>Break the problem into smaller parts.</li><li>Make tables, diagrams, or equations.</li><li>Start from the end and work backwards.</li><li>Create tests that show you’ve found the right solution.</li><li>Solve an easier problem first.</li></ul><h3>Algorithmic Thinking</h3><p>This means making a step-by-step plan to solve a problem. For example, if you need to check all the devices on a network, you could:</p><ol><li>Choose which devices to check.</li><li>Pick tools to help you scan the network.</li><li>Set up the tools and test them.</li><li>Scan a few devices first to see if it works.</li><li>Check the results and make sure they’re right.</li><li>Keep track of what you find.</li></ol><h3>Divide and Conquer</h3><p>This approach is about breaking a big problem into smaller parts. Here’s how you can use this in writing software:</p><ul><li>Write short, clear functions.</li><li>Each function should do one thing.</li><li>Name functions and variables clearly.</li><li>Keep your coding style consistent.</li><li>Use comments only when needed.</li><li>Regularly improve your code.</li><li>Avoid making your code too complicated.</li><li>Don’t use too many inputs in your functions.</li></ul><h3>Simulation and Modeling</h3><p>This is like making a computer model to test different ideas. You can use it to see how changes might work before you actually make them.</p><h3>Root Cause Analysis (RCA)</h3><p>RCA is about finding the real reason behind a problem. It’s like being a detective for computer issues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*4uw_njJeOT26gLN_BQqTkg.png" /></figure><h3>Debugging</h3><p>This is when you find and fix errors in software. Here’s how you can do it:</p><ol><li>Get your tools ready and find a safe place to test your code.</li><li>Use a debugger to see where the problem is.</li><li>Focus on finding exactly where the issue is.</li><li>Watch your code as it runs to spot errors.</li><li>Check what your code is doing at different points.</li><li>Try different fixes to see if they work.</li><li>After fixing, test your code to make sure it’s all good.</li></ol><h3>The Pólya Method</h3><p>This is a four-step approach to solving problems:</p><ol><li><strong>Understand the Problem </strong>— Ask questions to really get what the issue is.</li><li><strong>Devise a Plan</strong> — Think of different ways to solve the problem.</li><li><strong>Carry Out the Plan </strong>— Work on your solution, step by step.</li><li><strong>Look Back</strong> — After solving it, think about what you learned and how you can get better.</li></ol><p>Remember, problem solving is a big part of cybersecurity, and being good at it makes you much more effective!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8fbc112e5131" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>