<?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 Eugene Kogan on Medium]]></title>
        <description><![CDATA[Stories by Eugene Kogan on Medium]]></description>
        <link>https://medium.com/@eugenekogan?source=rss-5920b92821c5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*OreT8ELMpfTHQ1DGgyyrZA.jpeg</url>
            <title>Stories by Eugene Kogan on Medium</title>
            <link>https://medium.com/@eugenekogan?source=rss-5920b92821c5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 09:58:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@eugenekogan/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[Your AWS keys will be leaked or stolen. Prepare yourself.]]></title>
            <link>https://medium.com/philosophically-secure/your-aws-keys-will-be-stolen-or-leaked-prepare-yourself-e807473f9665?source=rss-5920b92821c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/e807473f9665</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Eugene Kogan]]></dc:creator>
            <pubDate>Wed, 07 Jun 2017 01:25:46 GMT</pubDate>
            <atom:updated>2017-06-07T12:08:13.081Z</atom:updated>
            <content:encoded><![CDATA[<p>Any company with a substantial AWS cloud presence will have a bunch of <a href="http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html">AWS access keys</a> all over the place. Eventually, one of these keys will get leaked (e.g., when a developer accidentally commits their keys to GitHub) or stolen (e.g., from a compromised laptop).</p><p>There are several steps worth taking in advance, which will help reduce the blast radius when the inevitable happens. Even if you’re super lucky and your keys never get stolen, doing these things will greatly improve the security of your AWS infrastructure overall.</p><h4>Remind users not to share their keys</h4><p>Users should treat their keys like passwords. Do not share them. Do not post them on the wiki. Do not email them to your friends. It helps to remind people about these things once in awhile.</p><h4>One key per user (per account)</h4><p>The only time a user needs two AWS keys for their account is during a key rotation. Otherwise, one is plenty and easier to keep track of.</p><h4>Reduce permissions whenever possible</h4><p>Do all your users need read access to every S3 bucket? How about the one with your database backups? Probably not. Reduce permissions through IAM policies to the best of your ability.</p><h4>Don’t store keys in source control</h4><p>AWS keys (and all other credentials) do not belong in source code or configuration files. These end up in GitHub, and sometimes in public repositories. Instead, adopt a secure credential store like <a href="https://www.vaultproject.io/">Vault</a> or <a href="https://github.com/fugue/credstash">credstash</a>. The sooner you do this, the easier it will be. Retrofitting an existing application can be tricky.</p><h4>Use IAM roles in EC2</h4><p>Rather than hand out a bunch of keys for service accounts, use <a href="https://aws.amazon.com/iam/faqs/#iam_role_management_anchor">IAM roles</a> instead.</p><h4>Require MFA for console authentication</h4><p>This is an obvious step, but don’t skip it. All users must enable <a href="https://aws.amazon.com/iam/faqs/#MFA_FAQs">MFA for AWS console access</a>. Even for “throw away” accounts, which have a habit of sticking around and becoming critical production services.</p><h4>Require MFA for API authentication</h4><p>This is perhaps the most important thing you can do to reduce the impact of stolen AWS keys. Requiring <a href="http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_mfa_configure-api-require.html">MFA for API usage</a> does create more friction, but you at least should do this for any privileged accounts and sensitive operations.</p><h4>Enable CloudTrail logging</h4><p>Again, this is pretty obvious. You need logs for security monitoring and incident response. <a href="http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-getting-started.html">Enable those logs</a>, in all regions!</p><h4>Monitor logs and create alerts</h4><p>Don’t just collect CloudTrail logs, use them wisely. Create automation to alert you when AWS keys are being misused. <a href="https://auth0.engineering/cloud-security-monitoring-at-auth0-ff5e87ad1141">I wrote a blog post on this previously.</a></p><h4>Design apps for key rotation</h4><p>It shouldn’t be too painful to <a href="https://www.owasp.org/index.php/Key_Management_Cheat_Sheet#Key_Rotation">rotate keys</a>. Design your apps with this in mind, because you know you’ll have to do it eventually. Making it easy upfront will pay dividends down the road.</p><h4>Rotate keys on a regular basis</h4><p>That way, if someone did post them on the wiki three months ago, at least they won’t work anymore!</p><h4>Have an incident response plan</h4><p>And don’t forget to test it, assuming you don’t have security incidents very often. An <a href="https://medium.com/starting-up-security/an-incident-response-plan-for-startups-26549596b914">IR plan</a> doesn’t have to be complex.</p><h4><strong>Did I miss something? Shoot me a comment or find me on </strong><a href="https://twitter.com/eugk"><strong>Twitter</strong></a><strong>.</strong></h4><p>Good luck!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e807473f9665" width="1" height="1" alt=""><hr><p><a href="https://medium.com/philosophically-secure/your-aws-keys-will-be-stolen-or-leaked-prepare-yourself-e807473f9665">Your AWS keys will be leaked or stolen. Prepare yourself.</a> was originally published in <a href="https://medium.com/philosophically-secure">Philosophically Secure</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recipe for Happy Humans at Work]]></title>
            <link>https://medium.com/philosophically-secure/recipe-for-happy-humans-at-work-f82ee13680cc?source=rss-5920b92821c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/f82ee13680cc</guid>
            <category><![CDATA[management]]></category>
            <category><![CDATA[happiness]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[work-culture]]></category>
            <category><![CDATA[work]]></category>
            <dc:creator><![CDATA[Eugene Kogan]]></dc:creator>
            <pubDate>Sun, 19 Feb 2017 01:51:39 GMT</pubDate>
            <atom:updated>2017-02-21T02:48:17.598Z</atom:updated>
            <content:encoded><![CDATA[<p>I mostly put these slides together as a reminder for myself, but I’ve decided to share them. None of these ideas are original, as you can see in the attributions.</p><p>Send me a message on Twitter if you’d like a PDF version, or if you have any suggestions. I’m <a href="https://twitter.com/eugk">@eugk</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AMCIYK8sXh1LF-d-RKE-Hg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J5N7dnRLdu3PhHtQ483X5A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4fCRky7ny1ihVz9cYPaYfQ.jpeg" /></figure><p>Read these books to learn more: <a href="https://www.amazon.com/Drive-Surprising-Truth-About-Motivates-ebook/dp/B004P1JDJO/ref=as_li_ss_tl?s=books&amp;ie=UTF8&amp;qid=1487468862&amp;sr=1-1&amp;keywords=drive+surprising+truth+about+what+motivates+us&amp;linkCode=ll1&amp;tag=eugknet-20&amp;linkId=338252c7ec579867d14c560032402738">Drive: The Surprising Truth About What Motivates Us</a> and <a href="https://www.amazon.com/Effective-Manager-Mark-Horstman-ebook/dp/B01H9E36OG/ref=as_li_ss_tl?s=books&amp;ie=UTF8&amp;qid=1487468942&amp;sr=1-1&amp;keywords=the+effective+manager&amp;linkCode=ll1&amp;tag=eugknet-20&amp;linkId=a9b3f0c8f9eb6729ae9fc651e8b5c029">The Effective Manager</a>. After reading them, these slides will make for good reminders of the key points.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f82ee13680cc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/philosophically-secure/recipe-for-happy-humans-at-work-f82ee13680cc">Recipe for Happy Humans at Work</a> was originally published in <a href="https://medium.com/philosophically-secure">Philosophically Secure</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Breach Response Planning for Startups]]></title>
            <link>https://medium.com/philosophically-secure/data-breach-response-planning-for-startups-a771505c528c?source=rss-5920b92821c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/a771505c528c</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Eugene Kogan]]></dc:creator>
            <pubDate>Mon, 02 Jan 2017 02:30:22 GMT</pubDate>
            <atom:updated>2017-01-02T02:30:22.195Z</atom:updated>
            <content:encoded><![CDATA[<p>A serious data breach can have massive negative repercussions for any organization, including the loss of customers, revenue, reputation, even intellectual property. For a startup, it can mean the end of your business.</p><p>Unfortunately, startups are often completely unprepared to deal with a major security incident that involves a breach of sensitive data. Unlike larger, more mature organizations, startups have no choice but to be lean and spend their limited resources carefully. Startups are also worth much less than bigger companies, and all of their energy is focused on growth and proving a business model. So it’s no wonder that they tend to spend less time and money on issues like security, let alone data breach response.</p><p>On the other hand, no one wants to see their fledgling company go out of business because of a security breach. So how much time and money does it make sense for a startup to invest in preparing for a breach? I think of planning for the worst as somewhat of an insurance policy. You hope that a data breach doesn’t happen to your company. You put some effort into preventing one through reasonable security controls. But just in case something goes wrong (like if that small security incident suddenly becomes a breach of your credit card database) you want to be prepared.</p><p>Now that I’m responsible for security at Auth0, issues like this are increasingly on my mind. It’s my first time working at a startup, having spent the last 15 years working security at huge organizations like AT&amp;T, Amazon.com, and the US Department of Defense. These guys are seriously prepared for anything, from a laptop with malware to a major natural disaster. But when you join a startup, you quickly learn how to pave the road as you’re driving it. For us, now is a good time to start planning further ahead, especially for unlikely but potentially devastating scenarios like a data breach.</p><p>Let’s assume your startup has enough valuable intellectual property, a growing user base, and increasing amounts of customer data. It’s likely that you’re already dealing with security incidents on a regular basis. You have a decent incident response plan that is sufficient for the common security issues that small companies face, and it’s probably not a big deal to quietly take care of these in-house.</p><p>A data breach is not a run of the mill security incident. What I’m talking about here is a major “oh crap” moment when you realize your entire user database was posted on Pastebin, along with those passwords you meant to hash with something better than SHA-1 but didn’t quite get around to doing. (It’s ok, we’re a startup, right? No! Bad startup! That’s what <a href="https://auth0.com/">Auth0</a> is for.)</p><p>So how would your company respond to such a breach? Do you know the legal requirements for notifying your customers? Should you contact law enforcement? Who do you call first and how long can you wait? Every data breach is different, so I’m not going to attempt to provide specific answers to these questions. A lot will depend on how big your business is, how many users were impacted, where they live, what kind of data was lost, and so on.</p><p><strong>My goal is to help startups prepare for a data breach and to come up with a simple response plan without spending too much money.</strong></p><p>For a small company trying to respond to a major security incident like a data breach, the best thing to do is to ask for help. It’s just not practical or realistic to have all the necessary expertise in-house, at least not until your business can justify having a very large (and expensive) information security organization.</p><p><strong>I recommend having the following relationships in place <em>before</em> you need them:</strong></p><ul><li>Cyber liability insurance</li><li>Legal council with data breach experience</li><li>Public relations firm with data breach experience</li><li>Incident response and forensics consulting firm</li></ul><p>Having these vendors under contract prior to an incident occurring is critical. I hope it’s obvious why you’d want cyber insurance in advance, just like you’d want car insurance before getting into an accident. But there are several good reasons for lining up the rest of your response network in advance. First is the issue of timeliness. It takes time to negotiate a contract with a new vendor, even at a startup. But when you’re responding to an incident, you don’t have any time to spare. You’re already late! Also, a lot of the best vendors will be booked up for weeks in advance, working for their current customers. If your plan is to call an IR firm and hope that they can come help you later today, you will be sorely disappointed (or shocked by how much they want to charge you).</p><p>Speaking of cost, there are ways to help reduce the upfront expense of being prepared while simultaneously reducing the cost of an eventual response. Lawyers are expensive, and I don’t have any tips on fixing that problem just yet. So pick a good lawyer with a track record of working on major data breaches, and sign a contract to have him or her on a retainer. You should be able to do this without paying much (or anything) up front.</p><p>A public relations firm will be a major asset when it comes time to communicate with your customers. The way a company handles a data breach in the public eye can have a huge impact to how people react. You want to provide just enough details but no more, be accurate so you don’t have to issue a correction later, and take responsibility when appropriate. A PR firm with experience in dealing with data breaches will be able to help you get the right message across. That can go along way to mitigating the damage to your reputation and hopefully reducing the number of lost customers. Once you have a PR firm finalized, it may be worth paying them to draft up some boilerplate press releases for potential breach scenarios, just to save time later on.</p><p>Something to keep in mind is that even if you already have a PR firm that your startup uses for standard PR needs, they might be totally clueless when it comes to security incidents. You need to ask them the right questions to find out. If your current firm isn’t up to speed, it’s worth having a second PR firm on board just for breach response.</p><p>Do you really need an external IR firm to help you respond to a data breach? If you’re a startup, the answer is almost definitely yes. First of all, it’s unlikely that you have a security team with deep technical expertise in digital forensics. You need that expertise to be certain that the cause and extent of the breach has been accurately identified. And if you can’t be sure of that, then you can’t be sure the breach has been fully contained. This is especially true if the cause is an intentional intrusion by an attacker, who may be actively evading your response efforts. For a serious breach that involves law enforcement, you’ll be grateful to have security consultants with LE backgrounds helping you out.</p><p>Even with a team of experts, there is never a 100% guarantee that everything has been found and cleaned up. But you stand a much better chance of doing this correctly if you engage an experienced IR firm. Also, when it comes time to do a press release, having a well-known firm on your side will help your users feel like you’re taking the incident seriously.</p><p>When choosing an incident response firm, reputation goes a long way. The firms with better reputations attract better talent, at least on average. As always, it pays to ask around for recommendations from people you trust. The bigger firms are generally all decent, and will have several advantages over the smaller guys. First, all major firms offer a zero cost retainer option, so you can sign a contract and have them ready to go without spending any money upfront. Second, they will probably be quicker to respond than a smaller firm, simply because they have more consultants available at any given time.</p><p>Another advantage bigger firms have (not just IR, this goes for PR and legal as well) is their breadth of experience. This can be especially important if your startup has customers in foreign countries with strict privacy laws or notification requirements, or if you’re using a complex or niche technology stack. Is your product built with OpenBSD, Scala, and Spark, hosted on Oracle’s cloud? You should probably make sure the IR firm has people with experience using those technologies. Startups tend to be on the bleeding edge and most security consultants simply can’t keep up.</p><p>Up until now I’ve mostly avoided talking about cyber insurance, partially because I hate the word “cyber.” But the reality is that every significant business should have some cyber liability coverage to help absorb the financial burden of a large-scale data breach. You will need a policy that’s tailored to your company, its projected growth, and the risks associated with your industry.</p><p>The first step to getting cyber insurance is to find a knowledgeable broker. It pains me to say this, since we techies generally don’t enjoy dealing with middlemen like brokers, but that’s really the only way to go at this point (until a startup comes along and successfully disrupts this model). Again, ask your industry peers for recommendations on a cyber insurance broker, and don’t assume your regular business insurance guy will know anything about this stuff. If you start this process with the wrong broker, you may end up with an inappropriate policy that will fail you when it comes time to file a claim.</p><p>Selecting a cyber insurance policy should actually be one of your first steps, once you have a clueful broker and a basic incident response plan in place. The reason for this is that almost all agencies will have a list of approved vendors that you’re strongly suggested to use in the event of an incident. They have pre-negotiated rates with these vendors, and they are (allegedly) vetted and deemed competent. It’s usually possible to get an exception to use a vendor that’s not on your insurance agency’s list, but that means jumping through more hoops to get them approved. If you go down this road, your broker should help you out and provide advice. So if you have a particular PR or IR firm in mind that you really want to work with, you should let your broker know before you start shopping around for a policy. I don’t recommend signing any contracts until you are sure that your cyber insurance policy will allow you to work with the vendor in question. This includes legal council and other vendor categories that I haven’t even mentioned, such as credit monitoring and notification service providers.</p><p><strong>Here’s my recommended action plan for getting your startup in a good place, ready to respond to a large-scale data breach:</strong></p><ol><li>Think about security, work on improving it, and have a decent incident response plan.</li><li>Document some potential data breach scenarios that your company might face, including the kinds of data that might be impacted, the number of users you have, where they’re located, and so on.</li><li>Contact a few cyber insurance brokers, ideally from trusted recommendations. Pick one who is knowledgeable and willing to work with startups.</li><li>Work with your broker, CFO, and security team to find a policy that meets your requirements.</li><li>Be aware of the agency’s approved vendor list, and ask for exceptions (if you have any in mind) before buying a policy.</li><li>Carefully select vendors to help you in case of a breach. That includes at least legal, PR, and IR firms.</li><li>Sign a contract with these vendors so that they are ready to help you respond at a moment’s notice. Go for zero cost retainers if that makes financial sense for your business.</li><li>Review all of the above as your startup grows and changes over the year. If your revenue explodes, you will need to increase your insurance coverage sooner rather than later.</li></ol><p>You can never be too prepared when it comes to security. So what are you waiting for?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a771505c528c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/philosophically-secure/data-breach-response-planning-for-startups-a771505c528c">Data Breach Response Planning for Startups</a> was originally published in <a href="https://medium.com/philosophically-secure">Philosophically Secure</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why the US shouldn’t publish proof of attribution]]></title>
            <link>https://medium.com/philosophically-secure/why-the-us-shouldnt-publish-proof-of-attribution-d161719809bb?source=rss-5920b92821c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/d161719809bb</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[government]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Eugene Kogan]]></dc:creator>
            <pubDate>Mon, 02 Jan 2017 02:29:52 GMT</pubDate>
            <atom:updated>2017-01-02T02:44:07.793Z</atom:updated>
            <content:encoded><![CDATA[<p>I know people want to see more attribution evidence of the <a href="http://arstechnica.com/security/2016/12/did-russia-tamper-with-the-2016-election-bitter-debate-likely-to-rage-on/">recent</a> Russian cyber attacks, but there are good reasons not to publicize the data.</p><p>The intelligence community does attribution using very sensitive sources and methods, such as <a href="https://en.wikipedia.org/wiki/Signals_intelligence">SIGINT</a> and <a href="https://en.wikipedia.org/wiki/Human_intelligence_(intelligence_gathering)">HUMINT</a>. Even remotely hinting that these sources exist makes it almost certain that they will be discovered and rendered useless by those being monitored. In the case of HUMINT, this can mean putting lives in danger.</p><p>Replacing lost monitoring ability with new sources and methods usually costs millions of dollars and takes anywhere from a few months to a few years. In some cases, the same level of access is never regained.</p><p>The intelligence community would go dark on important targets, leaving top decision makers without the information they need. We can’t afford gaps like this due to the breadth and severity of current threats, especially after the damage already done by <a href="http://www.wsj.com/articles/the-fable-of-edward-snowden-1483143143">Snowden</a>.</p><p>We also can’t blindly trust our government, and we should continue to ask questions. But when it comes to attribution and similar analysis that relies on sensitive sources, protecting national security will be always be a higher priority. It would be far more damaging to publicize the evidence.</p><p>Government oversight will have to come in a different form. Maybe sharing classified evidence with a panel of elected officials would help? Could we trust them to evaluate something this technical? I’m not convinced.</p><p>Perhaps an important next step is for the various agencies and departments to work on regaining the public’s trust. Easier said than done, I know.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d161719809bb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/philosophically-secure/why-the-us-shouldnt-publish-proof-of-attribution-d161719809bb">Why the US shouldn’t publish proof of attribution</a> was originally published in <a href="https://medium.com/philosophically-secure">Philosophically Secure</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Could your iPhone get stolen while it’s unlocked?]]></title>
            <link>https://medium.com/philosophically-secure/could-your-iphone-get-stolen-while-its-unlocked-2cc1254d1e1c?source=rss-5920b92821c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/2cc1254d1e1c</guid>
            <category><![CDATA[ipad]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[iphone]]></category>
            <category><![CDATA[icloud]]></category>
            <dc:creator><![CDATA[Eugene Kogan]]></dc:creator>
            <pubDate>Sat, 03 Dec 2016 02:58:07 GMT</pubDate>
            <atom:updated>2016-12-04T18:05:13.711Z</atom:updated>
            <content:encoded><![CDATA[<p>Yes, definitely. It’s happened to a number of people I work with.</p><p>Imagine you’re walking down the street, checking Slack or Facebook, and someone on a bike rides by and grabs your phone. Guess what, your phone is unlocked and ready for the thief to start using it. The same thing can happen in a bar, the subway, or any other crowded place. Even Scotland Yard has started <a href="http://www.bbc.com/news/uk-38183819">using</a> this technique (but that’s another matter).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*mjUgWNRmCAM0ZzgAaV6TxQ.jpeg" /><figcaption><a href="http://www.cultofmac.com/137669/apples-policies-on-theft-allow-a-thief-to-get-a-free-replacement-for-your-stolen-iphone/">http://www.cultofmac.com/137669/apples-policies-on-theft-allow-a-thief-to-get-a-free-replacement-for-your-stolen-iphone/</a></figcaption></figure><p>The average iPhone thief doesn’t care about your data, he just wants to wipe the phone so he can resell it. This kind of crime is especially prevalent in countries like <a href="http://money.cnn.com/2016/09/14/technology/argentina-iphone-black-market/">Argentina</a>, where there’s a large black market for Apple products. You might be thinking that the thief still needs to disable Find My iPhone to release Apple’s <a href="https://support.apple.com/en-us/HT201365">Activation Lock</a>. That’s true, but if the phone itself is already unlocked, all he needs is your iCloud password.</p><p>Do you get your email on your phone? Is it the same email address that’s tied to your iCloud account? Well, guess where iCloud password reset emails used to go? Before a recent update to iOS, it was possible to reset someone’s iCloud password directly from their unlocked phone, simply by virtue having access to their email account. Even if you use Apple’s <a href="https://support.apple.com/en-us/HT204915">two-factor authentication</a> (which you absolutely should), that works over SMS or push notifications, which also go to your phone.</p><p>Previous, there was nothing blocking a thief from stealing your phone while it was in use (and unlocked), resetting your iCloud password via your email account, disabling Find My iPhone, and finally wiping it to be resold. Thankfully, Apple appears to have quietly fixed this loophole by making it more difficult to reset an iCloud password. If you attempt it from your phone (even via Safari), it will ask you for your unlock PIN.</p><p>I used to recommend taking an additional precaution to mitigate this risk, but it’s not really necessary anymore (although it can’t hurt). If you follow these steps, the iCloud account settings will be completely unavailable until you disable “Restrictions” with an extra PIN that you’ll set below. Go to <em>Settings &gt; General &gt; Restrictions &gt; Enable Restrictions &gt; [create a PIN, enter it twice] &gt; Accounts &gt; Don’t Allow Changes</em></p><p>Now that Apple has added the necessary security checks to the iCloud password reset process, my recommendations are simpler: enable two-factor authentication for iCloud, and choose a hard to guess, 6-digit (or longer) PIN on your iPhone. With Touch ID, you rarely have to type it anyway.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*QCApuQFuIyZkugI9sAPh-g.png" /></figure><p><strong>Kudos to Apple for making this improvement. I believe it will help keep people safer by discouraging iPhone muggings.</strong></p><p>Now, if you’re a bit more paranoid and want to <strong>really</strong> limit what someone can access if they snatch your phone while you’re in the middle of using it, there is one more thing you can do.</p><p>An <a href="https://twitter.com/radekk">engineer</a> on my team at <a href="https://auth0.com/">Auth0</a> told me about <a href="https://support.apple.com/en-us/HT202612">Guided Access</a>, an iOS feature that lets you temporarily restrict the phone to a single app, and can even limit the actions available to the user within an app. With Guided Access configured (<em>Settings &gt; General &gt; Accessibility &gt; Guided Access</em>), you can press the home button three times to enable it at any time, within any app. Once it’s on, you’ll need the Guided Access PIN or Touch ID to exit the app. It’s that easy.</p><p>Imagine you’re reading the news on your iPhone on the subway. You can quickly enable Guided Access, and lock it down to that one app only. Then even if someone grabs your unlocked phone, they’ll be stuck in the news app forever! (No one wants to read the news for too long nowadays.) Sure, the thief can always power it off, but then the phone will be really locked and essentially useless to them, even for reselling.</p><p>Guided Access is intended for situations like when parents let their kids play with their iPhones (or iPads), but it’s actually quite powerful. You could even use it if you think Scotland Yard might be after you…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2cc1254d1e1c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/philosophically-secure/could-your-iphone-get-stolen-while-its-unlocked-2cc1254d1e1c">Could your iPhone get stolen while it’s unlocked?</a> was originally published in <a href="https://medium.com/philosophically-secure">Philosophically Secure</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud Security Monitoring at Auth0]]></title>
            <link>https://medium.com/@eugenekogan/cloud-security-monitoring-at-auth0-ff5e87ad1141?source=rss-5920b92821c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff5e87ad1141</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[logging]]></category>
            <dc:creator><![CDATA[Eugene Kogan]]></dc:creator>
            <pubDate>Tue, 25 Oct 2016 15:27:52 GMT</pubDate>
            <atom:updated>2017-01-18T18:04:43.377Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This blog post is the first in a series that we plan on publishing, in an attempt to pass along some of our experience implementing security at a young, growing company.</em></p><p>Do tech startups care about information security? The cynic in me wants to say that most of them don’t, but I don’t think that’s really true. That would be equivalent to not caring about protecting your customers, your employees, or even the very existence of your business. It’s more accurate to say that most startups <strong>do</strong> care about security, they just can’t always afford to dedicate the necessary resources to do it well.</p><blockquote>You care about protecting your customers, employees, and the company itself, right?</blockquote><p>Auth0 is a bit different than most startups. We build a product that’s used by our customers to secure their own applications, so security is something we’ve thought about since day one.</p><p>It’s difficult to say what part of security a company should care about first, and it’s not realistic to try doing it all at once. Some parts are definitely less exciting than others, but still super important (e.g., policies and procedures). Other parts are really fun, but require a large investment to achieve meaningful results, so it doesn’t make sense to tackle them until your company is a bit further along. For example, a startup probably doesn’t want to spend time applying machine learning to malware detection when they still haven’t figured out how to properly patch their production Ubuntu hosts. (Yes, even if machine learning is related to the product you’re building, you can’t ignore the basics.)</p><blockquote>Don’t ignore security basics in favor of the cool parts!</blockquote><p>Since we’re all engineers at heart, I’ll skip the important-but-not-cool stuff like security policies. You’ll have to do those anyway, but they don’t make for particularly interesting blog posts. The first topic I’d like to cover is how Auth0 does cloud security monitoring.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*IYYf1e76Ms04TTYLb_SQ2Q.png" /><figcaption>The OODA loop is very applicable to security monitoring</figcaption></figure><p>Cloud security monitoring is a critical area of focus for the team at Auth0. Now that most organizations have realized that it’s impossible to prevent all intrusions and breaches (sorry if you’re just hearing this bad news now), improving detection capabilities is an excellent coping mechanism. If this sounds expensive, don’t worry, it isn’t. I’ll describe how we’ve managed to implement a robust security monitoring and detection capability, mostly using tools that we already had or could obtain for free.</p><blockquote>Assume breach, plan accordingly. Harsh but good advice.</blockquote><p>So what is cloud security monitoring anyway? It depends who you ask. I’ll loosely define it as monitoring an organization’s cloud computing environment, collecting the necessary data to detect potentially malicious activity. You also need the right data to determine if a security incident has actually occurred, ideally with a lot of detail about how it happened. Some examples of monitoring include collecting authentication logs from servers, CloudTrail logs from AWS, and even audit logs from GitHub.</p><p>Once you have a system in place to do some simple monitoring, it becomes easier to add more data sources, which gives you a richer view of your environment and allows for more interesting event correlation.</p><blockquote>Pro tip: make sure your system times are in sync and set to UTC if possible</blockquote><p>Can you collect too much data? Yes, you certainly don’t want to collect garbage just for the sake of it. But more often the problem is that the wrong data is being collected. It pays to think about all the different systems and applications your company uses, document what kind of data they expose that you could collect, and then how you might use them for security monitoring.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*d8JrpQCZwU5bJyuc3xrAwQ.jpeg" /><figcaption>We do not actually recommend this approach, but hey, you are free to try it</figcaption></figure><p>I think we’ve covered enough of the “why” for cloud security monitoring; let’s get into the “what” and “how” details. Assuming you’re starting from scratch, you’ll have to decide on a platform to aggregate and process the data you plan to collect. There are several good options in this space, both commercial and open source.</p><blockquote>Choosing a security monitoring platform is fun!</blockquote><p>Do you want a powerful, versatile product that you’ll most likely have to host yourself? Then Splunk is the perfect choice, with great performance and features, but you’ll certainly pay $$ for it. Most startups and smaller companies will probably be looking to spend less. There are good open source solutions, such as ELK or Graylog, that you can download and use for free. The downsides are that you’ll have to host them yourself (ops overhead), they can be tricky to set up, and you may have to spend more time on customization to get these tools working the way you need. Luckily for us, there are several companies offering cloud-hosted log aggregation solutions nowadays. Loggly, Logentries, Papertrail, and Sumo Logic are just a few examples.</p><p>The security team at Auth0 decided to go with Sumo Logic, because it’s in the cloud, reasonably priced for the volume of data we collect, and is functionally very similar to Splunk. Getting Sumo Logic up and running was as easy as signing up for an account, and pumping data into it from other cloud services like AWS was super easy. Collecting system logs from your Linux servers requires installing an agent, of course, but there are scripts to do this for most of the popular system management tools (Puppet, Chef, Ansible, etc.) available on GitHub.</p><p>Signing up for Sumo Logic was the easy part, but it’s like a blank slate. Now we need to get some data in there. This is probably a good time to figure out what systems need monitoring, what kind of data they make available, and how it’s exposed. Obviously this depends on what applications your organization is using. My suggestion is to prioritize your data sources and start with the most important one first, which is probably your cloud infrastructure.</p><p>For us, that’s AWS. (Shocking, right?) AWS has a ton of <a href="https://aws.amazon.com/whitepapers/aws-security-best-practices/">documentation</a> on its numerous security and logging features, and I recommend reading some of these <a href="https://aws.amazon.com/whitepapers/">white papers</a>. But the first thing you should do is turn on CloudTrail in <strong>every</strong> <strong>region</strong> and ship it into your logging system. If you use Sumo Logic, it comes with some super useful dashboards and saved searches specifically for AWS CloudTrail Logs. You can customize the visualizations, and even used the saved searches to create your own automated alerts. Using this method, you could literally go from nothing to having security alerts based on AWS activity in a day or two.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YtiiRR5X4fNKdlvn9UENZQ.png" /><figcaption>AWS CloudTrail dashboard for Sumo Logic</figcaption></figure><p>In fact, Sumo Logic’s library of pre-built dashboards and searches is pretty awesome. They provide a great foundation for developing your own custom dashboards and automated alerts, and if you read the underlying search queries, it’s a great way to learn the Sumo Logic syntax. Why reinvent the wheel when you don’t have to?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-PADGzBhAzaN9n-n3f4Z5g.png" /><figcaption>A sample of the apps Sumo Logic provides</figcaption></figure><p>Here’s a list of some log sources we strongly recommend collecting, assuming they are relevant to your environment:</p><ul><li><a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-getting-started.html">AWS CloudTrail</a> logs for every region</li><li>Linux server logs (/var/log files, etc.)</li><li><a href="https://support.google.com/a/answer/4589321?hl=en">Google Apps</a> (G Suite) admin and login activity logs</li><li><a href="https://help.github.com/articles/reviewing-the-audit-log-for-your-organization/">GitHub</a> audit logs</li><li>Jenkins or other CI system logs</li><li>Sensitive database usage logs</li><li>Auth0 or other identity service logs (check out the <a href="https://auth0.com/blog/visualize-your-auth0-logs-using-sumo-logic/">nifty</a> Auth0 app for Sumo Logic, available <a href="https://help.sumologic.com/Apps/Preview_Apps/Auth0_App">here</a>!)</li></ul><p>If you’re interested in getting more value from your Linux server logs, have a look at <a href="https://github.com/a2o/snoopy">Snoopy</a>. It’s a library that lets you turn on full command line logging with a lot less hassle than auditd (which is still worth messing with later, when you have time). Snoopy is easy to install, you can customize what it logs and the output format, and the end result is getting sweet log entries like this:</p><pre>Oct 10 03:43:05 dwh-01-eu-central-1 snoopy[422]: [uid:1031 sid:3017 tty:(none) cwd:/data/eventhub/analytics-eventhub-receive-kinesis filename:/data/eventhub/analytics-eventhub-receive-kinesis/bin/python]: python src/receive.py us-west-1 auth0-events shardId-000000000000 /home/analytics/eventhub/events/</pre><p>We collect data from all these systems and more. Still, this is just a place to start, and of course it’s not comprehensive or applicable to every organization.</p><p>In our <a href="https://auth0.engineering/cloud-security-monitoring-at-auth0-part-ii-b106354a0e5d">next post</a>, we’ll go into more details about setting up automated alerting, including some custom tools that the Auth0 team created to help us manage and respond to security alerts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff5e87ad1141" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>