<?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[Trishank on Cybersecurity - Medium]]></title>
        <description><![CDATA[Thoughts on cybersecurity by Trishank Karthik Kuppusamy - Medium]]></description>
        <link>https://medium.com/trishank-on-cybersecurity?source=rss----22c1307b398f---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Trishank on Cybersecurity - Medium</title>
            <link>https://medium.com/trishank-on-cybersecurity?source=rss----22c1307b398f---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 13:03:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/trishank-on-cybersecurity" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A call to arms for a modern secrets manager]]></title>
            <link>https://medium.com/trishank-on-cybersecurity/a-call-to-arms-for-a-modern-secrets-manager-d78d30a49f02?source=rss----22c1307b398f---4</link>
            <guid isPermaLink="false">https://medium.com/p/d78d30a49f02</guid>
            <category><![CDATA[data-security]]></category>
            <category><![CDATA[secrets]]></category>
            <category><![CDATA[cloud-native]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Trishank Karthik Kuppusamy]]></dc:creator>
            <pubDate>Sun, 26 Feb 2023 01:07:05 GMT</pubDate>
            <atom:updated>2023-03-01T20:48:34.181Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hey, tech: we need a better long-lived secrets manager</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VF0mAJHXVG-VkrhIQwxWqw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@tjevans?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Tim Evans</a> on <a href="https://unsplash.com/photos/Uf-c4u1usFQ?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a>.</figcaption></figure><p>Here is a free product or startup idea for anyone interested: one of the biggest unsolved problems in software is the total absence AFAIK of a <em>secure, usable, cloud-native, batteries-included, and scalable long-lived secrets manager</em>. The simplest metaphor is something like a <a href="https://www.vaultproject.io/">Hashicorp Vault</a> that comes with plugins <em>out-of-the-box</em> for all the secrets that <a href="https://trufflesecurity.com/trufflehog/">TruffleHog</a> can detect. A tagline might be: TruffleHog — but the inverse — in Vault.</p><p>When I was looking into this problem for my current employer, I was surprised that such a product did not already exist. “But, Trishank, LULZ, WDYM: don’t we already have ABC or XYZ?” No, at least not AFAICT. To clarify, let me address each of these necessary properties in turn:</p><ul><li><strong>Secure.</strong> A secure lifecycle (<a href="https://developer.hashicorp.com/vault/docs/concepts/seal">bootstrapping</a>, creation, reads, updates/rotation, expiration, deletion, cryptographically-verifiable audit logging, etc.) of secrets that Sir David Attenborough himself would be proud to narrate. You want to go beyond securely generating secrets: you want to safely <em>use</em> them, too (i.e., secrets should be <a href="https://blog.diogomonica.com/2017/10/08/crypto-anchors-exfiltration-resistant-infrastructure/">infeasible-to-exfiltrate</a>). Who cares if all your secrets are <a href="https://en.wikipedia.org/wiki/Data_at_rest#Encryption">encrypted at rest</a> if all you are ultimately going to do is to use them in plaintext? Now <em>that</em> is <a href="https://en.wikipedia.org/wiki/Security_theater">security theatre</a> at its pinnacle. Obviously, authentication and authorisation must also be first-class citizens as a result.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/0*1jatvd5lZLc6tsPv" /><figcaption>This is how you should be able to get to secrets. (Thanks to <a href="https://www.cdc.gov/about/24-7/response-to-covid-19.html">CDC</a> for the vivid picture.)</figcaption></figure><ul><li><strong>Usable.</strong> At the same time, it must be dead-simple yet <a href="https://latacora.micro.blog/2018/04/03/cryptographic-right-answers.html">secure-by-default</a> for developers to use. Obviously, it can’t be as scary and tedious as the picture above suggests (for one thing, secrets are not contagious). That partly means speaking in languages or formats they are familiar with (even if that means accepting — ugh — YAML configurations). Think about it: why is it that, after the warp-speed development of mRNA vaccines for a novel coronavirus, official documentation is still asking developers to create and use iOS and <a href="https://developer.android.com/studio/publish/app-signing#generate-key">Android</a> signing keys on disk, even if encrypted?</li><li><strong>Cloud-native.</strong> Everyone is moving to the cloud, even the financial industry and governments who are famous for having run their own data centres. This means that the threat model must be accordingly practical (hint: most users don’t need to worry about the <a href="https://www.usenix.org/system/files/1311_05-08_mickens.pdf">Mossad</a> carrying out in-person <a href="https://en.wikipedia.org/wiki/Side-channel_attack">side-channel attacks</a>). A corollary is that any such product should also be cloud-agnostic for obvious reasons.</li><li><strong>Batteries-included.</strong> <a href="https://en.wikipedia.org/wiki/Symmetric-key_algorithm">Symmetric</a> and <a href="https://en.wikipedia.org/wiki/Public-key_cryptography">asymmetric</a> keys (more importantly, the latter must include high-level, application-specific asymmetric keys such those for <a href="https://en.wikipedia.org/wiki/Secure_Shell">SSH</a>, or Apple/<a href="https://github.com/hashicorp/vault/issues/9584">GPG</a>/Google/Microsoft code signing). <a href="https://en.wikipedia.org/wiki/API_key">API keys</a>. Passwords. <a href="https://en.wikipedia.org/wiki/Time-based_one-time_password">TOTP</a> seeds. Tokens. You name it: only the imagination of corporate tax accountants should be the limit. Oh, BTW, batteries for these many different types of secrets should be <a href="https://en.wikipedia.org/wiki/Batteries_Included">included</a>, or else both software and security engineers will say, “fuhgedaboutit.” Alas, this requirement alone rules out existing secrets managers such as those from Hashicorp, AWS, GCP, or Azure. Think <a href="https://github.com/coreos/fero">CoreOS Fero</a>, <a href="https://github.com/mozilla-services/autograph">Mozilla Autograph</a>, or <a href="https://github.com/bytedance/keyhouse">Bytedance Keyhouse</a>, but on steroids. My peer Andrés Vega had a similar idea with the (unannounced) Open Secrets project.</li><li><strong>Scalable.</strong> Must be able to handle, for example, a large number of secrets, or number of operations (which means that sometimes high-latency network roundtrip operations are not an option, so you might need to resort to secure fallbacks such as operating on locally cached secrets safely copied using <a href="https://en.wikipedia.org/wiki/Key_wrap">key wrapping</a> and <a href="https://en.wikipedia.org/wiki/Trusted_execution_environment">trusted hardware</a>). Must also obviously handle replication and backups (like <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/introduction.html">AWS CloudHSM</a>).</li></ul><p>“But, Trishank, isn’t this exactly why we should just be using short-lived secrets everywhere instead?” Indeed — there is a growing trend in the industry towards moving to systems such as <a href="https://oauth.net/">OAuth</a>, <a href="https://en.wikipedia.org/wiki/OpenID#OpenID_Connect_(OIDC)">OIDC</a>, <a href="https://spiffe.io/">SPIFFE</a>, <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html">AWS ephemeral credentials</a>, <a href="https://docs.aws.amazon.com/eks/latest/userguide/service-accounts.html">Kubernetes ephemeral service account tokens</a>, <a href="https://docs.sigstore.dev/fulcio/overview/">Fulcio</a>, and so on. All of these systems share the philosophy that secrets should naturally expire and, thus, rotate. This is indeed a great idea, and I am not at all against it. However, a moment’s reflection will show that these short-lived secrets are still backed by long-lived secrets that need to be protected as discussed above. This is not to mention that short-lived secrets are not always ideal, and have their own tradeoffs; never mind that legacy applications that will continue to be used for years, if not decades, to come may not have this option in the first place. And so, in an ideal world, there will be more short-lived than long-lived secrets, but we still have a long way to get there, and in the meantime, we need practical solutions that will bridge the gap.</p><p>So, why don’t we already have such a product despite this shared pain across the tech industry? I don’t know. Part of the answer may be that the security industry tends to focus on scanning for leaked secrets after the fact rather than <a href="https://en.wikipedia.org/wiki/Swiss_cheese_model">also</a> making them infeasible-to-exfiltrate and easy-to-rotate in the first place. Another answer is that it is difficult and time-consuming to write and maintain plugins or engines for hundreds, if not more, of types of secrets, which is why this product must be commercial or at least have an <a href="https://opencoreventures.com/">open core</a>. Anyway, the reason for writing this blog post is precisely to serve as a call to arms to our industry to get out there and build something, perhaps together.</p><p><em>Acknowledgements: Thanks to Andrés Vega, Eli Nesterov, Dan Lorenc, and Aditya Sirish for their feedback.</em></p><p><em>Disclaimers: The opinions expressed here do not necessarily reflect those of my current employer.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d78d30a49f02" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trishank-on-cybersecurity/a-call-to-arms-for-a-modern-secrets-manager-d78d30a49f02">A call to arms for a modern secrets manager</a> was originally published in <a href="https://medium.com/trishank-on-cybersecurity">Trishank on Cybersecurity</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to defend yourself against targeted attacks]]></title>
            <link>https://medium.com/trishank-on-cybersecurity/how-to-defend-yourself-against-targeted-attacks-1ceb8d76efe8?source=rss----22c1307b398f---4</link>
            <guid isPermaLink="false">https://medium.com/p/1ceb8d76efe8</guid>
            <category><![CDATA[google]]></category>
            <category><![CDATA[protection]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[advanced]]></category>
            <dc:creator><![CDATA[Trishank Karthik Kuppusamy]]></dc:creator>
            <pubDate>Tue, 21 Feb 2023 14:38:28 GMT</pubDate>
            <atom:updated>2025-06-15T02:16:19.914Z</atom:updated>
            <content:encoded><![CDATA[<p>TLDR:</p><ol><li>Most people don’t need to follow this advice.</li><li>I enrolled in <a href="https://landing.google.com/advancedprotection/">Google Advanced Protection</a> (with <a href="https://store.google.com/us/product/titan_security_key?hl=en-US">Titan</a> and <a href="https://blog.google/technology/safety-security/the-beginning-of-the-end-of-the-password/">Passkeys</a>), transferred my domains to <a href="https://domains.google/">Google Domains</a> (now defunct), and ported my phone numbers to <a href="https://fi.google.com/about/">Google Fi</a> .</li><li>I enrolled in Apple’s <a href="https://support.apple.com/en-us/HT212650">Lockdown Mode</a>, <a href="https://support.apple.com/en-gb/HT213154">Security Keys for Apple ID</a>, <a href="https://support.apple.com/en-us/HT212520">Advanced Data Protection for iCloud</a>, and <a href="https://support.apple.com/en-us/HT213465">Contact Key Verification</a>.</li><li>There are new updates I will keep posting at the end you might want to keep up with.</li></ol><p>No, neither Google nor Apple paid me to write this. In fact, I paid them. Counterintuitively, putting more eggs in a few baskets can make you safer, especially if they are guarded by motherf*cking dragons instead of sleeping gnomes.</p><p>You most likely don’t need this level of protection, but if you do, read on.</p><p>I guess by writing about this, I bring more targeted attacks against myself, but I wanted to write about it anyway to help people like me make decisions in these situations. Recently, Google sent me this email:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rIbNAfszYwkOgDmgtTswqA.png" /><figcaption>Imagine waking up to this pleasant email.</figcaption></figure><blockquote>The Advanced Protection Program safeguards the personal Google Accounts of anyone at risk of targeted attacks — like journalists, activists, business leaders, and political campaign teams.</blockquote><p>I had heard about this program before, but did not consider myself of sufficient interest, and I am honestly not stoked about being included in the likes of the above. Apparently, that has changed recently (although I believe these attacks are impersonal, for reasons I will not delve into).</p><p>I pinged friends at Google, who directed me to their colleagues in charge of this program. Funnily enough, they couldn’t tell me why the great Google machine learning bots thought I was under greater risk of targeted attacks, but they expressed interest in what I would do next.</p><p>Around the same time, some scam bot on Twitter decided to impersonate me:</p><h3>INVESTMENT HULK on Twitter</h3><p>IS THIS NEW ACCOUNT A TRISHANK IMPOSTER BOT OR REAL??</p><h3>Oliver Lopez-Corona on Twitter</h3><p>Friends #RWRI @trishankkarthik @nntaleb 🛑🛑🛑🛑🛑🛑🛑🛑🛑 I think someone is trying to still Trishank identity I got a very strange no SITG DM I blocked him to warn you... This kinda easy money is not Trishank style. Be aware.</p><p>I thought about it. I have no idea why, but clearly <em>someone</em> (even if bots) was after me, and I don’t consider myself a celebrity. I decided to listen to a simple heuristic from <a href="https://medium.com/u/f138bf5466fe">Nassim Nicholas Taleb</a>’s <a href="https://realworldrisk.com/">Real World Risk Institute</a>: “Only the hyperparanoid survive.”</p><p>I already had a <a href="https://www.yubico.com/products/yubikey-for-mobile/">YubiKey</a>, but to enroll in Google’s Advanced Protection, you need at least one more different key, such as <a href="https://cloud.google.com/titan-security-key/">Titan</a>. I ordered one, and played the waiting game. In the meantime, I removed my phone numbers from <a href="https://www.google.com/landing/2step/">two-step verification</a>, as Google recommended, to protect myself from <a href="https://krebsonsecurity.com/2020/01/senators-prod-fcc-to-act-on-sim-swapping/">SIM swapping attacks</a>.</p><p>Titan finally arrived, and enrollment could have been smoother had I known the following facts:</p><ul><li>I only use Apple devices. The <a href="https://apps.apple.com/us/app/google-smart-lock/id1152066360">Google Smart Lock</a> app did not have any useful tutorial (unlike even <a href="https://store.google.com/us/product/stadia">Stadia</a>), and I had to figure out that I needed to use the microUSB / NFC / BLE key, not the USB-A / NFC key. (Although the latest iPhones support NFC, but the Smart Lock app does not yet.) I had to enroll and unenroll twice before I figured this out. When you enroll, Google silently deletes your TOTP seed, so you have to enable and delete that again in order to log into Smart Lock on your iPhone.</li><li>The BLE key doesn’t work when it’s connected to and charging on your laptop.</li></ul><p>I consider myself an expert, and even I had difficulty figuring this stuff out. Grandmas definitely cannot enroll in Advanced Protection on their own. Anyway, once I figured this out, enrollment was fairly seamless. The most recent <a href="https://security.googleblog.com/2020/01/have-iphone-use-it-to-protect-your.html">update</a> to Smart Lock lets you use not only Titan and YubiKeys, but also your smartphone, so that’s a pretty damned high level of redundancy.</p><p>Around the same time, I also decided to transfer my <a href="https://medium.com/@N/how-i-lost-my-50-000-twitter-username-24eb09e026dd">domains</a> to Google Domains, and <a href="https://blog.coinbase.com/on-phone-numbers-and-identity-423db8577e58">phone numbers</a> to Google Fi. This should make it as hard for <em>non-government-backed</em> attackers to take over my domains and phone numbers as it is to break into my Google account, now protected by f*cking dragons.</p><p>(A friend who tested this years ago told me that it’s trivial for an insider to transfer your number away from any of the major providers, unlike <a href="https://en.wikipedia.org/wiki/Mobile_virtual_network_operator">MVNOs</a> like Google, even Cricket Wireless, or Tracfone Wireless, who aggressively fight to get your number back within minutes.)</p><p>Notably, Twitter Support does not care about my impostors, although I have taken <a href="https://help.twitter.com/en/managing-your-account/two-factor-authentication">steps</a> to make it harder to take over my <a href="https://twitter.com/trishankkarthik">account</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DT-K6eZzOv9guXec-CbVuw.png" /><figcaption>Don’t ask me how I know.</figcaption></figure><p>To be fair, Twitter’s security was such a joke, that even their CEO got <a href="https://www.nytimes.com/2019/09/05/technology/sim-swap-jack-dorsey-hack.html">hacked</a>.</p><p>About the only thing I cannot bring myself to do is to switch to a Pixel (Android) instead of my iPhone, even though Android exploits are now <a href="https://threatpost.com/android-zero-days-worth-more-iphone-exploits/147981/">apparently</a> worth more than for iOS. However, I think that if <a href="https://support.google.com/a/answer/9007870?hl=en">government-backed attackers</a> are after you, you are pretty much <a href="https://www.usenix.org/system/files/1401_08-12_mickens.pdf">screwed</a>. Hell, <a href="https://www.theguardian.com/technology/2020/jan/21/amazon-boss-jeff-bezoss-phone-hacked-by-saudi-crown-prince">Jeff Bezos</a> himself didn’t have a chance.</p><p>“<strong>TLDR</strong>: what should <em>I</em> do?”</p><p>Even if you don’t think you have targeted attackers right now, you should still prepare for them by enabling two-step verification with security keys, and disabling SMS / TOTP backup codes as much as possible. You should also call your cell phone provider and set a passcode / PIN to prevent lazy attackers from immediately taking over your account. Remember, “just because you’re paranoid, doesn’t mean they aren’t out to get you.”</p><p>I hope this helps someone else in my position. Counterintuitively, putting more eggs in one basket can make you safer, especially if it is guarded by a motherf*cking dragon, where others have sleeping gnomes on guard. Stay safe out there, and good luck!</p><p><strong>Update</strong>: I received news that some Googlers were planning to print a T-shirt off a line printed here…</p><p><strong>Sep 12th 2022</strong>: You should turn on <a href="https://www.apple.com/newsroom/2022/07/apple-expands-commitment-to-protect-users-from-mercenary-spyware/">Lockdown Mode</a> on iOS 16, iPadOS 16, and macOS Ventura onwards.</p><p><strong>Jan 23rd 2023</strong>: You should <a href="https://support.apple.com/en-gb/HT213154">add Security Keys to your Apple ID</a>, and turn on <a href="https://support.apple.com/en-us/HT212520">Advanced Data Protection for iCloud</a>.</p><p><strong>Feb 1st 2023:</strong> It turns out that Google Fi <em>was</em> <a href="https://techcrunch.com/2023/02/01/google-fi-hack-victim-had-coinbase-2fa-app-hijacked-by-hackers/">susceptible</a> to SIM swap attacks.</p><p><strong>May 3rd 2023:</strong> You should use <a href="https://blog.google/technology/safety-security/the-beginning-of-the-end-of-the-password/">Passkeys for Google</a>, and turn on “Skip password when possible”.</p><p><strong>Dec 12th 2023:</strong> You should turn on <a href="https://support.apple.com/en-us/HT213465">Contact Key Verification</a>.</p><p><strong>Feb 14th 2024:</strong> You can now and should turn off the <a href="https://www.reddit.com/r/Bitwarden/comments/1b54gvg/a_security_tip_from_steve_gibson_better_than_the/">V8 Optimizer</a> in Google Chrome.</p><p><strong>Jul 9th 2024:</strong> Google Fi now provides <a href="https://support.google.com/fi/answer/15147412?hl=en">Number Lock</a> to prevent illegal SIM swaps.</p><p><strong>Aug 29th 2024</strong>: It turns out Lockdown Mode <em>can</em> <a href="https://x.com/mattjay/status/1829182445184315855?s=46">protect</a> against sophisticated nation-state attackers.</p><p><strong>Feb 11th 2025</strong>: Consider using <a href="https://blog.google/products/chrome/google-chrome-safe-browsing-one-billion-users/">Enhanced Safe Browsing</a> when browsing with Chrome.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ceb8d76efe8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trishank-on-cybersecurity/how-to-defend-yourself-against-targeted-attacks-1ceb8d76efe8">How to defend yourself against targeted attacks</a> was originally published in <a href="https://medium.com/trishank-on-cybersecurity">Trishank on Cybersecurity</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Contrasting Transparent Logs and The Update Framework]]></title>
            <link>https://medium.com/trishank-on-cybersecurity/contrasting-transparent-logs-and-the-update-framework-829381baa93f?source=rss----22c1307b398f---4</link>
            <guid isPermaLink="false">https://medium.com/p/829381baa93f</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[software-update]]></category>
            <category><![CDATA[package-management]]></category>
            <category><![CDATA[fut]]></category>
            <category><![CDATA[transparent-log]]></category>
            <dc:creator><![CDATA[Trishank Karthik Kuppusamy]]></dc:creator>
            <pubDate>Tue, 21 Feb 2023 14:38:17 GMT</pubDate>
            <atom:updated>2020-02-19T07:50:27.634Z</atom:updated>
            <content:encoded><![CDATA[<p><em>By Trishank Karthik Kuppusamy and </em><a href="https://ssl.engineering.nyu.edu/people#marina_moore"><em>Marina Moore</em></a></p><h3>TLDR</h3><p>Both Transparent Logs and The Update Framework were designed to protect end-users from a compromise of package repositories, but ultimately reflect different assumptions about how security should be managed. Transparent Logs are better at providing an immutable history of packages, which lends itself to third-party auditing. The Update Framework is better at providing a higher degree of compromise resilience, as well as built-in procedures for recovering from a compromise. One can obtain the best of both worlds by combining both systems.</p><h3>Introduction</h3><p>In recent conversations about the effectiveness of <a href="https://theupdateframework.io/">The Update Framework (TUF)</a> à la <a href="https://docs.docker.com/engine/security/trust/content_trust/">Docker Content Trust</a> and <a href="https://uptane.github.io/">Uptane</a> as a method to prevent package tampering, the idea of <a href="https://research.swtch.com/tlog">Transparent Logs (TLs)</a> à la <a href="https://www.certificate-transparency.org/">Certificate Transparency</a> and the <a href="https://go.googlesource.com/proposal/+/master/design/25530-sumdb.md">Go sumdb</a> often came up. It became clear to us that there is some genuine confusion about what these two technologies have to offer, and which might be better, given that different attacks often require different types of defenses. In response, we have compiled the strengths and weaknesses of each technology to help repository managers select the best strategy for securing the packages they host.</p><p>Both TLs and TUF can be used to protect packages from being tampered with by man-in-the-middle attacks (MitM) attackers. Both systems were designed around the principle that package repositories are not naively trusted by package managers. Both systems provide signed hashes of packages, so that package managers can verify the integrity of downloaded packages with some degree of authenticity. In contrasting these solutions, the primary difference appears to be that TLs seek to provide immutable history via append-only logs, as well as third-party auditing of these logs, whereas TUF concentrates on providing a higher degree of compromise resilience, as well as recovery from compromise when, and not if, it happens [1].</p><p>In plain terms, if the main goal is to have a public list of packages that different auditors check, TLs provide this functionality. If one wants to be able to limit the damage from a repository or key compromise and securely recover from this, TUF provides this functionality.</p><h3>Threat model</h3><p>To better understand the differing approaches of TLs and TUF, we need to first characterize the nature of the threat both are designed to address. Figure 1 depicts the relationships between the different parties and the two systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/0*sPauR33hQyGWezIU.png" /></figure><p><strong>Figure 1</strong>: A rough illustration of the various relationships between package developers, package repositories, TUF metadata repositories, Transparent Logs, attackers, and end-users.</p><p>We define a compromise as a situation where attackers can control all of the following:</p><ol><li>The network connection between end-users and Transparent Logs, The Update Framework metadata repository, and / or package repositories. They may do this with MitM attacks, by exploiting weaknesses in cryptographic keys or libraries, and / or by breaking into the endpoints themselves.</li><li>One or more online signing keys accessible by automation on the endpoints above, but no offline keys kept on, say, <a href="https://en.wikipedia.org/wiki/Hardware_security_module">Hardware Security Modules</a> or hardware tokens with GPG support off the endpoints above.</li></ol><h3>Immutable history and third-party auditing vs. compromise resilience and recovery</h3><p>TLs provide some compromise resilience in that they prevent old logs containing old versions of packages from being deleted, even if the log itself has been taken over. This is in addition to preventing MitM attacks on end-users. Furthermore, third-party auditing allows for detection of new, malicious versions of packages [2]. And, it does all of this without requiring package developers to sign anything. However, although third-party auditing can help to detect these malicious, new versions of packages, it does not prevent them from being added in the first place [3]. In addition, third-party auditing requires an interested third party to provide resources toward detecting malicious packages. This auditing model does not scale to small projects with fewer users or resources.</p><p>TUF can be configured (à la <a href="https://www.usenix.org/node/194973">Diplomat</a>, <a href="https://www.python.org/dev/peps/pep-0458/">PEP 458</a>, and <a href="https://www.python.org/dev/peps/pep-0480/">PEP 480</a>) to provide a higher degree of compromise resilience in that attackers cannot tamper with all packages without being detected. To do so, though, some developers must be willing to sign their packages independently of the repository. Furthermore, it also provides explicit procedures out-of-the-box to recover from a compromise when, and not if, it happens. However, TUF relies on checks performed on metadata from the repository. Without an immutable history and third-party audits, a compromise of multiple keys means that attackers can replace metadata and packages on the repository in a way that is not immediately detectable by package managers (e.g., by dropping packages). This is more problematic in cases where the repository automatically signs metadata for package developers.</p><p>In a nutshell, the security provided by TLs is heavily dependent on the ability of large organizations, such as Google, to prevent a repository compromise. Since TLs do not prevent new, malicious versions of packages from being added in this scenario, and do not immediately provide ways to recover from such attacks, prevention of these attacks becomes much more important.</p><p>In contrast, TUF can be configured so that malicious versions of packages either cannot be added to the repository, or, if added, will not be trusted by package managers. This simple but significant difference means that security can easily be maintained by independent or nonprofit package repository maintainers with significantly less resources than those of large tech organizations, such as Google. In exchange for this simplicity, the security of TUF relies on repository administrators, as well as package developers who choose to opt into it, maintaining the security of offline keys.</p><p>Therefore, situations where one strategy might be preferable over another may be dictated by which of these purposes is most important. We also propose that, because the two technologies are complementary, adopting both could offer enhanced security against a larger variety of attacks than using just one.</p><h3>Getting the best of both worlds</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/0*j0KskKjm75Xdzotj.png" /></figure><p><strong>Figure 2</strong>: A rough illustration of the various possible relationships between a package repository P, a TUF metadata repository T, a Transparent Log L, a mirror M, and auditors.</p><p>TLs and TUF both aim to protect users from malicious packages. TLs provide immutable history, as well as built-in third-party auditing, whereas TUF provides a high degree of compromise resilience, as well as built-in procedures for recovery. A package repository using both systems could gain all of these benefits.</p><p>More precisely, consider a package repository P, a TUF metadata repository T with <a href="https://github.com/theupdateframework/specification/blob/master/tuf-spec.md#7-consistent-snapshots">consistent snapshots</a>, a transparent log L, and a mirror M, as illustrated in Figure 2. We assume that T, L, and M are independent. Whenever P publishes a new package, metadata must be updated accordingly on T. This ultimately means producing new version N of the timestamp metadata that T must submit to L and M. L must append hash(N), whereas M must download all new metadata that follow from N. P and T are free to garbage collect obsolete metadata and packages, whereas L must archive all timestamp metadata produced by T, and M must archive all packages and metadata ever published by P and T respectively.</p><p>The most important property of this system is that auditors now have a tamper-proof record of who published what and when. Auditors can query L for the hash(N) of every version N of the timestamp metadata they are interested in, query M for all TUF metadata that follows from N, and audit the metadata for particular packages.</p><p>As a desirable side-effect, auditors can now also detect <a href="https://www.usenix.org/legacy/event/osdi04/tech/full_papers/li_j/li_j.pdf">forking attacks</a>, where T may have shown different timestamps to different end-users. They may do so using the same method outlined in the previous paragraph (assuming that <a href="https://www.usenix.org/conference/atc17/technical-sessions/presentation/kuppusamy">hashes</a> are recorded in the snapshot metadata produced by T).</p><h3>Comparison matrix</h3><p>The table below offers a side-by-side comparison of the security features of the two systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/0*7L2xHUs4iVjHoho8.png" /></figure><p>In particular, the Datadog TUF and <a href="https://blog.acolyer.org/2019/10/02/in-toto/">in-toto</a> integration mentioned in the last column is discussed in more detail <a href="https://www.datadoghq.com/blog/engineering/secure-publication-of-datadog-agent-integrations-with-tuf-and-in-toto/">here</a>. As far as we know, it is the first compromise resilient packaging system that detects attacks <em>anywhere</em> between developers and end-users.</p><h3>Conclusion</h3><p>TLs and TUF both help secure package repositories, but their priorities and goals differ, and so provide complementary virtues. When used separately, TLs provide an immutable history of a repository with third-party auditing, whereas TUF provides better compromise resilience and procedures for recovering from a compromise. Used together, these technologies can provide all of the aforementioned properties. If anyone would like to implement a combination of TLs and TUF, or discuss the differences between these systems, please reach out to us on <a href="https://groups.google.com/forum/?fromgroups#!forum/theupdateframework">the TUF mailing list</a>.</p><h3>Acknowledgements</h3><p>We would like to thank Justin Cappos, Nick Coghlan, Lois Anne DeLong, Ernest W. Durbin III, Sumana Harihareswara, Joshua Lock, Santiago Torres-Arias, Filippo Valsorda, and the Python community for their feedback.</p><h3>Changelog</h3><ol><li><strong>2020–02–05</strong>: Added a footnote about the shared design goal of <a href="https://github.com/secure-systems-lab/ssl-site/issues/96">removing trust</a>.</li><li><strong>2020–02–06</strong>: Added a footnote that covers the procedure for <a href="https://github.com/secure-systems-lab/ssl-site/issues/95">recovering</a> from a key compromise in TLs.</li></ol><h3>Footnotes</h3><ol><li>Since this article was published, we have <a href="https://github.com/secure-systems-lab/ssl-site/issues/95">learned</a> that the procedure for recovering from a key compromise for TLs is, to some extent, comparable to PEP 458 security model for TUF. It is best illustrated using the following scenario. Suppose that before time K, online key X was used. At time K, this online key X is compromised. After time K, we switch trust to online key Y instead. Using TLs (e.g., Go sumdb), the log will be signed using both online keys X and Y. This is so that <a href="https://golang.org/doc/install">Go binary distributions</a> released before time K that are effectively baked with X can continue to trust the TL. Subsequent Go binary distributions will be baked with Y instead. Presumably, X will be considered deprecated / compromised, and some grace period will be allowed before X is completely revoked (i.e., no longer used to sign the TL). Using TUF (PEP 458), there is no need to issue a new software update to permanently replace trust in X with Y. The TUF metadata repository administrators would use the offline keys for the targets role (not even necessarily the higher-level root role) to do so. Both old and new versions of the package manager can continue to permanently switch trust from X to Y, despite <a href="https://github.com/theupdateframework/taps/pull/107">backwards-incompatible</a> changes to TUF metadata. There is no need to deprecate X and offer a grace period because it is no longer used. We feel that this is a subtle but important difference.</li><li>A major design goal for Google was to make sure that the community would not have to trust them blindly, and thus these mechanisms are a means to an end, which is <a href="https://github.com/secure-systems-lab/ssl-site/issues/96">removing trust</a>. Both TLs and TUF share this design goal of removing as much trust as possible from the package / metadata repository or log.</li><li>In fact, assuming that the TL and package repository are independent, this does not even require attackers to compromise the TL. Since the TL would <a href="https://go.googlesource.com/proposal/+/master/design/25530-sumdb.md#checksum-database">automatically</a> fetch missing versions of packages, all attackers would have to to do is to add malicious versions of packages to the repository (such as the GitHub repository belonging to the package developers), and somehow convince developers to refer to these malicious versions (say, by publishing new tags on GitHub). In this sense, TLs still depend on <a href="https://go.googlesource.com/proposal/+/master/design/25530-sumdb.md#module-authentication-with">Trust-On-First-Use (TOFU)</a>. While Go encourages pinning packages using <a href="https://semver.org/">Semantic Versioning</a>, which ameliorates the issue to some extent, the fact remains that malicious versions of packages can still be added automatically, which is especially problematic when package managers such as <a href="https://pypi.org/project/pip/">pip</a> automatically try to find the latest versions of packages.</li></ol><p><em>Originally published at </em><a href="https://ssl.engineering.nyu.edu/blog/2020-02-03-transparent-logs"><em>https://ssl.engineering.nyu.edu</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=829381baa93f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trishank-on-cybersecurity/contrasting-transparent-logs-and-the-update-framework-829381baa93f">Contrasting Transparent Logs and The Update Framework</a> was originally published in <a href="https://medium.com/trishank-on-cybersecurity">Trishank on Cybersecurity</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TrueCoach video deletion bug]]></title>
            <link>https://medium.com/trishank-on-cybersecurity/truecoach-video-deletion-bug-2061d3e41ee?source=rss----22c1307b398f---4</link>
            <guid isPermaLink="false">https://medium.com/p/2061d3e41ee</guid>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[responsible-disclosure]]></category>
            <category><![CDATA[truecoach]]></category>
            <category><![CDATA[bugs]]></category>
            <dc:creator><![CDATA[Trishank Karthik Kuppusamy]]></dc:creator>
            <pubDate>Sun, 19 Feb 2023 23:51:16 GMT</pubDate>
            <atom:updated>2020-05-12T01:06:34.725Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>April 26, 2020</strong>: Following a 90-day <a href="https://en.wikipedia.org/wiki/Responsible_disclosure">responsible disclosure</a> policy, I am disclosing my finding that <a href="https://truecoach.co/">TrueCoach</a>, a service used by online coaching businesses, apparently fails to actually delete videos when users press the “delete” button. I first verified this on January 27, 2020 by using a web browser to record the <a href="https://aws.amazon.com/cloudfront/">CloudFront</a> URLs used to replay these videos, then using the TrueCoach web app to delete these videos, and observing that the CloudFront URLs continue to work at least three months later.</p><p>Why is this a problem? Well, imagine if you had accidentally uploaded a sensitive video. In any case, when a service claims to have deleted anything you uploaded, it should ideally honor that.</p><p>The following is my 90-day email trail with TrueCoach:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jGJXQVimLFwYp8w33j33Lw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BHCeQI3wj5QxgNzGRGIdQw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NN6rBwvh7W5xefKupbnGYg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yc56Ho8teew0S5p0N7SkOA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zpna2jmcJaSrrtVXiZRyVQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bD29eOkLYYm-3Xu5hJOtig.png" /></figure><p>Unfortunately, I found that the video I deleted on Jan 27, 2020 continues to be available. Videos I deleted today continue to be available, although that may be due to a temporary CloudFront caching policy. I understand the coronavirus may have affected fixing this issue, and I look forward to continue working with TrueCoach to make sure that videos are at least ostensibly deleted.</p><p>The problem with online services — not unique to TrueCoach — is that you can never be sure if something is truly deleted, but that is a different story for a different day.</p><p><strong>May 8, 2020:</strong> Although their lead backend developer <a href="https://medium.com/u/af0ef6770718">Adam</a> <a href="https://medium.com/@truecoach_adsteel/truecoach-lead-backend-developer-here-79bb21286295">responded</a> publicly to me that they have rolled out a fix, the original problem remains where a user is not able to properly delete a single video. Therefore, it follows that a user cannot delete all videos as yet unmarked as deleted. Furthermore, all videos <em>marked</em> as deleted are as yet <em>actually</em> undeleted, which may accidentally have implications for <a href="https://web.archive.org/web/20200418031805/https://truecoach.co/terms/">GDPR</a> compliance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wuFuOneTLK8xpTk_j4x-Fg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oK8cUWWKIn-7zvyIjQML7Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZrlwQaRT3dNRvDDTiTIL1w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*11qkN8w7-ph3hymNA9jqUQ.png" /></figure><p>Therefore, until such time as TrueCoach rolls out fixes for the problems I outlined above, I unfortunately cannot recommend them to users who care about privacy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2061d3e41ee" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trishank-on-cybersecurity/truecoach-video-deletion-bug-2061d3e41ee">TrueCoach video deletion bug</a> was originally published in <a href="https://medium.com/trishank-on-cybersecurity">Trishank on Cybersecurity</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Chase Online Activation Codes have less than 8 digits of entropy]]></title>
            <link>https://medium.com/trishank-on-cybersecurity/the-chase-online-activation-codes-have-less-than-8-digits-of-entropy-27c0891cee7e?source=rss----22c1307b398f---4</link>
            <guid isPermaLink="false">https://medium.com/p/27c0891cee7e</guid>
            <category><![CDATA[mfa]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[chase-bank]]></category>
            <dc:creator><![CDATA[Trishank Karthik Kuppusamy]]></dc:creator>
            <pubDate>Sun, 19 Feb 2023 23:45:26 GMT</pubDate>
            <atom:updated>2023-02-20T17:19:42.522Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oW4Xdd2QHqEnR0SaALIX5A.png" /><figcaption>Figure 1: The Chase Online Activation Codes (aka MFA) use 8 digits, but note that the first digit seems to be fixed at 4 (left), hence reducing the (desired?) entropy to at most 7 digits (right).</figcaption></figure><p>This blog post is self-explanatory from both the title and Figure 1: the Chase Online Action Codes (i.e., <a href="https://en.wikipedia.org/wiki/Multi-factor_authentication">MFA</a>) use 8 digits, but the <a href="https://en.wikipedia.org/wiki/Entropy_(computing)#Security">entropy</a> may be effectively less by at least an order of magnitude because the first digit appears to be constant. It was derived from 63 codes delivered via email for more than a year (between Nov 25th 2021 and Feb 19th 2023). This experiment was conducted after I suspected that that leading constant could not possibly be an accident.</p><blockquote><em>“Once is happenstance. Twice is coincidence. Three times is enemy action.”<br> — Ian Fleming</em></blockquote><p>Okay, but who cares? Depends. Even if Chase intended on at most 7 digits of entropy (which is fair if you assume other defences such as <a href="https://en.wikipedia.org/wiki/Rate_limiting">rate-limiting</a> — something Meta <a href="https://techcrunch.com/2023/01/30/facebook-two-factor-bypass-bug/">forgot</a> — the iPhone still <a href="https://support.apple.com/en-gb/guide/security/sec20230a10d/web">uses</a> 6-digit passcodes by default), the fact remains that an attacker outside of Chase infrastructure (who nevertheless knows your username and password, but has no access to your email or phone number) could always correctly guess the first digit of the entire code, so they might as well just reduce its size to what they are looking for. Of course, it remains to be seen whether anyone else is vulnerable to this problem; hence, this blog post. If so, one does wonder how this managed to slip past their cybersecurity organisation (if any): don’t they use their own products?</p><p>All this is to say that, at the end of the day, one (especially big banks like Chase) should move <a href="https://2fa.directory/">MFA</a> away from SMS (weakest) and <a href="https://en.wikipedia.org/wiki/Time-based_one-time_password">TOTP</a> (unusable) to hardware (especially <a href="https://en.wikipedia.org/wiki/Security_token">security keys</a>). Better yet — just get rid of passwords (what a bad idea in retrospect for both security and usability) altogether in favour of <a href="https://fidoalliance.org/passkeys/">Passkeys</a> (wherever possible). Someone tell Mr. Musk that he could have saved <a href="https://www.cnn.com/2023/02/18/business/twitter-blue-two-factor-authentication/index.html">millions</a> of dollars this way (and Twitter users so that they stop complaining <a href="https://www.nytimes.com/2019/09/05/technology/sim-swap-jack-dorsey-hack.html">unnecessarily</a>, cybersecurity experts <a href="https://www.wired.com/story/twitter-sms-2fa-twitter-blue/">notwithstanding</a>: there ain’t no such thing as a <a href="https://twitter.com/nntaleb/status/1602315383637245958">free lunch</a>).</p><p><strong>P.S.</strong> Dear JPMC: I tried to follow <a href="https://en.wikipedia.org/wiki/Coordinated_vulnerability_disclosure">responsible disclosure</a>, but could not find anything on your convoluted <a href="https://www.chase.com/">website</a> that would put me directly in touch with your cybersecurity organisation. Please don’t close my bank accounts or sue me, thanks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27c0891cee7e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trishank-on-cybersecurity/the-chase-online-activation-codes-have-less-than-8-digits-of-entropy-27c0891cee7e">The Chase Online Activation Codes have less than 8 digits of entropy</a> was originally published in <a href="https://medium.com/trishank-on-cybersecurity">Trishank on Cybersecurity</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>