{"title":"\u203b hackd","subtitle":"hackd - security & risk","icon":"https:\/\/hackd.net\/icon-512.png","id":"https:\/\/hackd.net\/","link":[{"@attributes":{"rel":"self","type":"application\/atom+xml","href":"https:\/\/hackd.net\/atom.xml"}},{"@attributes":{"rel":"alternate","type":"text\/html","href":"https:\/\/hackd.net\/"}}],"updated":"2026-09-18T14:44:08.894Z","author":{"name":"roguesys"},"entry":[{"title":"Hacking OpenAI","id":"https:\/\/hackd.net\/posts\/hacking-openai\/","link":[{"@attributes":{"rel":"alternate","type":"text\/html","href":"https:\/\/www.hacktron.ai\/blog\/hacking-openai"}},{"@attributes":{"rel":"related","type":"text\/html","href":"https:\/\/hackd.net\/posts\/hacking-openai\/"}}],"published":"2026-09-18T14:44:08.894Z","updated":"2026-09-18T14:44:08.894Z","content":"<p>Everyone is extremely worried that models are going to hack the planet and end\ncivilization, all the while in reality we\u2019re still seeing unsandboxed parsers in\nmemory unsafe languages delivering the goods to attackers like it\u2019s the 90s.<\/p>\n<blockquote>\n<p>You don\u2019t need AI to hack unpatched systems and default password VNC. We have\nbasic cyber hygiene problems that we have to clean up if we want to climb the\nladder to some of the more serious protections necessary to get us to the\npost-Hugging Face level.<\/p>\n<\/blockquote>\n<p><cite>\u2014 Alex Stamos, <a href=\"https:\/\/alexstamos.com\/p\/moving-forward-from-hot-fable-summer\">\u201cMoving forward from hot Fable summer\u201d<\/a><\/cite><\/p>","category":[{"@attributes":{"term":"ai"}},{"@attributes":{"term":"llm"}},{"@attributes":{"term":"security"}},{"@attributes":{"term":"quote"}}]},{"title":"RL economics, morally charged terms, and \"distillation\"","id":"https:\/\/hackd.net\/posts\/rl-economics-morally-charged-terms-and-distillation\/","link":[{"@attributes":{"rel":"alternate","type":"text\/html","href":"https:\/\/addxorrol.blogspot.com\/2026\/06\/rl-economics-morally-charged-terms-and.html"}},{"@attributes":{"rel":"related","type":"text\/html","href":"https:\/\/hackd.net\/posts\/rl-economics-morally-charged-terms-and-distillation\/"}}],"published":"2026-08-28T01:14:23.336Z","updated":"2026-08-28T01:14:23.336Z","content":"<blockquote>\n<p>It will be easy to convince yourself that the flaw in your business model that\ngives your competitors a way to catch up with lesser investment is a moral\noutrage - it is so unjust! - and then complain about the fact that others have\nthe right to do what they are doing.<\/p>\n<\/blockquote>\n<p><cite>\u2014 Halvar Flake<\/cite><\/p>","category":[{"@attributes":{"term":"quote"}},{"@attributes":{"term":"ai"}},{"@attributes":{"term":"llm"}}]},{"title":"So what is this red teaming thing anyway?","id":"https:\/\/hackd.net\/posts\/so-what-is-this-red-teaming-thing-anyway\/","link":{"@attributes":{"rel":"alternate","type":"text\/html","href":"https:\/\/hackd.net\/posts\/so-what-is-this-red-teaming-thing-anyway\/"}},"published":"2026-08-17T23:57:11.111Z","updated":"2026-08-17T23:57:11.111Z","summary":"A grounding definition.","content":"<p>Seeing how I like to talk about offensive security around here, I should\nprobably clarify what I mean about some things, like red teaming. There are\nplenty of running definitions out there, but just to have something to anchor on\nfor now: <sup><a href=\"https:\/\/hackd.net\/posts\/so-what-is-this-red-teaming-thing-anyway\/#user-content-fn-1\" id=\"user-content-user-content-fnref-1\" data-footnote-ref=\"\" aria-describedby=\"user-content-footnote-label\">1<\/a><\/sup><\/p>\n<p><strong>Red teams apply adversarial methods to identify where there\u2019s divergence\nbetween an organization\u2019s intended position on a topic, and reality.<\/strong><\/p>\n<p>The organizational position on the topic of security could be something like:\n\u201cOur perimeter is secure and our defenses are strong, including our ability to\ndetect and respond to attacks.\u201d<\/p>\n<p>\u201cWhat if it isn\u2019t though?\u201d: a red team does the work to (in)validate that stated\nposition through repeated end-to-end testing (operations), playing the role of a\ndetermined, goal-driven attacker. In doing so, the red team can establish the\ntruth about preventive, detective, and corrective controls and capabilities as\nthey actually exist.<\/p>\n<p>For a red team to be effective, what\u2019s non-negotiable, in my view, is the\n<strong>adversarial<\/strong> part: the ability to think and operate free of as many\nassumptions and constraints as possible. To be creative, persistent, and\nunorthodox.<\/p>\n<p>Note that I\u2019m very deliberately avoiding the technical specifics here. I think\nthose are a very important implementation detail, but fundamentally shift focus\naway from the core of what red teams do. Sure, frequently it looks like: find a\nbug, maybe even a 0-day vulnerability, then move internally through various\nsystems towards the goal, write up the findings, help with remediation. But\nthose aren\u2019t requirements. Red teams are not a vulnerability-finding function\n(though incidentally they do find a lot of issues), and in the extreme they\ndon\u2019t even have to be technical all the time. Operations are usually live, with\nattacks being executed against the production environment of the organization,\nbut it\u2019s also legitimate to run tabletops when the risk is too high to do\notherwise (or to expedite the process).<\/p>\n<p>All the technical stuff is largely a function of what red teaming looks like in\npractice today. But it\u2019s not fundamental to the concept. Lateral thinking and\nexperimentation are.<\/p>\n<section data-footnotes=\"\" class=\"footnotes\"><h2 class=\"sr-only\" id=\"user-content-footnote-label\">Footnotes<\/h2>\n<ol>\n<li id=\"user-content-user-content-fn-1\">\n<p>This post may get updated occasionally <a href=\"https:\/\/hackd.net\/posts\/so-what-is-this-red-teaming-thing-anyway\/#user-content-fnref-1\" data-footnote-backref=\"\" aria-label=\"Back to reference 1\" class=\"data-footnote-backref\">\u21a9<\/a><\/p>\n<\/li>\n<\/ol>\n<\/section>","category":[{"@attributes":{"term":"offensive security"}},{"@attributes":{"term":"red team"}},{"@attributes":{"term":"essay"}}]},{"title":"Fix the News","id":"https:\/\/hackd.net\/posts\/fix-the-news\/","link":[{"@attributes":{"rel":"alternate","type":"text\/html","href":"https:\/\/fixthenews.com\/library"}},{"@attributes":{"rel":"related","type":"text\/html","href":"https:\/\/hackd.net\/posts\/fix-the-news\/"}}],"published":"2026-08-12T21:26:12.303Z","updated":"2026-08-12T21:26:12.303Z","content":"<blockquote>\n<p>Progress isn\u2019t a rule, it\u2019s contested terrain, fought for daily by millions of\npeople who refuse to give in to despair.<\/p>\n<\/blockquote>\n<p>It\u2019s easy to feel overwhelmed at times, looking upon the seemingly\ninsurmountable efforts needed to right the world. Yet, good things are happening\nout there, every day. <a href=\"https:\/\/fixthenews.com\/library\">Fix the News<\/a> has been my\nfavorite source of positive stories for a long while.<\/p>","category":{"@attributes":{"term":"quote"}}},{"title":"A policy on AI in writing","id":"https:\/\/hackd.net\/posts\/a-policy-on-ai-in-writing\/","link":[{"@attributes":{"rel":"alternate","type":"text\/html","href":"https:\/\/sophiebits.com\/2026\/06\/25\/there-are-no-lossless-transformations-of-natural-language-text"}},{"@attributes":{"rel":"related","type":"text\/html","href":"https:\/\/hackd.net\/posts\/a-policy-on-ai-in-writing\/"}}],"published":"2026-08-12T01:19:22.934Z","updated":"2026-08-12T01:19:22.934Z","content":"<p>A good policy, well-articulated. Detail != clarity.<\/p>\n<p>(Related: <a href=\"https:\/\/noslopgrenade.com\/\">no slop grenade<\/a>)<\/p>","category":[{"@attributes":{"term":"ai"}},{"@attributes":{"term":"llm"}}]},{"title":"Offensive security is a reality test","id":"https:\/\/hackd.net\/posts\/offensive-security-is-a-reality-test\/","link":[{"@attributes":{"rel":"alternate","type":"text\/html","href":"https:\/\/andywgrant.substack.com\/p\/offensive-security-is-a-reality-test"}},{"@attributes":{"rel":"related","type":"text\/html","href":"https:\/\/hackd.net\/posts\/offensive-security-is-a-reality-test\/"}}],"published":"2026-08-05T18:11:29.239Z","updated":"2026-08-05T18:11:29.239Z","content":"<p>Distilling what a Red Team does can be difficult at times, because frequently\npeople focus on the tactical findings: this vulnerability, that\nmisconfiguration, some control that didn\u2019t work or doesn\u2019t exist. Those are all\nvaluable and important aspects of the work, no doubt, and they\u2019re the common\nartifacts of operations. But they\u2019re not the essence.<\/p>\n<p>I like Andy\u2019s characterization of red teaming as a truth-finding function, and\nit\u2019s very close to how I\u2019ve been describing the work as well. Taking a\ncontrarian position to a given claim (\u201cOur data is secure.\u201d) and then working to\nvalidate that hypothesis, to find the truth.<\/p>","category":[{"@attributes":{"term":"offensive security"}},{"@attributes":{"term":"red team"}}]},{"title":"Prompt injection as role confusion","id":"https:\/\/hackd.net\/posts\/prompt-injection-as-role-confusion\/","link":[{"@attributes":{"rel":"alternate","type":"text\/html","href":"https:\/\/role-confusion.github.io\/"}},{"@attributes":{"rel":"related","type":"text\/html","href":"https:\/\/hackd.net\/posts\/prompt-injection-as-role-confusion\/"}}],"published":"2026-06-23T03:52:27.233Z","updated":"2026-06-23T03:52:27.233Z","content":"<p>It seems intuitively true that it is not possible to secure a system with an\napproach that\u2019s enmeshed with the input mechanism through which attacks also\narrive; we\u2019ve done much better using out-of-band controls to avoid commingling\ncode and data. Still, it\u2019s great to see this research land and confidently show\nthis:<\/p>\n<blockquote>\n<p>Role tags were a formatting trick that became the security architecture and\nthe cognitive scaffolding of modern LLMs. We\u2019ve shown that this architecture\ndoesn\u2019t survive into the model\u2019s actual representations, and that such role\nconfusion is linked to prompt injection.<\/p>\n<p>Unless LLMs achieve genuine role perception, we think injection defense will\nremain a perpetual whack-a-mole game. And the continuous nature of role\nboundaries opens the threat of injections designed to subtly shift LLM states\nthrough seemingly innocuous text, legally and at scale.<\/p>\n<\/blockquote>","category":[{"@attributes":{"term":"ai"}},{"@attributes":{"term":"llm"}},{"@attributes":{"term":"security"}},{"@attributes":{"term":"quote"}}]},{"title":"We are living in Pinocchio's world","id":"https:\/\/hackd.net\/posts\/we-are-living-in-pinocchios-world\/","link":[{"@attributes":{"rel":"alternate","type":"text\/html","href":"https:\/\/om.co\/2026\/05\/25\/we-are-living-in-pinocchios-world\/"}},{"@attributes":{"rel":"related","type":"text\/html","href":"https:\/\/hackd.net\/posts\/we-are-living-in-pinocchios-world\/"}}],"published":"2026-06-03T17:06:56.518Z","updated":"2026-06-03T17:06:56.518Z","content":"<blockquote>\n<p>The grifters and the hucksters and the influencers selling impossible things\nsucceed because audiences reward certainty and punish doubt. They honor\nconfidence and resist complication. A clean story about a genius who will fix\neverything travels faster than a difficult story about tradeoffs.<\/p>\n<\/blockquote>\n<p>Skepticism is always healthy. Mostly everything has trade-offs, apparent or not,\nso you have to keep going until you can see their shape.<\/p>","category":{"@attributes":{"term":"quote"}}},{"title":"uv lock files and malware on PyPI","id":"https:\/\/hackd.net\/posts\/uv-lockfiles-and-malware-on-pypi\/","link":{"@attributes":{"rel":"alternate","type":"text\/html","href":"https:\/\/hackd.net\/posts\/uv-lockfiles-and-malware-on-pypi\/"}},"published":"2026-04-07T15:43:05.118Z","updated":"2026-04-07T15:43:05.118Z","summary":"A potentially surprising interplay between these two systems means you might get compromised by deleted packages.","content":"<p>I\u2019m pretty sure that saying \u201csoftware supply chain security is important\u201d won\u2019t\nwin anyone a prize, yet we see quite an alarming ramp-up in malicious campaigns\nthat take advantage of various gaps in the space, despite all the industry\nattention. Some problems take time to fix, but there\u2019s a lot more we could be\ndoing today that isn\u2019t for lack of technology, but organizational friction.\nAnyway, we\u2019re not here to discuss that right now.<\/p>\n<p>The <a href=\"https:\/\/www.wiz.io\/blog\/threes-a-crowd-teampcp-trojanizes-litellm-in-continuation-of-campaign%3E\">LiteLLM compromise<\/a> was interesting to watch, especially the\nimpact on downstream consumers. Essentially, everyone that installed or happened\nto update the <code>LiteLLM<\/code> package (or something that depended on it) got\ncompromised, as the newest (malicious) version was pulled in their environment.<\/p>\n<p>One of the ways to reduce this kind of thing from happening is to use lock files\nin the package managers that support them. Lock files are a record of all\ndependencies for a given package, including versions and cryptographic hashes.\nUpdating the lock file happens intentionally, during development, but deploying\nthe package in production uses the lock file as-is, installing known-good\nversions as specified. This also has some other non-security related properties,\nlike making sure the versions of packages you\u2019re deploying won\u2019t magically break\nthings because of upstream changes. So you do your dev work, add deps as needed,\nupdate the lock file, and ship that. It\u2019s also best practice to pin your\ndependencies to a specific version (like <code>==X.Y.Z<\/code>) instead of using softer\nconstraints that may allow for updates (e.g., <code>>=X.Y.0<\/code> installing <code>X.Y.23<\/code>).\nThis pinning usually happens in a configuration file adjacent to the lock file,\nlike <code>pyproject.toml<\/code> or <code>Cargo.toml<\/code>.<\/p>\n<h2>The surprise<\/h2>\n<p>Let\u2019s talk concretely about Python:<\/p>\n<ul>\n<li>Define dependencies (and other stuff) in <code>pyproject.toml<\/code>.<\/li>\n<li>Use <code>uv<\/code> because it actually lets you create and use a lock file, <code>uv.lock<\/code>\n(and it\u2019s fast).<\/li>\n<li>As needed, run <code>uv sync<\/code> and record all package versions, hashes, and download\nURLs in the lock file.<\/li>\n<li>When building for prod, use <code>uv sync --frozen<\/code> which will <strong>only<\/strong> use what\u2019s\nin the lock file, installing the same package versions regardless of upstream\nchanges. This uses the URLs directly, and won\u2019t check for any newer versions\nof packages, even if the constraints would allow for updates.<\/li>\n<\/ul>\n<p>PyPI is the free package hosting and distribution solution for Python, and it\u2019s\na wonderful service to be grateful for. It\u2019s where <code>uv<\/code> (and <code>pip<\/code>) look for by\ndefault for any Python dependency. So usually <code>uv.lock<\/code> will contain quite a few\nentries for things hosted there, and download URLs like\n<code>https:\/\/files.pythonhosted.org\/packages\/12\/34\/big-hash\/my_pkg-X.Y.Z-py3-none-any.whl<\/code>\nwhich provide the location of <code>my-pkg<\/code> at version <code>X.Y.Z<\/code>.<\/p>\n<p>But what if version <code>X.Y.Z<\/code> is compromised and malicious? Well, PyPI or a\nmaintainer can delete it, which removes the package from the index, and it won\u2019t\nbe installable anymore.<\/p>\n<p>Well, not quite.<\/p>\n<p>The package does get removed from the index, true, but <strong>the URL remains active\nas a result of how storage works<\/strong>, and the PyPI CDN will happily continue\nserving it. Which means subsequent <code>uv sync --frozen<\/code> invocations will install\nthat malicious package, since this form doesn\u2019t consult the registry anymore,\nand just directly fetches the URL.<\/p>\n<p>So, if during the window of time that an upstream package is compromised, one or\nmore lock files get updated to point to that malicious URL, the bad package will\nstill get installed. There can be a delay here until a defender might see these\nlock files deployed, especially given the nuance of unpinned versions and other\nthings, so having an effective inventory of all installed packages to query is\nvery important to properly address this. Package aging (delaying updates) and\nother mitigations are also part of the defensive story here, but ultimately it\u2019s\nworth knowing what gets installed and where.<\/p>\n<p>This isn\u2019t really the fault of PyPI or <code>uv<\/code>, just how these two things\ninterplay. <code>uv<\/code> is <a href=\"https:\/\/github.com\/astral-sh\/uv\/issues\/18781\">thinking about the problem<\/a> and how to fix it.<\/p>","category":[{"@attributes":{"term":"security"}},{"@attributes":{"term":"python"}},{"@attributes":{"term":"supply chain security"}}]},{"title":"Choices and responsibility","id":"https:\/\/hackd.net\/posts\/choice-responsibility\/","link":{"@attributes":{"rel":"alternate","type":"text\/html","href":"https:\/\/hackd.net\/posts\/choice-responsibility\/"}},"published":"2026-02-12T18:13:53.452Z","updated":"2026-02-12T18:13:53.452Z","summary":"Brief notes on tools we choose to use, their impacts and risks, and who bears the cost.","content":"<p>Every time new technology comes out and becomes widely available, there is a\ndifficult balance to be found between the exuberance of early adopters\u2014keen to\ndrive broad usage and land early wins unlocked by the new thing\u2014<sup><a href=\"https:\/\/hackd.net\/posts\/choice-responsibility\/#user-content-fn-em\" id=\"user-content-user-content-fnref-em\" data-footnote-ref=\"\" aria-describedby=\"user-content-footnote-label\">1<\/a><\/sup>and those\nwho would seek to better understand the downsides before going too deep. There\nare essential (and obvious) risks none disagree on, but these are few. The real\nchallenge is in negotiating the middle-ground, all the second+ order effects.\nIt\u2019s fair that neither side prevails unchallenged<sup><a href=\"https:\/\/hackd.net\/posts\/choice-responsibility\/#user-content-fn-balance\" id=\"user-content-user-content-fnref-balance\" data-footnote-ref=\"\" aria-describedby=\"user-content-footnote-label\">2<\/a><\/sup>.<\/p>\n<p>My primary perspective comes from doing Security Engineering work across\ncompanies of different sizes (and cultures), some defense but mostly offense. On\neither side though, I\u2019ve largely thought about what the new technology amplifies\nin terms of risk. Today, of course, it\u2019s LLMs, but the problem space is fractal:\nwe run into variants<sup><a href=\"https:\/\/hackd.net\/posts\/choice-responsibility\/#user-content-fn-inject\" id=\"user-content-user-content-fnref-inject\" data-footnote-ref=\"\" aria-describedby=\"user-content-footnote-label\">3<\/a><\/sup> of the same meta issues all the time in security,\nbecause that\u2019s the nature of our work. Something shiny, often useful, almost\nnever designed with safety<sup><a href=\"https:\/\/hackd.net\/posts\/choice-responsibility\/#user-content-fn-safety\" id=\"user-content-user-content-fnref-safety\" data-footnote-ref=\"\" aria-describedby=\"user-content-footnote-label\">4<\/a><\/sup> as a primary property.<\/p>\n<p>Yet, in accepting that we cannot wait for good-enough guardrails around new\ntechnology within certain time constraints, we also <strong>do not get to abdicate our\nresponsibility<\/strong> for the choice of using such tech. We might not be aware of all\nthe specific second+ order effects, but we can be sure they exist<sup><a href=\"https:\/\/hackd.net\/posts\/choice-responsibility\/#user-content-fn-macro\" id=\"user-content-user-content-fnref-macro\" data-footnote-ref=\"\" aria-describedby=\"user-content-footnote-label\">5<\/a><\/sup>.<\/p>\n<p>So it is with LLMs and all they\u2019ve recently unlocked in terms of working with\nsoftware and systems (e.g., code assistance, vulnerability discovery, semi- or\nfully- autonomous personal agents). Broadly, we\u2019ve been able to convert A LOT of\nideas into running code, and got some pretty funny and clever things out, too.\nQuite fast, generally. Yet, all of this software remains the responsibility of\nwhatever human actor is ultimately at the top of the pyramid, and we should\nneither pretend otherwise, nor enable unaccountability in this regard.<\/p>\n<p>There are situations where and simply using whatever the LLM generated for code\nis fine without paying it too much attention: prototypes, one-off scripts, even\ntools that would only ever impact that human if there was a problem (i.e., skin\nin the game), etc.<\/p>\n<p>Yet for code that\u2019s to be shared with other people it remains the human\u2019s\nresponsibility to review it, ensure its quality, and do so both in terms of\nrespect, and empathy, before sharing it in the first place. That human is still\nresponsible.<\/p>\n<hr>\n<p>I really enjoyed reading (and recommend) both Russ Cox\u2019s\n<a href=\"https:\/\/groups.google.com\/g\/golang-dev\/c\/4Li4Ovd_ehE\/m\/8L9s_jq4BAAJ\">post in <code>golang-dev@<\/code><\/a>\non suggestions for how to approach aspects of this issue in that project, and\nthe <a href=\"https:\/\/rfd.shared.oxide.computer\/rfd\/0576\">Oxide RFD (576)<\/a> he mentions.<\/p>\n<section data-footnotes=\"\" class=\"footnotes\"><h2 class=\"sr-only\" id=\"user-content-footnote-label\">Footnotes<\/h2>\n<ol>\n<li id=\"user-content-user-content-fn-em\">\n<p>I happen to know how to use em-dashes; this article is 100% organic. <a href=\"https:\/\/hackd.net\/posts\/choice-responsibility\/#user-content-fnref-em\" data-footnote-backref=\"\" aria-label=\"Back to reference 1\" class=\"data-footnote-backref\">\u21a9<\/a><\/p>\n<\/li>\n<li id=\"user-content-user-content-fn-balance\">\n<p>Even this concession is uncomfortable for some cultures, which would\nmuch rather build up a high degree of confidence\/containment before allowing\nanything. This moves into a different discussion on risk, and while that\nconversation is interesting and worth iterating on, it is not how things\ncurrently work in practice. <a href=\"https:\/\/hackd.net\/posts\/choice-responsibility\/#user-content-fnref-balance\" data-footnote-backref=\"\" aria-label=\"Back to reference 2\" class=\"data-footnote-backref\">\u21a9<\/a><\/p>\n<\/li>\n<li id=\"user-content-user-content-fn-inject\">\n<p>Injections of all kinds are as old as computing, as is the unsafe\nmixing of code and data. <a href=\"https:\/\/hackd.net\/posts\/choice-responsibility\/#user-content-fnref-inject\" data-footnote-backref=\"\" aria-label=\"Back to reference 3\" class=\"data-footnote-backref\">\u21a9<\/a><\/p>\n<\/li>\n<li id=\"user-content-user-content-fn-safety\">\n<p>I think of safety in general, not just security. They are deeply\nintertwined, yet the actual, meaningful property we should strive to deliver\nupon has to be safety; security is a critical and related, but not\nidentical, attribute. <a href=\"https:\/\/hackd.net\/posts\/choice-responsibility\/#user-content-fnref-safety\" data-footnote-backref=\"\" aria-label=\"Back to reference 4\" class=\"data-footnote-backref\">\u21a9<\/a><\/p>\n<\/li>\n<li id=\"user-content-user-content-fn-macro\">\n<p>At a macro scale this gets complex, and we see plenty of imbalances in\nwho pays for these externalities; it\u2019s why we have regulations for some\nthings, frequently the result of socialized negative outcomes we want to\navoid repeating. <a href=\"https:\/\/hackd.net\/posts\/choice-responsibility\/#user-content-fnref-macro\" data-footnote-backref=\"\" aria-label=\"Back to reference 5\" class=\"data-footnote-backref\">\u21a9<\/a><\/p>\n<\/li>\n<\/ol>\n<\/section>","category":[{"@attributes":{"term":"ai"}},{"@attributes":{"term":"llm"}},{"@attributes":{"term":"security"}}]}]}