Writing

Before You Share What You Built, Read It Like an Attacker

I read my own article as an attacker before it went out. Three details did not survive, and on publishing day my last check failed open. Here is the method, and the slip.

Operational Security Data Leakage Prevention Redaction Audit Evidence
A hand-drawn floor plan of a small house on parchment, lying on a wooden desk under a brass magnifying glass. Some rooms are covered by solid dark blocks; the front door carries a glowing lock.
Would I hand this to a stranger as a plan of my house?
1 rule 3 findings 3 fixes 1 slip
defend it automatically, or do not publish it found by reading my own draft as an attacker each checked live before the article went out kept in, because it taught the most

Every engineer who shares their work is publishing a map. Most never check what the map shows.

Last week I published a blueprint for a private AI assistant, built on consumer hardware and run the way a network engineer would run it. Before it went out, I asked myself a simple question. Would I hand this article to a stranger as a plan of my house?

The honest answer, on the first draft, was no. Not because it held secrets, but because of what it let a careful reader work out. That gap, between what you meant to share and what someone can infer, is what this piece is about. I also got one thing wrong on the day I published. I am keeping it in, because it taught me more than the things I got right.

The rule I set myself

I gave myself one rule before publishing anything about my own systems:

If a detail could help someone target what I built, either it must be defended automatically, or it does not get published.

"Defended automatically" matters. A defence that depends on me noticing an attack at three in the morning is not a defence. A sign-in that every request must pass, a network that admits only devices I have signed, a port that is simply closed: those work whether I am watching or not.

The rule gives every detail three possible outcomes. Defend it, then publish it. Generalise it until it helps no one. Or withhold it. There is no fourth option called "probably fine".

Three questions any board should ask

You do not need to be technical to apply this. Before your organisation shares a case study, a conference talk, a job post or an engineer's proud LinkedIn thread, three questions cover most of the risk.

  1. What did we just tell an attacker? Not what we meant to say. What can a patient reader infer: which products, which versions, how the parts connect, when things run, who has access.
  2. Can we defend it without anyone lifting a finger? If the answer depends on a person spotting trouble in time, treat the detail as unpublished.
  3. Who checked, and where is the evidence? Name an owner, as you would for a change approval. A review nobody can show is a review that did not happen. Keep the receipts.

None of this is new

Attackers have always started with what you publish. MITRE ATT&CK, the reference catalogue of attacker behaviour, lists searching open websites and social media as a reconnaissance technique in its own right. Before anyone touches your network, they read about it.

What they read is often more revealing than what they can scan. A University of Washington study compared the technology an organisation's public writing gives away, such as job posts, with what automated scanning finds. The two barely overlapped. In ten of the twelve organisations studied, they had nothing in common at all. Your engineers' words are a second attack surface, and your scanners cannot see it.

The most famous example did not involve a single line of code. In January 2018, an analyst noticed that a fitness app's global heatmap, built from users' runs, outlined military bases and the daily routes of the people inside them. Every individual run was harmless. Together they drew a map.

Secrets leak the same way. GitGuardian counted 28.65 million new secrets, such as passwords and access keys, added to public GitHub in 2025, a third more than the year before. Of the working secrets it found in 2022, more than 64% still worked when it tested them again in January 2026.

The method to deal with this is nearly forty years old. In 1988 the United States set out a five-step operations security process: identify what is critical, analyse the threat, analyse your weaknesses, assess the risk, apply countermeasures. It starts from a point every engineer who posts online should keep in mind: most of what an adversary learns comes from information that is openly available. My rule is that process, compressed to one sentence for someone publishing alone.

What has changed is the cost of reading. Anyone can now paste your post, and every post you wrote before it, into an AI model and ask what the whole set reveals. Joining up harmless details is exactly what these models do well. So I did that first, to my own draft.

For leaders: your people already publish maps of your systems, with the best intentions. The control is not to stop them sharing. It is to make sure someone reads the map before it goes out. (The checklist)

From the practitioner's journal: one article, three findings

The draft of last week's article named the tools I use and described how the parts connect. Reading it as an attacker, I listed every detail and what it would give away, then checked each against my live setup rather than my memory of it. Three things did not survive.

A service with no sign-in of its own. One self-hosted tool was reachable from my private network without passing the sign-in gate that guards everything else. Only my own devices could reach it, but "only my devices" is exactly the assumption an attacker hopes you make. I turned it off on that network.

