<?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 Robert Parks on Medium]]></title>
        <description><![CDATA[Stories by Robert Parks on Medium]]></description>
        <link>https://medium.com/@bob_parks1?source=rss-7d4c27695848------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*BKlu2AKkTDsWGHZn_pOwoQ.jpeg</url>
            <title>Stories by Robert Parks on Medium</title>
            <link>https://medium.com/@bob_parks1?source=rss-7d4c27695848------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 19:23:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bob_parks1/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[Solving Wordle With grep]]></title>
            <link>https://medium.com/@bob_parks1/solving-wordle-with-grep-3e7d73c2d8f3?source=rss-7d4c27695848------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e7d73c2d8f3</guid>
            <dc:creator><![CDATA[Robert Parks]]></dc:creator>
            <pubDate>Sun, 13 Mar 2022 17:26:57 GMT</pubDate>
            <atom:updated>2022-03-13T17:26:57.655Z</atom:updated>
            <content:encoded><![CDATA[<h3>The First Guess</h3><p>First, let’s take a look at our universe of possible words:</p><pre><strong>$ grep -E &quot;^[a-z]{5}$&quot; /usr/share/dict/words | wc -l</strong><br>4608</pre><p>This gives us all words of length 5 from the local dictionary. Mine apparently contains 4,608 such words, but yours may be different. My intuition to come up with a good first guess is to use a word that contains the most common letters. So let’s count letters:</p><pre><strong>$ grep -E &quot;^[a-z]{5}$&quot; /usr/share/dict/words | grep -o . | sort | uniq -c | sort -nr | head</strong><br>   2562 s<br>   2447 e<br>   1856 a<br>   1491 r<br>   1470 o<br>   1308 l<br>   1271 t<br>   1269 i<br>   1028 n<br>    992 d</pre><p>The most common letters among these 5 letter words are, in order: s, e, a, r, o. Are there any words that use all of these?</p><pre><strong>$ grep -E &quot;^[a-z]{5}$&quot; /usr/share/dict/words | grep e | grep a | grep r | grep s | grep o</strong><br>arose</pre><p>Well that narrows it down, arose will be our first guess.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/339/1*kkx-9WYmeq3jZ8w8cFiHSQ.png" /></figure><h3>Incorporating a Hint</h3><p>Now we know that the target word contains ‘o’ and ‘s’ and none of ‘a’, ‘r’, or ‘e’.</p><pre><strong>$ grep -E &quot;^[a-z]{5}$&quot; /usr/share/dict/words | grep -Ev &quot;(a|r|e)&quot; | grep o | grep -v &quot;^..o&quot; | grep s | grep -v &quot;s.$&quot; | wc -l</strong><br>122</pre><p>122 words left after the first hint. Let’s pick one at random. There are better guessing strategies, but this one is surprisingly effective.</p><pre><strong>$ grep -E &quot;^[a-z]{5}$&quot; /usr/share/dict/words | grep -Ev &quot;(a|r|e)&quot; | grep o | grep -v &quot;^..o&quot; | grep s | grep -v &quot;s.$&quot; | shuf -n1</strong><br>softy</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*qOmhOCmCc4eBMb32C9Vtdg.png" /></figure><h3>Iterate</h3><p>The second guess tells us:</p><ul><li>no ‘t’ or ‘y’</li><li>‘o’ is the second letter</li><li>‘s’ not in the first position</li><li>There’s an ‘f’ but not in the third position</li></ul><pre><strong>$ grep -E &quot;^[a-z]{5}$&quot; /usr/share/dict/words | grep -Ev &quot;(a|r|e)&quot; | grep o | grep -v &quot;^..o&quot; | grep s | grep -v &quot;s.$&quot; | grep -v &quot;^s&quot; | grep &quot;^.o&quot; | grep f | grep -v &quot;^..f&quot; | grep -Ev &quot;(t|y)&quot; | wc -l</strong><br>9</pre><p>Nine words to go, let’s try our simple-but-effective random guess strategy again.</p><pre><strong>$ grep -E &quot;^[a-z]{5}$&quot; /usr/share/dict/words | grep -Ev &quot;(a|r|e)&quot; | grep o | grep -v &quot;^..o&quot; | grep s | grep -v &quot;s.$&quot; | grep -v &quot;^s&quot; | grep &quot;^.o&quot; | grep f | grep -v &quot;^..f&quot; | grep -Ev &quot;(t|y)&quot; | shuf -n1</strong><br>focus</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*rCOOSjLt1A98Yw_-bF8eig.png" /></figure><p>Looks like the shuffle gods were kind to us today!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e7d73c2d8f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hard Data Shows: American Thinker Isn’t Where to Get Vaccine News]]></title>
            <link>https://medium.com/@bob_parks1/hard-data-shows-american-thinker-isnt-where-to-get-vaccine-news-a35896c8c063?source=rss-7d4c27695848------2</link>
            <guid isPermaLink="false">https://medium.com/p/a35896c8c063</guid>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[vaccines]]></category>
            <dc:creator><![CDATA[Robert Parks]]></dc:creator>
            <pubDate>Wed, 01 Dec 2021 23:15:55 GMT</pubDate>
            <atom:updated>2021-12-02T19:58:25.144Z</atom:updated>
            <content:encoded><![CDATA[<p>It turns out that according to American Thinker, COVID vaccines don’t “work.” The word “work” is in quotes because this statement is only true for their very specific, and very misleading definition of the word:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*yocw9NC9ykqLzjGEqBchzA.png" /><figcaption>Since this is something “we know” I guess they don’t need to cite a source</figcaption></figure><p>This is an important paragraph of this article, since the entire argument rests on this definition of what it means for a vaccine to “work.”</p><p>Next we’re shown some graphs (presumably the “Hard Data” in question) that show that even among highly vaccinated populations COVID has not been eliminated or decreased to a level sufficient to meet this definition. Here’s the graph we’re shown for Gibraltar, a British territory with a strikingly high vaccination rate:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*0osTr2UpXwS8snqE.jpg" /></figure><p>And the accompanying graph showing vaccination rate:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*IYcwhayyZCTFRMeW.jpg" /></figure><p>As we can see, even with almost the entire population vaccinated, Gibraltar is still battling with significant outbreaks of COVID. As American Thinker correctly points out, the current outbreaks have caused them to even call off Christmas festivities! Clearly, by the definition previously articulated, COVID vaccines don’t “work.”</p><h4>The Problem</h4><p>There’s one minor problem with this argument, which is that it only works for this strange and misleading definition of what it means for a vaccine to “work.” The mRNA vaccines by Pfizer and Moderna have been shown to be very effective at preventing infection and even more effective at preventing serious disease and death. According to <a href="https://www.yalemedicine.org/news/covid-19-vaccine-comparison">yalemedicine.org</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*qhqxKxtCwtz9UPcEPDzgYA.png" /><figcaption>Pfizer efficacy</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*sNMks1tX7TuBwZUkCR97aw.png" /><figcaption>Moderna efficacy</figcaption></figure><p>American Thinker doesn’t attempt to disprove any of these claims; it doesn’t even address them. In fact, according to their definition, they’re not even relevant. COVID has not been eradicated among vaccinated populations and therefore — according to American Thinker — they don’t work.</p><h4>The Hard Data They Forgot to Mention</h4><p>Let’s look at the Gibraltar data one more time. Here’s the COVID case time series:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*izq6EDbyku81XKtLeQXbaA.png" /></figure><p>And here are the deaths:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*taGnm-9g7gRZAa6lmt6KsQ.png" /></figure><p>Where’d the deaths go? They’ve nearly disappeared even though they’ve had an ongoing COVID outbreak since July. American Thinker didn’t include this data because — according to their absurd definition — saving lives is irrelevant.</p><p>You might also wonder what was going on in Gibraltar at the height of their first outbreak. Turns out they closed schools, non-essential businesses, and locked down the entire territory with a 24-hour curfew. From a <a href="https://www.gibraltar.gov.gi/press-releases/covid-19-lockdown-press-conference-chief-ministers-script-22021-6544">January 2021 press conference</a> with Gibraltar’s Chief Minister:</p><blockquote>With Christmas behind us, a curfew in place and all non-essential retail closed already, we need to further upscale the level of restrictions which are in place in order to have the best chance to control the virus as soon as possible…As a result, we will impose a legal lockdown as a circuit breaker…The additional measure we are taking is to impose a 24-hour curfew...That is to say, you will only be able to leave your home to work, to exercise, to shop for the essentials in Gibraltar in the shops that remain open and to take out children.</blockquote><p>You might also be wondering about the delta variant, since American Thinker doesn’t even mention it in their entire article. The delta variant was first identified in the beginning of the summer of 2021; coinciding with the start of the recent outbreak in Gibraltar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*zAJ9v3JpXuz0c1q2v3rMPQ.png" /><figcaption>Gibraltar’s latest outbreak started in July, coinciding with the outbreak of Delta</figcaption></figure><p>The most notable difference between the Delta variant and the original strain of COVID is that delta is much more transmissible. From <a href="https://www.yalemedicine.org/news/5-things-to-know-delta-variant-covid">yalemedicine.org</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*qxRh1u5w9emuAAGrSZQGxQ.png" /></figure><p>Seems like that would be worth mentioning when comparing the two outbreaks, but again — according to American Thinker — none of this is relevant.</p><p>So to recap, Gibraltar is currently battling a more transmissible strain of COVID without shutting down schools, closing businesses, or issuing stay at home orders, and they’ve still ended up with fewer cases and almost zero deaths. This seems like as strong of a case as can be made for the efficacy of vaccines; lives have been saved and economic activity has been restored and yet — according to American Thinker’s ridiculous wordplay — vaccines don’t “work.”</p><h4>The Most Important Takeaway</h4><p>The most important think to take away from this article is how easy it is to mislead, even with accurate data. It takes an order of magnitude more effort to refute bullshit than it does to generate it, so there’s going to be a lot of bullshit floating around. If you want information about vaccines talk to your doctor who you know and trust; they have the expertise and legal obligation to look out for your health. I don’t have either, and neither does American Thinker.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a35896c8c063" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dear Microsoft, This is How You Encrypt a File]]></title>
            <link>https://medium.com/hackernoon/dear-microsoft-this-is-how-you-encrypt-a-file-779cc0a19bfc?source=rss-7d4c27695848------2</link>
            <guid isPermaLink="false">https://medium.com/p/779cc0a19bfc</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Robert Parks]]></dc:creator>
            <pubDate>Thu, 29 Jun 2017 04:03:18 GMT</pubDate>
            <atom:updated>2019-05-23T11:48:28.678Z</atom:updated>
            <content:encoded><![CDATA[<p>In my <a href="https://medium.com/@bob_parks1/how-not-to-encrypt-a-file-courtesy-of-microsoft-bfadf2b0273d">last post</a> I was clutching my pearls over a 13 year old MSDN article that had the gall to be written by somebody not familiar with the proper usage of cryptographic initialization vectors. Some of my fans were nice enough to point out that in all of my histrionic ranting and raving I forgot to say anything useful, like how you’re <em>actually</em> supposed to encrypt a file.</p><p>So without further ado, here is how you encrypt and decrypt a file:</p><pre>$ gpg -c --cipher-algo AES128 [file]  # Encrypt<br>$ gpg -d [file].gpg  # Decrypt</pre><p>Anticlimactic, right? It doesn’t even mention IVs, but that’s kind of the point. A tutorial about file encryption that includes manual handing of IVs is kind of like a tutorial about setting up a web server that includes reimplementing TCP. There’s literally no benefit to doing it and you’re almost guaranteed to do it wrong. It’s the difference between <em>encrypting a file </em>and <em>implementing file encryption</em>. The first is a common task for a programmer and the second shouldn’t be attempted by a non-crypto-expert. Microsoft should know better than to conflate the two, especially in a tutorial intended for a lay audience.</p><h4>GPG?</h4><p>This post isn’t supposed to be a tutorial about GPG, but if anybody actually wants to take my advice, please check out <a href="https://www.gnupg.org/gph/en/manual/x110.html">the documentation</a>. And if you’re looking to do file encryption in [target <a href="https://hackernoon.com/tagged/programming">programming</a> language], just do the equivalent operations with an OpenPGP implementation in that language.</p><h4>Wow So PGP is Infallible?</h4><p>Oh god no. It has many flaws, the biggest of which is probably the awful key distribution. It just happens to have a decent implementation of file encryption that’s available on just about every platform and in just about every programming language. If you want to be thoroughly confused about this topic, here are <a href="https://blog.cryptographyengineering.com/2014/08/13/whats-matter-with-pgp/">Matthew Green</a> and <a href="https://arstechnica.co.uk/security/2016/12/op-ed-im-giving-up-on-pgp/">Filippo Valsorda</a> shitting all over PGP.</p><h4>Hey, I Came Here For the Crypto Details!</h4><p>Alright so now that we’re all clear that when you want to encrypt a file you should just use a mainstream, high-level crypto library and not touch the primitives yourself, here is a basic way to implement file encryption that isn’t completely terrible:</p><ol><li>Select a secure, modern block cipher. I’d stick with AES128 unless you’ve got a really compelling reason to use something else. You can use AES256 if you want but realistically it’s not going to increase <a href="https://hackernoon.com/tagged/security">security</a>. Your password will have nowhere near 128 bits of entropy so it’s going to be by far the weakest link in this chain.</li><li>Obtain a cryptographically secure random value to use as an initialization vector. (hint: use <a href="https://security.stackexchange.com/a/3939">/dev/urandom</a>)</li><li>Obtain a high entropy key. In this case I’d say select a strong password (another topic entirely), then run it through <a href="https://en.wikipedia.org/wiki/Bcrypt">bcrypt</a> for <a href="https://en.wikipedia.org/wiki/Key_stretching">key stretching</a>. For simplicity you could use the IV as the salt.</li><li>Using your block cipher, the key created from sending your password through bcrypt, and the IV generated from /dev/urandom, perform <a href="https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#Cipher_Block_Chaining_.28CBC.29">cipher block chaining</a> to encrypt your plaintext.</li><li>Append the IV to the beginning of the ciphertext, then run that whole thing through <a href="https://en.wikipedia.org/wiki/Hash-based_message_authentication_code">HMAC</a>, preferably using SHA2 or SHA3. Note that we’re authenticating after encrypting, avoiding the <a href="https://moxie.org/blog/the-cryptographic-doom-principle/">doom principle</a>.</li><li>Append the output of the HMAC to the IV and ciphertext, and output the result. So your output should be IV || CT || HMAC(IV || CT)</li></ol><p>There you go, implementing file encryption in 6 easy steps. If you need a library that contains the primatives mentioned here, OpenSSL is a good option . If you want to decrypt, verify the HMAC by recomputing it from the IV || CT and compare with the given HMAC, then just undo the CBC encryption.</p><h4>That’s Cool…But Why Did We Do All That Stuff?</h4><p>The randomized IV and cipher block chaining achieve <a href="https://en.wikipedia.org/wiki/Semantic_security">semantic security</a> so that we don’t end up leaking information. The HMAC achieves <a href="https://en.wikipedia.org/wiki/Data_integrity">data integrity</a> and <a href="https://en.wikipedia.org/wiki/Authentication">authentication</a>. Key stretching with bcrypt makes the key generated from your password slightly less terrible.</p><p>If you want to learn by playing around with these things programmatically (and you can tolerate a webapp with a UI designed by hackers) checkout <a href="https://id0-rsa.pub/">https://id0-rsa.pub/</a>.</p><blockquote><a href="http://bit.ly/Hackernoon">Hacker Noon</a> is how hackers start their afternoons. We’re a part of the <a href="http://bit.ly/atAMIatAMI">@AMI</a>family. We are now <a href="http://bit.ly/hackernoonsubmission">accepting submissions</a> and happy to <a href="/service/mailto:partners@amipublications.com">discuss advertising &amp; sponsorship</a> opportunities.</blockquote><blockquote>To learn more, <a href="https://goo.gl/4ofytp">read our about page</a>, <a href="http://bit.ly/HackernoonFB">like/message us on Facebook</a>, or simply, <a href="https://goo.gl/k7XYbx">tweet/DM @HackerNoon.</a></blockquote><blockquote>If you enjoyed this story, we recommend reading our <a href="http://bit.ly/hackernoonlatestt">latest tech stories</a> and <a href="https://hackernoon.com/trending">trending tech stories</a>. Until next time, don’t take the realities of the world for granted!</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fdde502%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Fhackernoon%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href">https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=779cc0a19bfc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/dear-microsoft-this-is-how-you-encrypt-a-file-779cc0a19bfc">Dear Microsoft, This is How You Encrypt a File</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Not to Encrypt a File — Courtesy of Microsoft]]></title>
            <link>https://medium.com/@bob_parks1/how-not-to-encrypt-a-file-courtesy-of-microsoft-bfadf2b0273d?source=rss-7d4c27695848------2</link>
            <guid isPermaLink="false">https://medium.com/p/bfadf2b0273d</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[microsoft]]></category>
            <dc:creator><![CDATA[Robert Parks]]></dc:creator>
            <pubDate>Tue, 27 Jun 2017 03:02:29 GMT</pubDate>
            <atom:updated>2017-06-29T04:16:02.844Z</atom:updated>
            <content:encoded><![CDATA[<p>A client recently sent me a crypto spec which involved some, how do I say, <em>suboptimal</em> use of crypto primitives. They’re .Net users so I decided to search for a nice msdn crypto reference to set them straight. Instead I found the likely culprit behind their confusion.</p><p>The article in question is this one: <a href="https://support.microsoft.com/en-us/help/307010/how-to-encrypt-and-decrypt-a-file-by-using-visual-c">How to encrypt and decrypt a file by using Visual C#</a> (has since been taken down, victory!). If you’re in the mood for some forehead slapping I recommend reading it. Here are some of the funny-if-they-weren’t-sad pieces of advice I found:</p><h4>Use of DES for encryption</h4><p>And no, I don’t mean 3DES, just plain DES. The one that can be brute forced in a single digit number of days by a modern computer. Keep in mind the intended audience for this article isn’t cryptographers who know better, it’s programmers looking for a tutorial. It’s a good thing the caesar shift isn’t available in their library or it would probably have ended up in this tutorial.</p><h4>Suggestion to use the encryption key as the IV</h4><p>This was the first in a series of data points which suggest that the author has no idea what an IV is or how it’s supposed to be used. This suggestion actually comes up more than once in the article, here are the offending passages:</p><blockquote>You can prompt the user for a password. Then, use the password as the key and the IV.</blockquote><p>Note that there is no mention of a using a key derivation function, just a suggestion to use the password directly.</p><pre>DES.Key = ASCIIEncoding.ASCII.GetBytes(sKey);<br>DES.IV = ASCIIEncoding.ASCII.GetBytes(sKey);</pre><p>This passage is probably even worse in that it’s actual code that unsuspecting readers could potentially copy and paste.</p><h4>Advice against using the library’s key and IV generation functionality</h4><p>Using a single password as the key and the IV is a pretty terrible suggestion, but luckily the library has a method for generating a key and IV for you so you don’t mess it up. Unfortunately the author explicitly advices against it for a nonsensical reason.</p><blockquote>If you do not provide a key, the provider randomly generates one. <strong>This successfully encrypts the file, but there is no way to decrypt the file.</strong> Note that you must also provide the initialization vector (IV). This value is used as part of the encryption. Like the key, the IV is randomly generated if you do not provide the value. Because the values must be the same for the encryption and the decryption, <strong>you must not permit random generation of these values</strong>.</blockquote><p>Emphasis mine. So apparently if you use the key and IV generation functionality of the library there is no way to perform decryption. I have to wonder why the author thinks the library authors chose to include this irreversible data destruction functionality. The author even takes it a step further and makes the blanket statement that keys and IVs shouldn’t be randomly generated at all.</p><h4>IV not included with the ciphertext</h4><p>This one is subtle because you have to either really follow the logic or try running the code yourself. This probably explains why the author treats the IV as if it’s another secret key.</p><h4>References get the IV wrong also</h4><p>It may seem like I’m really raking this guy over the coals for his misunderstanding of what an IV is or how it’s used; after all this isn’t an article about block cipher modes or cryptographic keys, and it even links to a <a href="https://msdn.microsoft.com/en-us/library/5e9ft273(v=vs.80).aspx">reference specifically about cryptographic keys</a>. Surely that clears everything up, right? Right?? This is literally the second sentence in that article:</p><blockquote>Symmetric algorithms require the creation of a key and an initialization vector (IV) that must be kept secret from anyone who should not decrypt your data</blockquote><p>But at least that article uses triple DES in their example.</p><p>Followup: <a href="https://medium.com/@bob_parks1/dear-microsoft-this-is-how-you-encrypt-a-file-779cc0a19bfc">Dear Microsoft, This is How You Encrypt a File</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bfadf2b0273d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Security Vulnerability Disclosure — NY Health Insurance Exchange]]></title>
            <link>https://medium.com/@bob_parks1/ny-state-of-health-site-security-vulnerability-d204d18ffede?source=rss-7d4c27695848------2</link>
            <guid isPermaLink="false">https://medium.com/p/d204d18ffede</guid>
            <category><![CDATA[healthcare]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Robert Parks]]></dc:creator>
            <pubDate>Thu, 10 Dec 2015 02:56:56 GMT</pubDate>
            <atom:updated>2016-09-27T17:01:07.902Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eUYhCqLYo_cQpMSQvelQOw.jpeg" /><figcaption>A computer hacker’s keyboard probably</figcaption></figure><p>Last Saturday (12/5/15), I got an email from the New York State of Health website informing me that I had a new message waiting for me on their website. After fumbling my way through their login process and eventually to my message inbox, I clicked to view my new message. I expected the message to appear on screen, but instead a pdf was downloaded. A pdf titled “Template012.pdf.” A strange way to implement an messaging system; I figure the pdfs are intended to be printed out an mailed and the message inbox just links to the electronic copy of the file on some file server. I recently implemented file uploading and downloading on my website, so I got curious about their implementation. Within about 30 seconds I discovered that I, or any logged in user, could download any message regardless of the intended recipient. That was quite worrisome considering that the messages all contain names, addresses, and account numbers, and depending on the type of message it could contain household member names and account numbers, income information, and health insurance selections.</p><h4>Technical Notes</h4><p>(I waited until the vulnerability was fixed before posting this, so these instructions no longer work. You can still follow along, you’ll just get a “forbidden” error message instead of downloading an unauthorized message)</p><p>To replicate:</p><p>Login to NY State of Health: <a href="https://nystateofhealth.ny.gov/individual">https://nystateofhealth.ny.gov/individual</a></p><p>Go to dashboard: <a href="https://nystateofhealth.ny.gov/individual/individualdashboard/hx_overviewInfo?iId=">https://nystateofhealth.ny.gov/individual/individualdashboard/hx_overviewInfo?iId=</a></p><p>Click “Inbox”</p><p>In the “Messages” table the right most column has a envelope icon. Clicking on it will download a pdf of the message. Instead of clicking, right click and copy the url.</p><p>Paste the url to the address bar. It will look something like this:</p><p><a href="https://nystateofhealth.ny.gov/individual/individualdashboard/hx_getDocument?dcnToken=NXXXXXXXXXXXX&amp;pageRequested=inboxPage&amp;docType=Template012&amp;readStatus=true">https://nystateofhealth.ny.gov/individual/individualdashboard/hx_getDocument?dcnToken=NXXXXXXXXXXXX&amp;pageRequested=inboxPage&amp;docType=Template012&amp;readStatus=true</a></p><p>Where dcnToken=NXXXXXXXXXXXX is a capital N followed by a 12 digit number.</p><p>Modify the number. They appear to be sequential, so a number near the one that you started with should work.</p><p>Hit enter, a pdf should be downloaded. The pdf will be a message that isn’t intended for you.</p><p>Analylsis:</p><p>The dcnToken is a file specifier. Anybody logged in user with the dcnToken corresponding to a file can download that file. The dcnTokens appear to be sequential, so given a good dcnToken it is very easy to find more valid dcnTokens.</p><h4>Reporting</h4><p>I called the site’s customer service number to report the vulnerability, but it took about 4 operators before I got one that understood what I was talking about. Even then I wasn’t sure if he had the means to report the problem properly, so I emailed CSC (the company that made the site) and reported it directly to them. This is the email I sent them:</p><blockquote>CSC,</blockquote><blockquote>I’ve discovered a security vulnerability on the NY State of Health website which allows any logged in user to view messages that are intended for other users. The messages contain sensitive private information including account numbers, names, addresses, income information, etc. I’ve reported the problem to NY State of Health customer service but I’m not sure if that’s the proper channel. Please let me know who I can report the technical details of this vulnerability to. In accordance with responsible disclosure I have not disclosed this vulnerability publicly.</blockquote><p>Their senior software engineer called me a few hours later and I explained the situation to him. A few hours after that the file server was shutdown, and a couple of days after that it was back up with the bug fixed.</p><h4>Severity</h4><p>If a malicious actor had learned of this vulnerability before the fix it would have been devastating. It seems that messages are sent to users every time they update their health insurance selection or change their eligibility, and as far as I can tell the messages contain all of the sensitive information pertaining to the updates. That means that by iterating through and downloading the messages, an attacker would have recovered the majority of their user data. The worst part is that we have no idea if this happened, and based on the lack of basic security implementation I seriously doubt that CSC has the logs to determine if such an attack took place.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d204d18ffede" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recruitment to Resignation: My Four Months at Microsoft]]></title>
            <link>https://medium.com/42hire-don-t-panic-just-hire/recruitment-to-resignation-my-four-months-at-microsoft-41ad863f1591?source=rss-7d4c27695848------2</link>
            <guid isPermaLink="false">https://medium.com/p/41ad863f1591</guid>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[job-hunting]]></category>
            <dc:creator><![CDATA[Robert Parks]]></dc:creator>
            <pubDate>Mon, 28 Sep 2015 01:47:22 GMT</pubDate>
            <atom:updated>2015-09-29T21:06:54.874Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*NUoPDFbaY4OR_oeUtOlTzQ.png" /></figure><h4>Recruitment</h4><p>Unlike most of the other big companies, Microsoft’s career fair booth isn’t just for dispensing propaganda. I handed the recruiter my resume, chatted a bit about technical stuff, and that exchange constituted an application. Quite a welcome surprise after the same exchange with Google ended with being informed that my application must be submitted online, where it would promptly be lost in a system which receives <a href="http://www.forbes.com/sites/stanphelps/2014/08/05/cracking-into-google-the-15-reasons-why-over-2-million-people-apply-each-year/">over 2 million applications annually</a>.</p><h4>Phone Interviews</h4><p>In my previous experiences a phone interview is one of two types: technical or non-technical. With Microsoft my first interview was with a non-engineer, but it was still a technical interview in some sense; she asked questions attempting to gauge my “intellectual horsepower” as she phrased it. One question I remember was, “how would you test a paper cup?” Which I though was a strange question. That interview ended with the recruiter trying to sell me on applying to an SDET (Software Development Engineer in Test) position instead of an SDE (Software Development Engineer) position, which I guess explained the curve-ball QA related question. I assume that Microsoft was pushing for more SDETs but I was adamant that I didn’t want to get into QA, and that SDE was the only position I’d consider. The difference turned out to be inconsequential, as both positions were restructured into “Software Engineer” shortly after I started.</p><h4>In Person Interview</h4><p>The in-person interview was probably the best experience I had at Microsoft. I was flown into Seattle, given a car rental, and able to plan my return flight with enough time to visit some family in the area after my interview. I was put up at a hotel in the Redmond town center and was picked up by a stretched limousine on the morning of my interview. The interviewees all gathered in a conference room where breakfast and lunch were provided, and we were given a $75 voucher to get ourselves dinner after the interview.</p><p>During my interviews I was able to find out that we were apparently interviewing for the Operating Systems Group (OSG) of Microsoft. I thought it was strange that we hadn’t been informed of that beforehand, and that I only found out myself by asking an interviewer. That minor lack of communication turned out to be an indicator of things to come.</p><p>I received an offer the next day, which was another nice change of pace from Google where a decision isn’t reached for 2–3 weeks after the interview.</p><h4>The First Days</h4><p>A new employee’s first day at Microsoft is something they call New Employee Orientation or NEO. It’s a weekly event, where all new hires that are starting that week meet and get some generic HR orientation. I was shocked to learn how many people start at Microsoft weekly. There were over 100 people in my NEO cohort, and we were apparently an average sized group.</p><p>I was excited for NEO because I would finally learn what the heck was going on. Until that point all I knew is that I’d be an SDE in the Operating Systems Group. I had no idea what product I’d be working on or even how initial training or anything like that worked. I wasn’t even sure if those things had already been selected or if we’d go through some kind of selection process like I’d heard they have a Facebook. In fact I actually wasn’t even sure how I’d get home. Microsoft had made it clear that they take care of transportation for their employees but hadn’t given any specifics. I took a $60 cab from downtown Seattle to get there but I was hoping not to have to take another back home. I assumed I’d learn all of those things at NEO and then everything would finally be clear. I couldn’t have been more wrong.</p><p>Some Microsoft SWAG, a few cheesy ice-breakers, a lengthy presentation about health insurance and 401ks, a prerecorded message from Satya Nadella, some completely useless information about transportation, and then that was it. The day was ending. I still had no information about what I’d be doing at Microsoft or what happens next. I had been given the name of my manager and his office number, but he mysteriously didn’t show up on //who (a page on Microsoft’s intranet with bios of all Microsoft employees). And for some reason after all the buildup about providing transportation they waited until our first day to let us know that it doesn’t take effect until our second week. By a stroke of luck I was able to find a Microsoft employee with some extra bus tickets.</p><p>That night I talked to my girlfriend about how lost I still felt. After my orientation all I had to go on was a name, an office number, and a couple of bus tickets that I was fortunate enough to be gifted. I joked that I’d show up the next day and my manager would be out of the office.</p><p>I showed up the next day and my manager was out of the office. The only lead I had to go on led me to a door with a sticky note, “OOF until next Wednesday.” I couldn’t believe the luck.</p><p>A friendly receptionist was nice enough to investigate my situation and point me toward other members of my team, who were much more helpful. My teammates understandably didn’t have any tasks for me to work on, so I spent the first week and a half trying to be as proactive as possible. I checked out some books from the Microsoft library, attended a couple of internal webinars, picked my coworker’s brains about the project, and read over the resources they provided me.</p><h4>My New Manager</h4><p>After a week and a half of trying to stay busy and get to know my co-workers, my manager got back from vacation. I was excited to meet him. I was excited to ask him about the project, about himself, and about Microsoft in general.</p><p>I caught a glimpse of him at our morning stand-up meeting, and at some point he shook my hand. The meeting ended, we went back to our respective offices, and then I waited. I continued to pour over the resources that my coworkers provided and assumed he’d soon call me into his office for a meeting, or maybe message me through e-mail or chat. It got to 5 and then 6pm. I realized it wasn’t going to happen that day, then again the next day. It wasn’t until after working at Microsoft for two full weeks that I was finally called into my first meeting with my new manager.</p><p>The first item on the meeting’s agenda was apparently to browbeat me for not communicating with him enough. It was a sentiment I couldn’t believe he could hold unironically considering the context, but somehow he did. The next item on the agenda was to browbeat me for not communicating enough with my teammates. That one didn’t even make sense, I’d been in constant communication with my teammates since I arrived. I started to defend myself against the accusation, but he interrupted me and changed the subject. The veracity of his criticism apparently wasn’t important. He then explained that at Microsoft employees are expected to take initiative, and that it didn’t seem like I understood “Microsoft culture.” I was completely nonplussed. I thought this was going to be a meeting where we’d get to know each other and talk about the project. Instead I found myself on the defensive, the recipient of a barrage of inane accusations. I left the meeting even more confused than I went into it.</p><p>I went back to my office and replayed the meeting over in my head, trying to make sense of it. A few minutes later I got a message from my manager to meet him in his office again. I figured we’d left the last meeting on such a negative note that nothing could make it worse, but I was wrong. He apparently had another card to play to make me feel even more awkward and out of place. He sat me down and asked, “do you feel like this team isn’t a good fit for you?” I was really at a loss of words at that point. I had no idea what motivated him to ask that question. I didn’t see how saying “yes” would benefit me in any way, so in my state of confusion I mumbled something about how I think the project sounds really interesting.</p><h4>The Interim</h4><p>Our unfortunate first meeting apparently wasn’t a fluke, that was really just how he treated me. One thing I always found bizarre was that whenever we had a meeting he’d always stress that I “should be asking questions.” And it wasn’t an encouraging, “feel free to ask me anything,” it was more of an accusatory, “why haven’t you been asking me more questions?” I’m not sure if he thought I had pressing questions that I was refraining from asking of if he just wanted me to make up random questions to ask him. Neither one made any sense.</p><p>At one point I remember I actually did have a serious question to ask him, which I assumed he’d appreciate given how many times he’d pressed me to ask more questions. I wrote out a couple paragraphs detailing the situation, what I needed to do, and what I’d already tried. His response was basically, “read this &lt;link&gt;.” The link he sent me was something I’d already read and it didn’t contain the answer to my question; which he would have inferred had he read my entire email. I interpreted his response to mean that I would be better off continuing to search for the answer myself. When I eventually took initiative and made a decision, I turned out to be wrong. My manager noticed immediately and sent me a long e-mail detailing exactly why I was wrong, what I should have done instead, and of course chastising me for not asking him more questions. Apparently my manager expected me to take initiative but also ask him questions before making any action, all while blowing off my attempts to communicate with him. I explained the situation, the email that I had sent him, his response, my reasoning for making the decision, and he responded by saying that he has the personality of a “driver” and that sometimes he just “drives right over people.” It wasn’t an apology, but I guess it was as close as I was going to get.</p><p>At some point we got another new hire on our team. Before he showed up our manager told us all about him and seemed genuinely excited. When he showed up on his first day our manager immediately held a meeting with him, after which he toured him around the office and introduced him to the whole team. That’s when I realized something was really off. I told a couple of my coworkers in private about the way our manager had been treating me and asked they shared similar experiences. They were so surprised that I’m not even sure they believed me.</p><h4>Resignation</h4><p>It was clear that my manager didn’t want me on his team and I can only speculate as to why. My best guess is that he got assigned me against his will and was acting off-putting in an attempt to drive me away. I’m not sure how Microsoft assigns roles to their new hires but it didn’t seem to take into account my background or my manager’s desires.</p><p>I started looking at other opportunities internally at Microsoft that I could potentially be transferred to. In the process I got curious about roles outside of Microsoft too and ended up finding a better opportunity elsewhere.</p><p>The last time I quit a job was to go to grad school, which for some reason seemed easier. I didn’t have anything positive to say to explain why I was leaving, so I kept it simple. I wrote an e-mail stating that I was resigning and gave a date. I sent it to my manager and cc’d the team. I expected to hear back immediately but I got nothing. Two days later I was cc’d on an e-mail from my manager to HR requesting to start processing my resignation, and that was it. I had resigned.</p><h4>If I Were to Do it Over</h4><p>I would have requested to be moved to a different team immediately. I should have understood that my manager’s behavior was an indicator, not an anomaly.</p><p>I wouldn’t have moved to downtown Seattle. I was moving from NYC, so I figured I’d be most comfortable in the city. Google maps says the drive from downtown to Redmond is under 30 minutes, which seems like a reasonable commute. In reality the commute was a little over an hour in each direction, and downtown Seattle is nothing like NYC. If I were to do it over I’d probably just bite the bullet and move to Redmond.</p><p>I’ve received a lot of feedback that I should have approached my manager initially instead of waiting for him to initiate contact. In retrospect that probably would have been the better option, but it wouldn’t have changed much about the situation overall. I arrived with the assumption that my manager had my interests in mind and would make some attempt to make me feel welcomed on to the team. The underlying problem is that assumption was wrong on both counts; initiating contact wouldn’t have changed that.</p><h4>What Microsoft Should Do Differently</h4><p>The biggest thing Microsoft can do is start getting feedback from new hires. When I told other employees about my NEO transportation troubles, I learned that many others shared the same experience. Microsoft should have been aware of that long ago. One problem is that they do actually get feedback about NEO, just not the right feedback. Everybody fills out a survey featuring prompts like, “I feel like I understand my health insurance options: Agree/Disagree.” What’s needed is the question, “are there any glaring omissions in our orientation program?” Inadequate feedback had led them to a local maxima, where the health care presentation is hyper-finely-tuned yet there are massive omissions in the orientation process as a whole.</p><p>New hires should also have some way express concerns with their team assignments. Managers have a conflict of interest in that regard, so it’s not a responsibility they can bear. A better team selection system that actually includes employee feedback may have kept me as an employee, along with who knows how many others.</p><h4>Afterword</h4><p>In some way I’m thankful that I had such an off-putting manager. I don’t think Microsoft was the right place for me overall, and a welcoming manager would have just delayed that inevitable realization.</p><p>I left Microsoft and took a stab at an opportunity on the complete opposite end of the spectrum; I started a startup with some associates from grad school. It has turned out to be a much better fit for me.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41ad863f1591" width="1" height="1" alt=""><hr><p><a href="https://medium.com/42hire-don-t-panic-just-hire/recruitment-to-resignation-my-four-months-at-microsoft-41ad863f1591">Recruitment to Resignation: My Four Months at Microsoft</a> was originally published in <a href="https://medium.com/42hire-don-t-panic-just-hire">Don&#39;t Panic, Just Hire</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>