<?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 Chris Steipp on Medium]]></title>
        <description><![CDATA[Stories by Chris Steipp on Medium]]></description>
        <link>https://medium.com/@csteipp?source=rss-3d6f296f1455------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*I6NmvFKYLPNzK7yb131-Mw.jpeg</url>
            <title>Stories by Chris Steipp on Medium</title>
            <link>https://medium.com/@csteipp?source=rss-3d6f296f1455------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 14:04:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@csteipp/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[Application Security in a DevOps Environment]]></title>
            <link>https://eng.lyft.com/application-security-in-a-devops-environment-53092f8a6048?source=rss-3d6f296f1455------2</link>
            <guid isPermaLink="false">https://medium.com/p/53092f8a6048</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[infrastructure]]></category>
            <category><![CDATA[application-security]]></category>
            <dc:creator><![CDATA[Chris Steipp]]></dc:creator>
            <pubDate>Thu, 01 Feb 2018 16:01:02 GMT</pubDate>
            <atom:updated>2018-02-01T16:01:02.793Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*21Ag1cvgvxxuJHjK4JJ-nA.png" /></figure><p>It seems like every AppSec vendor pitch talks about how you can shift security “to the left” and they can help you transition to “DevSecOps”. When I hear these pitches, I’ve often thought to myself, “I don’t think that word means what you think it does.” While it’s great that security is embracing DevOps-style engineering (yay!), and it’s great that many vendors are thinking about how their tools fit in these environments (yay!), I don’t see a lot of the discussion about what DevSecOps looks like <em>when it’s done well</em>. When I joined Lyft’s Security Team, surviving (let alone thriving) in their DevOps environment was a challenge, but working in this environment taught me a number of things about doing AppSec in a DevOps environment.</p><h3>Are you my target audience?</h3><p>There is plenty of advice for making your AppSec team function better in a DevOps environment, but this article is specifically about the characteristics of Lyft’s AppSec program that I feel support our DevSecOps efforts well. If you work on an AppSec team, maybe our experiences can help you think through how you work with you DevOps engineering teams. If you’re a vendor and your product doesn’t support these, then let’s delay talking until they do.</p><h3>DevAppSecOps, a word which here means…</h3><p>A vendor recently described Lyft’s engineering process as “extreme DevOps”. We have a lot of teams working on different products and features. Each team owns their services and are responsible for meeting SLA’s for availability and response time. Teams have almost complete control over how their services are built and run, as long as they maintain their SLA. Most teams use this freedom to develop fast, and are often deploying new features several times a day. With this freedom, teams have the responsibility of securing their services, and ensuring security issues are fixed within an established timeframe.</p><p>Adding a traditional AppSec program to this would be labor intensive. When building the AppSec program at Lyft, we had to re-think how we engage teams, and develop tooling to automate integrating security throughout the development flow.</p><p>When looking at the projects in Lyft’s AppSec program that have been successful, a couple of themes stand out.</p><ul><li>Everything has to be measured</li><li>Security’s input needs to be timely and respect the developer’s time</li><li>We need continuous feedback loops between processes</li></ul><p>If you look at all of the activities that we’re doing, we don’t embody these themes in everything that we do, but we’ve had enough successful examples of each that I believe they’re worth sharing.</p><h3>Everything must be Measured</h3><p>Tools and processes need to be measurable. Not only do we need to collect the measurements, we need people watching those metrics. Some metrics can be watched by the AppSec team, but for many it’s far more effective when the the development teams monitor the metrics and are held responsible for maintaining a reasonable threshold.</p><p>At Lyft, each team maintains one or more dashboards for each of the services they run. This shows metrics such as the service’s error rates, response time, and the percentage of time the service has been within it’s SLA for services that rely on it. The Security Team is currently rolling out metrics to our service dashboards tracking out of date patches, with an alarm to page the team when security patches are left unapplied. Giving the teams visibility into the risks lets them prioritize and schedule their patching, instead of relying on the security team to monitor patch levels.</p><p>There are many vendors who can show patch levels across your fleet. Most of those tools do a much better job analyzing packages on the system and figuring out what patches are missing instead of our naive scripting. They produce prettier graphs. The problem with most systems is they display this data to the security team, and rarely support getting that information to the people who have the power (and responsibility) for patching those instances in a way that integrates with their workflow.</p><p>If you’re a security vendor, please, support native exporting of your tools data to the tools that our engineers are in every day — wavefront, grafana, elasticsearch. Or let us write all the data into S3 so we can ingest it into our standard audit pipeline. We also need to scope reports on that data to the appropriate teams, so please, support slicing data on AWS tags, ASG names, etc.</p><h3>Input must be Timely (and respect the engineer’s time)</h3><p>When giving security input to an engineering team, if the input is not given at exactly the right time there’s a good chance it will just be filtered out as noise by the members on that team. With the speed of development and the velocity of change in our environment, engineers have to digest a firehose of information. Whether it’s all-engineering emails about changes to a service template, changes to the process for deploy a particular job, or best practices that teams have figured out and want other teams to adopt, engineers are bombarded by (good and helpful) information from other teams every day. To be productive as a developer, you have to filter out a lot noise. The security team telling you it’s cybersecurity awareness month, so please don’t xss or fall for phishing, becomes noise. Engineers need to be reminded about cross-site scripting when they are writing new frontend code, and about phishing when they are reading emails from questionable sources.</p><p>One place where I saw a significant gap in getting timely information to our developers was during the pull request (PR) process. We have static analysis tools running against PR’s in github that must all pass before the PR can be merged. But often those tests take 10–15 minutes to run. By the time our static analysis tools fail the build, the developer is often off working on another task, or working through code review with a peer. To make things worse, the UX for discovering why a Jenkins test failed isn’t intuitive for new engineers. This resulted in engineers asking the security team on Slack why a test was failing (interrupting flow for both the developer and the security team member who needed to answer their question), and a mean time to fix of over an hour. Worse, if the engineer didn’t understand the results, they sometimes would force merge the PR under the assumption that it was a false positive or they could fix it later.</p><p>Seeing this, we built a system (LASER) at Lyft to quickly give non-blocking security feedback on PR’s. We try to give feedback within 30 seconds of the developer opening a PR or pushing a commit. This way the feedback is present before their peer looks at the PR for code review, and the developer is notified of the comment before they transition to another task. The comment from LASER gives a summary of the issue, with links to more information in case they aren’t familiar with the security issue that was found. This resulted in the average fix time dropping to 7 minutes.</p><p>In addition to having tools that are fast, the results need to be very accurate so the developer’s time is respected. Every false positive wastes an engineer’s time (even if it’s only 7 minutes). Yes, this means higher false-negative rates, but if we’re stopping the most common issues with no marginal work for the security team, then the security team is freed to work on better surfacing those issues in a fast and accurate way in our tooling.</p><h3>Outputs from one process should be useful input to refine other processes</h3><p>The best tools are ones that both address an existing set of issues, and allow us to improve our entire AppSec process at the same time. What does this look like at Lyft? The security team tries to interact with the owner of a service at 13 points in their development process. For that to be possible with a relatively small AppSec team, those processes are highly automated and manual work is prioritized based on risk. When implementing the automation, we specifically looks for ways that the outputs can be used as inputs into other automated processes.</p><ul><li>We use a self-assessment questionnaire that lets teams report what user data they are storing and where. This provides automated feedback to the developer based on their answers, to prevent those mistakes as they implement their service. Certain characteristics automatically flag the service for deeper review by the Security Team. We also use the results to update our data map and inform how we prioritize that service for review and external security assessment.</li><li>When vulnerabilities are found, we look for ways to implement high signal rules in our scanning tools to detect these prior to deployment in the future. Which brings up another issue for vendors — if your scanning tool doesn’t allow us to modify and write new rules, then your tool is significantly less useful.</li></ul><p>Most AppSec tooling and processes provide data that is useful input into other processes, but thinking through how that will be done in advance has been useful for ensuring that when we make investments in one aspect of our program, we’re improving multiple aspects of our program simultaneously.</p><h3>Summary</h3><p>This would be a nice, popular medium post if I promised that by doing these 3 things, you’ll be super successful and someone will probably give you a unicorn. The reality is that AppSec is a lot of hard work, and there’s a reasonable chance I’m wrong about a lot of things. Please leave feedback in the comments, and I hope we can all learn more together!</p><blockquote>Interested in working in an environment like this? Lyft is hiring! <a href="https://jobs.lever.co/lyft?lever-via=5MrYJGZhzq">Apply through our application system</a>, or drop me a note at <a href="/service/mailto:csteipp@lyft.com">csteipp@lyft.com</a>.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53092f8a6048" width="1" height="1" alt=""><hr><p><a href="https://eng.lyft.com/application-security-in-a-devops-environment-53092f8a6048">Application Security in a DevOps Environment</a> was originally published in <a href="https://eng.lyft.com/">Lyft Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blessing your SSH at Lyft]]></title>
            <link>https://eng.lyft.com/blessing-your-ssh-at-lyft-a1b38f81629d?source=rss-3d6f296f1455------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1b38f81629d</guid>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[ssh]]></category>
            <category><![CDATA[infrastructure]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Chris Steipp]]></dc:creator>
            <pubDate>Tue, 11 Apr 2017 18:01:10 GMT</pubDate>
            <atom:updated>2017-04-11T18:01:10.091Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*elTurUlIllB0WPSLKNnbSw.png" /><figcaption>St. Peter holding a key and a printed book, Public Domain, <a href="https://commons.wikimedia.org/w/index.php?curid=1043265">https://commons.wikimedia.org/w/index.php?curid=1043265</a></figcaption></figure><p>Like many organizations, Lyft continually looks for ways to address critical risks identified in our organization. Last summer, Lyft’s Security Team identified a lack of two-factor authentication on our ssh logins as an area of concern. Today, we’re sharing our experience implementing two-factor for SSH at Lyft, and announcing our <a href="https://github.com/lyft/python-blessclient">open-source client</a> for interacting with Netflix’s <a href="https://github.com/Netflix/bless">BLESS</a>.</p><h3>Background</h3><p>Over the past few years, Lyft has developed a system for quickly getting newly hired engineers access into our infrastructure. Engineers are often able to push changes to Lyft services on their first day of employment. This involves provisioning or linking accounts in AWS, Github, pagerduty, etc on their first day. For SSH, this has previously required provisioning a private SSH key for the user and pushing out the corresponding public key to all servers in our fleet.</p><p>Lyft’s has a strong DevOps philosophy. We practice this by giving teams full control, and responsibility, to manage any service they write. While everyone in the organization agrees that protecting our data and infrastructure is extremely important, teams have to balance security with operational considerations. They need to quickly bring up and manage new services, debug those services in production, and respond efficiently during outages. This meant that any 2FA control that the Security Team put in place needed to be un-oppressive and work without failure, potentially while other systems in our environment were down. It also had to “Just Work” with the development and maintenance work of a fairly small security team (we have 5 members currently, and are hiring of course).</p><p>The team considered a few solutions:</p><ul><li>Yubikeys are often used for two-factor authentication. Yubikeys have many benefits, but are costly and require a compatible authentication service to verify codes. This means that we would either need to rely on an external company (Yubico’s authentication service) for authentication, or run an authentication service internally with near 100% uptime. Using Yubikeys for SSH would also require installing a PAM module on every server, maintained by the security team.</li><li>The team also considered DUO, since the login flow is a great two-factor experience. But this again put us in the position of needing to install a PAM module on every server, and needing to have every server contact an external service.</li></ul><p>Both of these solutions had some undesirable operational tradeoffs. We also had a use case where some engineers need to SSH into every server in an ASG, or our entire fleet, in response to an emergency. This is often thousands of servers at a time. We needed a solution where this was feasible, and performance was no worse than SSH-ing with a fixed private key.</p><h3>Netflix’s BLESS</h3><p>When looking for other options, the team came across Netflix’s “<a href="https://github.com/Netflix/bless">Bastion’s Lambda Ephemeral SSH Service</a>” (BLESS), which had recently been open sourced. BLESS uses SSH certificates, added to OpenSSH in 5.4. SSH certificates allow a certificate authority to sign a user’s public key, along with a list of constraints; the user presents this certificate to the server during authentication. The server only needs to trust the CA, and does not need previous knowledge of the user’s public key. BLESS is designed to run as an <a href="https://aws.amazon.com/lambda/">AWS Lambda</a>, Amazon’s infrastructure to run code without servers, and uses Amazon’s <a href="https://aws.amazon.com/kms/">Key Management Service</a> (KMS) to encrypt all secrets.</p><p>This approach appealed to the team because:</p><ul><li>It was a simple configuration change to servers, instead of installing new code</li><li>BLESS leveraged existing AWS infrastructure (KMS and Lambda), which minimized responsibility for the Security Team</li><li>The cryptographic work to authenticate a user was the same for the user’s laptop, ensuring that performance impact would be negligible</li><li>Certificates can expire quickly, so compromised SSH keys are useless after a short time</li></ul><p>Additionally, having our servers trust a CA instead of individual user keys improved our key-management process by allowing users to manage their own keys. Users could regenerate their key as often as they liked, with no coordination from Security or other infrastructure teams.</p><h3>BLESS on the Endpoints</h3><p>One drawback of Netflix’s BLESS is that Netflix relies on users first SSH-ing to a bastion server where the user is strongly authenticated. Lyft’s goal was to use SSH certificates for all SSH connections including the connection to our bastion servers, so we explored moving the SSH certificate to our engineer’s laptops and using strong, cryptographic assertions to prove to the BLESS Lambda that the user was previously authenticated with an approved second authentication factor. To this end, Lyft developed <a href="https://github.com/lyft/python-blessclient">blessclient</a>, a simple python client that would run on an engineer’s laptop, allowing the user to authenticate to AWS, prove their identity to the BLESS Lambda, receive an SSH certificate, and setup the user’s normal OpenSSH client to use the certificate for authentication.</p><h3>kmsauth</h3><p>Since the user would be telling the Lambda that they had been appropriately authenticated, we knew we needed a cryptographic token to prove the user’s identity and make an assertion about how the user was authenticated. Lyft already uses a similar process to prove a user or service’s identity to our secret management system, <a href="https://eng.lyft.com/announcing-confidant-an-open-source-secret-management-service-from-lyft-1e256fe628a3">Confidant</a>. Confidant uses Amazon’s KMS and IAM to generate and validate <a href="https://github.com/lyft/python-kmsauth">kmsauth tokens</a>, which are short tokens encrypted by KMS where the encryption context is set to include the user’s identity. The KMS key has policy set on it to only allow an IAM user to encrypt using the key if their username is in the encryption context’s “from” field, and if they have authenticated to AWS using multi-factor authentication.</p><pre>{<br>    &quot;Action&quot;: &quot;kms:Encrypt&quot;,<br>    &quot;Effect&quot;: &quot;Allow&quot;,<br>    &quot;Resource&quot;: [<br>        &quot;arn:aws:kms:us-east-1:123456789011:key/12345678-abab-cdcd-efef-123456789011&quot;,<br>    ],<br>    &quot;Condition&quot;: {<br>        &quot;StringEquals&quot;: {<br>            &quot;kms:EncryptionContext:to&quot;: [<br>                &quot;bless-production&quot;<br>            ],<br>            &quot;kms:EncryptionContext:user_type&quot;: &quot;user&quot;,<br>            &quot;kms:EncryptionContext:from&quot;: &quot;${aws:username}&quot;<br>        },<br>        &quot;Bool&quot;: {<br>            &quot;aws:MultiFactorAuthPresent&quot;: &quot;true&quot;<br>        }<br>    }<br>}</pre><p>If KMS is able to decrypt the token using the appropriate key, then the validating service knows that only the correct user could have generated the token, and only if they used MFA to authenticate to AWS recently.</p><h3>Using Blessclient</h3><p>When establishing an SSH connection, blessclient will prompt the user for an MFA code and then use KMS to generate the kmsauth token. Blessclient assumes a role in a separate AWS account (we use a separate account to prevent admins in our main account from compromising our CA) and invokes the BLESS Lambda, passing the kmsauth token to prove the user’s identity along with the public key the user wants signed. The Lambda returns a certificate. Blessclient saves alongside the user’s private key and loads the identity into the user’s ssh agent. The user’s SSH client can then establish connections until the certificate expires.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AG7d9U7rKv1Nu_j8." /></figure><p>In most cases this all happens in less than a second, however the latency of three calls to AWS from the user’s laptop is perceptible. We mitigate this by caching enough information that blessclient makes about 1 call to AWS every 30 minutes, and only prompts for the MFA code once every 18 hours. These parameters are configurable in blessclient, so users can adjust for their risk.</p><p>To install blessclient onto our users’ laptops, we again wanted to reuse existing infrastructure as much as possible. Users clone a git repo, then run a set of bash scripts with make. After seven days, blessclient will pull the git repo and reinstall the client, so users are always using an updated version of the client.</p><h3>Server Authentication</h3><p>Building on our experience with BLESS and blessclient, we thought it would be a good time to address server authentication at Lyft. Typically, when users first SSH to a new server, the SSH client displays the server’s public key fingerprint to the user, then asks the user to accept it. If an attacker later tries to impersonate the server, the public key will not match the known fingerprint and the client will warn the user that something may be wrong.</p><p>In an AWS environment where we use autoscale groups that provision and terminate hundreds of servers each day, this can lead to security warning fatigue for users. Even more likely, users will simply tell their SSH client to accept all server fingerprints without question. To improve this, we implemented a Lambda and server-side agent to issue a certificate to each server when it starts. We then configure our users’ SSH clients to trust this CA on their laptops. This eliminates nearly all prompts about the server’s key fingerprint for our users, leaving only those where a legitimate issue may exist.</p><h3># soblessed</h3><p>Lyft has been using blessclient in production since September 2016. <a href="https://www.youtube.com/watch?v=PMlT1raRMA0">See the talk Lyft engineers gave at BSides SF for more details</a>. <a href="https://github.com/lyft/python-blessclient">Blessclient is open source</a> and ready for other organizations to use!</p><blockquote>Interested in open source work and having a big impact? Lyft is hiring! <a href="https://jobs.lever.co/lyft?lever-via=5MrYJGZhzq">Apply through our application system</a>, or drop me a note at <a href="/service/mailto:csteipp@lyft.com">csteipp@lyft.com</a>.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1b38f81629d" width="1" height="1" alt=""><hr><p><a href="https://eng.lyft.com/blessing-your-ssh-at-lyft-a1b38f81629d">Blessing your SSH at Lyft</a> was originally published in <a href="https://eng.lyft.com/">Lyft Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>