A network that trusted its provider completely. My private network admits devices through an account with the network provider. If that account were ever taken over, someone could have added a device of their own. I switched on device signing: a new device now needs a signature from a machine I hold, whatever happens to the account.

Old doors left open. Legacy file-sharing and network discovery services were listening on the private network, as they do by default. Nothing needed them there. A firewall rule now closes them on that network.

Then I checked the rest: every remaining service on the private network refuses a request without a sign-in. Only after that did the article's mention of the tools pass my own rule. They are published because they are defended, not because they are obscure.

For auditors: the evidence is the sequence. A finding, a fix, a check that the fix holds, all before publication, with dates. (Control mapping)

Defend, generalise or withhold

Once the findings were fixed, every remaining detail went into one of the three buckets.

Detail Decision Why
Names of the tools Published Defended: everything sits behind a sign-in gate, and nothing accepts connections from the internet
Counts, costs, call volumes Published Generalised by nature: they show scale, not a way in
How the parts connect, at the level of a diagram Published Defended, and the diagram shows the controls, not the addresses
Machine names, network names, ports, software versions Withheld No value to a reader; real value to an attacker
Schedules tied to named jobs Withheld A timetable tells someone when to try
Private or Personal data (the two most sensitive of last week's four classes) Never in scope No route exists from that data to a published page

The line that decides most cases: share the method, not the map. Readers want to know how to build something like it. Only an attacker needs to know where yours is.

One thing I would do differently next time. I decided detail by detail. The heatmap teaches that this is not enough: after the last decision, read the published details together, alongside what you have published before, and ask what the combination gives away.

Redact by allow-list, not deny-list

Screenshots were the hardest part. A real screen from a running system is the most persuasive thing you can publish, and the most dangerous.

Redaction fails in predictable ways. In 2019, lawyers in a high-profile US case filed a document with black boxes drawn over text that could still be copied and pasted. In 2023, researchers showed that a phone's built-in cropping tool, and a popular desktop screenshot tool, left recoverable parts of the original image inside the cropped file. An open-source tool called Depix can recover pixelated text from screenshots in the right conditions. Boxes over text, cropping and blurring are all cosmetic. The data is still there.

A sample status panel with made-up data, before and after redaction. Only route, calls today and cost survive; every other label and value becomes a solid bar. Below, three ways redaction fails: blur, a box drawn over text, and cropping.
Redact by allow-list. Sample data, made up.

So I turned the usual approach around.

  • Allow, do not deny. Instead of listing what to hide and hoping the list was complete, I listed the few labels allowed to stay. Everything else became a solid bar. A new label that appears tomorrow is hidden by default.
  • Redact a copy, not the system. The screens were captured in a throwaway browser that was deleted afterwards. The real system was never changed.
  • Solid bars, never blur. Nothing to reverse.
  • Redact twice. Live panels redraw themselves, so the redaction ran again just before capture, then a scan looked for anything that slipped through.
  • A person approves every image. I looked at each one and could reject it. One whole page, my personal task list, never left the machine at all.

For engineers: if your redaction depends on a list of secrets, your redaction is only as complete as your memory. Invert it. (Checklist, step 6)

The slip I am keeping in

Here is the part I could have left out.

At the moment of publishing, my final privacy check, a search across the finished page for anything that should not be there, had a typo in its search pattern. The check failed with an error. The publish step ran anyway, because nothing tied the two together. In firewall terms, the check failed open. The article went live without its last check.

I reran the check on the live page straight away. It was clean. Nothing private had gone out. But the lesson was not about this article. A check that fails open is not a gate. It is a suggestion.

So I rebuilt it as a gate that fails closed. It now runs on every publish from my machine, by itself, and blocks the publish unless it passes. The list of words it looks for lives outside the public site, so the gate cannot leak what it guards. If that list is missing, it blocks. If the gate itself breaks, it blocks. Then I tested it the way an auditor would: a known clean publish passes, a page seeded with a private address is stopped, a missing list is stopped. The first version of the fix did not even run on my machine, which the test caught before I relied on it.

Two honest limits. First, the gate is a deny-list, the very approach I warned against for screenshots. That is deliberate: it is the last layer, not the first. The allow-list does the redaction; the deny-list catches what slips past every earlier step, such as a private word typed into the body copy. It reads text, so images still rely on the redaction steps and a person's approval. Second, it runs on my machine, and I could choose to skip it. For one person publishing, I accept that. For a team, the same check belongs on the server that publishes, where nobody can skip it.

That is the whole article in one incident. The risk was not the typo; people make typos. The risk was a control that depended on someone noticing. Defend it automatically, or it is not defended.

What to take away

If you lead: ask your teams to read their own posts as an attacker before they publish, name who owns that read, and ask to see the evidence, not the promise.

If you audit: look for a pre-publication check that fails closed and that the person publishing cannot skip, a dated record of what it found, and fixes verified before release.

If you build: share the method, not the map. Defend it, generalise it, or keep it back.

You cannot stop people reading what you publish. You can make sure that what they read is defended, and you can keep the receipts.


Appendix A: the pre-publication checklist

  1. Read it as an attacker. List every product, version, connection, schedule, name and number in the draft, the screenshots and, if you share code, the repository and its history. Ask what each lets someone infer.
  2. Then read it all together. Details that are safe one at a time can be unsafe in combination. Include what you have published before.
  3. Check the live system, not your memory of it. For every detail you intend to publish, confirm the defence is in place today.
  4. Decide per detail. Defend and publish, generalise, or withhold. Nothing is "probably fine".
  5. Classify the content itself. Nothing Private or Personal belongs in a published piece. Structure beats detection: keep that data where no publishing path reaches it.
  6. Redact by allow-list. Solid bars, on a copy, redacted twice, scanned, and approved by a person. Never blur, crop or draw boxes over live text.
  7. Gate the publish. An automatic check that blocks on a match, on a missing list and on its own failure, kept as the last layer. Test it with a clean case, a dirty case and a broken case. For a team, run it where the person publishing cannot skip it.
  8. Keep the receipts. Dated findings, fixes and checks, kept where an auditor could see them.

A prompt for steps 1 and 2. Run it on a local model while the draft is still private:

You are planning an attack on the system described below. List every detail that helps you and what you would infer from it. Then list what you would infer from the details together. Then say what you would try first, and why.

Appendix B: control mapping

Indicative only: a guide to where each step sits, not a claim of certification.

Step ISO/IEC 27001:2022 Annex A NIST CSF 2.0 MITRE
Read it as an attacker, alone and together A.5.7 Threat intelligence ID.RA (risk assessment) ATT&CK T1593 (reconnaissance through open websites)
Check the live system A.8.8 Management of technical vulnerabilities ID.RA, PR.PS
Classify the content A.5.12 Classification of information ID.AM, PR.DS
Redact and gate A.8.12 Data leakage prevention; A.5.14 Information transfer PR.DS (data security) D3FEND: outbound content filtering
Keep the receipts A.5.33 Protection of records GV.OV, DE.AE

Appendix C: sources

  • MITRE ATT&CK, T1593 Search Open Websites/Domains. attack.mitre.org/techniques/T1593
  • University of Washington, Enhancing Technology Fingerprinting Through Human-Generated OSINT (thesis).
  • Strava global heatmap and military bases: reporting from 29 January 2018, including NPR.
  • GitGuardian, The State of Secrets Sprawl 2026, March 2026. blog.gitguardian.com/the-state-of-secrets-sprawl-2026
  • NSDD 298, National Operations Security Program, January 1988.
  • American Bar Association, Embarrassing Redaction Failures, Judges' Journal, Spring 2019.
  • aCropalypse: CVE-2023-21036 and CVE-2023-28303, March 2023.
  • Depix, a proof of concept for recovering text from pixelated screenshots. codeberg.org/spipm/Depixelization_poc

About this piece: built in my personal space, on my own data, with my own views. It is a personal project, written for anyone who shares what they build, and not related to my employment. Not legal or professional security advice.

Collaborate

Corrections, counterexamples, and build ideas welcome. [email protected] • How to collaborate.

Disclosures

Personal project and personal views. Not legal, regulatory or professional security advice. No vendor relationships. Full disclosures.

What ऋतPulse means

rtapulse.com (ऋतPulse) combines ऋत (ṛta / ṛtá), order, rule, truth, rightness, with Pulse (a living signal of health). It reflects how I think GRC should work: not a quarterly scramble, but a steady rhythm, detect drift early, keep evidence ready, and translate risk into decisions leaders can act on.