<?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 Josias Teo on Medium]]></title>
        <description><![CDATA[Stories by Josias Teo on Medium]]></description>
        <link>https://medium.com/@josias.teo?source=rss-8ed960006942------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*N9ctRB4ee4Lg7exI.jpg</url>
            <title>Stories by Josias Teo on Medium</title>
            <link>https://medium.com/@josias.teo?source=rss-8ed960006942------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 03:02:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@josias.teo/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[Critical controls for a DevSecOps practice — Part 2]]></title>
            <link>https://medium.com/csg-govtech/critical-controls-for-a-devsecops-practice-part-2-e414cc472852?source=rss-8ed960006942------2</link>
            <guid isPermaLink="false">https://medium.com/p/e414cc472852</guid>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[govtech]]></category>
            <category><![CDATA[csg]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Josias Teo]]></dc:creator>
            <pubDate>Wed, 20 May 2020 04:31:00 GMT</pubDate>
            <atom:updated>2020-05-20T04:31:00.886Z</atom:updated>
            <content:encoded><![CDATA[<h3>Critical controls for a DevSecOps practice — Part 2</h3><p><em>This is the second and final post of a two-part series on DevSecOps practice.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MM3Q3YfH4wEKBhyH-fRu6w.jpeg" /><figcaption><em>On the fast lane. @Credits: Photo by toine G on Unsplash</em></figcaption></figure><p>Before we launch into this week’s article, let’s quickly recap the three must-have critical controls in a DevSecOps practice that we covered in the first <a href="https://medium.com/csg-govtech/critical-controls-for-a-devsecops-practice-part-1-8a2ff2b1697e">part</a>.</p><ol><li><strong>Build a security-conscious culture</strong>: Human error and ignorance can bring down your system and subsequently, your business in one fell swoop. To mitigate this risk, inculcate a sense for cybersecurity among your people by using relevant and relatable content. Establish guard rails that make it easy for people when they follow the right processes, and find it difficult (but not <em>impossible</em>) to carry on when they attempt to deviate. Appoint a Security Champion to bridge the communication gap between DevOps folks and the cybersecurity team.</li><li><strong>Visibility and sense-making</strong>: Knowing exactly which direction you are headed can make all the difference between ending up in a ditch and crossing the finish line. Keeping an inventory of everything, like container images, secrets and software dependencies, is the first step to managing your assets. Develop metrics to know the state of security throughout your development lifecycle so that you can make the necessary improvements.</li><li><strong>Key management</strong>: Unmanaged keys can lead to data breaches or even a complete wipeout of all your assets. Secure your keys in a vault that allows you to control who can use the keys, and rotate your keys frequently to reduce any potential damage caused by stolen keys.</li></ol><p>Now, let’s move on to the remaining four must-have critical controls for a DevSecOps practice.</p><h3>4. Software supply chain management</h3><p>Risks: When building your application, how do you know if you are using quality components or cheap knock-offs? You need a consistent way to manage and assess the quality of your suppliers and the components they supply. Knock-offs can introduce serious vulnerabilities to your system, which can, in turn, become a field day for attackers.</p><p>Controls:</p><ul><li><strong>Create an inventory of the software dependencies in your application</strong>. Use inventories of software dependencies in your application to identify what needs to be patched and to hunt for threats that lay dormant. A popular term in the market to describe this is software composition analysis (SCA), where tools are used to analyse and identify the dependencies that are used in your application, and how they are used.</li><li><strong>Identify vulnerabilities in dependencies</strong>. Check your dependencies for vulnerabilities against publicly available vulnerability repositories, like cvedetails.com, cve.mitre.org, and nvd.nist.gov. Many software supply chain management platforms can cross-check against such databases for you, and flag vulnerabilities very early in the development lifecycle. Some can even prevent a developer from using a vulnerable software library in his code right within the Integrated Development Environment (IDE) before he checks in the code.</li><li><strong>Establish a “software dependency firewall”</strong>. Permit the use of only whitelisted dependencies. Considerations for a whitelisting policy include the severity score of identified vulnerabilities, whether the application uses the vulnerable portions of the dependency, and the risk profile of the application in which the dependency will be used. For example, CVE-2018–11040 is a Medium-rated vulnerability in the Spring Framework that allows cross-domain requests through a particular method name. However, if your application is not using the vulnerable method, you could still whitelist the dependency on the basis that your application would not inherit that vulnerability.</li><li><strong>Use distroless Docker images</strong>. This minimises available attack surfaces. Standard Docker images may have lots of binaries or dependencies that are irrelevant to your application, but if these binaries are vulnerable or can be potentially harmful, they may become the weakest link in your system. Distroless images are a great way to eliminate unnecessary binaries or dependencies and can result in a more efficient and secure container image with reduced attack surface.</li></ul><h3>5. Security acceptance tests</h3><p>Risks: Without a consistent way to make sure that every component in a car works as intended, we would put our lives at risk every time we drive. There would be no assurance that the wheels on a car are going to stay on, or that the engine isn’t going to explode. Automobile manufacturers like BMW put their vehicles through a rigorous and detailed battery of tests because they recognise that performance, comfort and safety need to be consistently validated. Why should software development be any different?</p><p>Controls:</p><ul><li><strong>Assemble a full-stack automated testing suite for your application.</strong> This ensures that all necessary security controls are in place for every layer of the technology stack across your infrastructure and applications. For example, a typical application stack for containerised workloads would look like this: base operating system, Kubernetes platform, container operating system, and application logic. In each layer, there are specific security-related issues to test. Misconfigurations, application logic flaws and vulnerabilities should be flagged out as part of a pipeline validation of the stack’s security.</li><li><strong>Construct security test cases based on threat models</strong>. Threat modelling is a structured way to represent risk and impact to a particular function of the system. It lays out the risk consistently and concisely so that the right decisions can be made. After identifying the relevant security controls to implement as a result of threat modelling, develop security tests to validate the controls. One commonly used threat modelling tool is the <a href="https://owasp.org/www-project-threat-dragon/">OWASP Threat Dragon</a>.</li><li><strong>Augment your current application security testing strategy with Interactive Application Security Testing (IAST)</strong>. I have personally seen developers overwhelmed by the effort required to filter through scan reports from Static and Dynamic Application Security Testing tools (SAST and DAST). At the time, the number of false positives was so large that we started to wonder whether such tools had become more of a hindrance than a help. Combined with the improper use of tools and the lack of know-how to fine-tune them, this led to delayed timelines and hasty risk acceptance of discovered vulnerabilities. It was apparent that such tools were losing their effectiveness in an environment of fast-paced development. In contrast, IAST can be more effectively used to augment your overall application security testing strategy because:</li><li><strong>It provides greater accuracy in identifying vulnerabilities</strong>. This leads to a reduced number of false positives, and is achieved by monitoring the behaviour of low-level application activity, such as Java bytecode. This results in a more deterministic method to discover vulnerabilities, hence resulting in higher accuracy.</li><li><strong>It provides higher-quality, actionable information, aiding in more timely remediation when required.</strong> Some IAST tools can even report the exact offending line of code and suggest remediation. Developers do not need to tediously look through the stack trace to identify the offending function or line of code, and can focus their efforts on actually fixing the vulnerability.</li><li><strong>It is easy to integrate with existing workflows</strong> <strong>without requiring advanced knowledge to fine-tune or configure</strong>. Since attack patterns can be more accurately identified with low-level activities, there is less need to customise rules to detect attacks. Without even writing specific security test cases to validate protection against vulnerabilities like SQL injections, IASTs can detect vulnerabilities when you run your regular functional test cases.</li><li><strong>IASTs are generally very lightweight and do not severely impact overall performance</strong>. They are designed to run alongside the application to detect and even block threats in real-time. This helps developers reap its benefits with ease, in an almost plug-and-play fashion.</li><li><strong>Conduct resilience tests</strong>. This aims to validate the resilience controls put in place, like failover mechanisms, to ensure that the system is operationally ready. Site reliability engineering (SRE) is a discipline that addresses the ability to maintain a system in a reliable state all the time, and describes the collection of controls and architecture decisions that make it happen. Understandably, finding someone with extensive knowledge from such a discipline can be hard to come by, but we can still take certain steps to achieve a degree of system resilience. For example, developers can actively test the functionality of failover mechanisms especially for critical components like the database. Then, make sure that your applications know how to respond when such failovers and swing backs happen. Another control to effectively monitor the health of the system is to periodically conduct end-to-end tests, say every five minutes or so, that simulate real user interaction with the system, like following through the usual steps to update the test user’s particulars in the system, which in turn tests everything from the front end to the backend database and even caches. Proactively get on top of things, instead of reactively waiting for your users to complain about a system outage.</li></ul><h3>6. Release management</h3><p>Risks: Especially in the context of Agile development, multiple releases can be made over a short period. If there is no way to track all these releases, you may end up unknowingly deploying the wrong (and perhaps even vulnerable) versions of your application.</p><p>Controls:</p><ul><li><strong>Establish a structured versioning nomenclature, and apply policies on upgrading or downgrading versions</strong>. For example, only allow the secured and tested versions of your applications to be deployed, by maintaining information about a release with all its dependencies. Cross-reference every deployment with a list of allowed release versions, to avoid deploying outdated or vulnerable versions of your application.</li><li><strong>Mitigate accidental or malicious tampering of codes and binaries that flow throughout the pipeline, with code and binary signing</strong>. The integrity of codes and binaries will be assured because any tampering attempts would cause the signature validation to fail. Validate signatures at every phase of the pipeline to achieve the assurance of integrity.</li></ul><h3>7. Runtime protection</h3><p>For this control category, I would like to make a special mention on runtime protection for containerised workloads. While many have already started using containerised workloads and microservices, adoption of the relevant runtime protection is only just catching up. It has great potential to thwart critical vulnerabilities in containerised workloads.</p><p>Risks:</p><p>Endpoint protection (EPP) and endpoint detection and response (EDR) solutions protect the operating system space because it has visibility over system activities. But with the rise of modern application architecture and platforms like microservices-based applications running as containers orchestrated by Kubernetes, most EPP and EDR solutions today are not capable of protecting individual containers and their orchestrator just as they would an operating system, as they do not have visibility of activities within containers. Without such visibility, attacks that come through containers could potentially remain undetected and even spread to the underlying operating system despite having EPP or EDR running. Attackers could also choose to steer away from the watchful eyes of EPP and EDR solutions by choosing to operate mostly in the container platform space.</p><p>An attacker could potentially cause much damage in the container platform space without having to directly attack the underlying operating system, in the likely scenario that a majority of the business logic lives in containers. In that space, the attacker could pivot from one container to another without triggering the EPP or EDR. They can then gain control of other containers to subvert business rules for fraudulent activity. For example, they can bypass an authentication flow to impersonate another user, thus gaining access to that user’s account to conduct fraudulent transactions.</p><p>Controls:</p><ul><li><strong>Consider container security solutions with behaviour profiling capabilities</strong>. Effective solutions profile and block ‘low-level’ activities such as syscalls made to the underlying Linux operating system, which are necessarily triggered if an attacker tries to create processes which require increased privileges or access to the OS kernel. Hence, any malicious actions performed in the container would result in a deviation from the normal set of syscalls, which will stick out like a sore thumb. Monitoring the integrity of files in the container’s filesystem also acts as an additional tripwire to detect potentially malicious modifications to critical system files.</li><li><strong>Behaviour profiling requires a time to form a baseline</strong> <strong>of ‘good behaviour’ in a controlled environment, before the container is run in a production environment.</strong> The more complex an application is, the longer the learning duration and also reduced effectiveness to block bad behaviour. To maximise the benefits of runtime protection aided by behaviour profiling, keep microservices, well, micro, to reduce learning periods and increase effective prevention. However, this requires significant discipline in architectural decisions at the early stages of DevSecOps.</li></ul><h3>Next steps</h3><p>You can achieve some quick wins right now by doing these few, simple things:</p><ul><li><strong>Build on existing controls</strong>. You might already have some of the controls in one form or another. You can start right now by improving existing controls, then progress to implement high-impact controls.</li><li><strong>Identify the weakest links in your development process</strong>. Assess which of the seven controls mentioned would give you the greatest value through a cost-benefit analysis, and start by addressing the weakest links.</li><li><strong>Start by building the foundations right.</strong> Visibility and sense-making are the foundational pieces for a successful DevSecOps, because every stage of the development lifecycle needs to close the feedback loop for decision making, enabled by the sense-making piece. Then, proceed to address potential downstream issues by securely managing the software supply chain. This will save you a lot of headaches at the onset and even further down the road.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e414cc472852" width="1" height="1" alt=""><hr><p><a href="https://medium.com/csg-govtech/critical-controls-for-a-devsecops-practice-part-2-e414cc472852">Critical controls for a DevSecOps practice — Part 2</a> was originally published in <a href="https://medium.com/csg-govtech">CSG @ GovTech Singapore</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Critical controls for a DevSecOps practice — Part 2]]></title>
            <link>https://medium.com/ndi-sg/critical-controls-for-a-devsecops-practice-part-2-34a99595241?source=rss-8ed960006942------2</link>
            <guid isPermaLink="false">https://medium.com/p/34a99595241</guid>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Josias Teo]]></dc:creator>
            <pubDate>Tue, 19 May 2020 05:11:00 GMT</pubDate>
            <atom:updated>2020-05-19T05:11:00.969Z</atom:updated>
            <content:encoded><![CDATA[<h3>Critical controls for a DevSecOps practice — Part 2</h3><p><em>This is the second and final post of a two-part series on DevSecOps practice.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MM3Q3YfH4wEKBhyH-fRu6w.jpeg" /><figcaption><em>On the fast lane. @Credits: Photo by toine G on Unsplash</em></figcaption></figure><p>Before we launch into this week’s article, let’s quickly recap the three must-have critical controls in a DevSecOps practice that we covered in the <a href="https://medium.com/ndi-sg/critical-controls-for-a-devsecops-practice-part-1-4cabceb768aa">first part</a>.</p><ol><li><strong>Build a security-conscious culture</strong>: Human error and ignorance can bring down your system and subsequently, your business in one fell swoop. To mitigate this risk, inculcate a sense for cybersecurity among your people by using relevant and relatable content. Establish guard rails that make it easy for people when they follow the right processes, and find it difficult (but not <em>impossible</em>) to carry on when they attempt to deviate. Appoint a Security Champion to bridge the communication gap between DevOps folks and the cybersecurity team.</li><li><strong>Visibility and sense-making</strong>: Knowing exactly which direction you are headed can make all the difference between ending up in a ditch and crossing the finish line. Keeping an inventory of everything, like container images, secrets and software dependencies, is the first step to managing your assets. Develop metrics to know the state of security throughout your development lifecycle so that you can make the necessary improvements.</li><li><strong>Key management</strong>: Unmanaged keys can lead to data breaches or even a complete wipeout of all your assets. Secure your keys in a vault that allows you to control who can use the keys, and rotate your keys frequently to reduce any potential damage caused by stolen keys.</li></ol><p>Now, let’s move on to the remaining four must-have critical controls for a DevSecOps practice.</p><h3>4. Software supply chain management</h3><p>Risks: When building your application, how do you know if you are using quality components or cheap knock-offs? You need a consistent way to manage and assess the quality of your suppliers and the components they supply. Knock-offs can introduce serious vulnerabilities to your system, which can, in turn, become a field day for attackers.</p><p>Controls:</p><ul><li><strong>Create an inventory of the software dependencies in your application</strong>. Use inventories of software dependencies in your application to identify what needs to be patched and to hunt for threats that lay dormant. A popular term in the market to describe this is software composition analysis (SCA), where tools are used to analyse and identify the dependencies that are used in your application, and how they are used.</li><li><strong>Identify vulnerabilities in dependencies</strong>. Check your dependencies for vulnerabilities against publicly available vulnerability repositories, like cvedetails.com, cve.mitre.org, and nvd.nist.gov. Many software supply chain management platforms can cross-check against such databases for you, and flag vulnerabilities very early in the development lifecycle. Some can even prevent a developer from using a vulnerable software library in his code right within the Integrated Development Environment (IDE) before he checks in the code.</li><li><strong>Establish a “software dependency firewall”</strong>. Permit the use of only whitelisted dependencies. Considerations for a whitelisting policy include the severity score of identified vulnerabilities, whether the application uses the vulnerable portions of the dependency, and the risk profile of the application in which the dependency will be used. For example, CVE-2018–11040 is a Medium-rated vulnerability in the Spring Framework that allows cross-domain requests through a particular method name. However, if your application is not using the vulnerable method, you could still whitelist the dependency on the basis that your application would not inherit that vulnerability.</li><li><strong>Use distroless Docker images</strong>. This minimises available attack surfaces. Standard Docker images may have lots of binaries or dependencies that are irrelevant to your application, but if these binaries are vulnerable or can be potentially harmful, they may become the weakest link in your system. Distroless images are a great way to eliminate unnecessary binaries or dependencies and can result in a more efficient and secure container image with reduced attack surface.</li></ul><h3>5. Security acceptance tests</h3><p>Risks: Without a consistent way to make sure that every component in a car works as intended, we would put our lives at risk every time we drive. There would be no assurance that the wheels on a car are going to stay on, or that the engine isn’t going to explode. Automobile manufacturers like BMW put their vehicles through a rigorous and detailed battery of tests because they recognise that performance, comfort and safety need to be consistently validated. Why should software development be any different?</p><p>Controls:</p><ul><li><strong>Assemble a full-stack automated testing suite for your application.</strong> This ensures that all necessary security controls are in place for every layer of the technology stack across your infrastructure and applications. For example, a typical application stack for containerised workloads would look like this: base operating system, Kubernetes platform, container operating system, and application logic. In each layer, there are specific security-related issues to test. Misconfigurations, application logic flaws and vulnerabilities should be flagged out as part of a pipeline validation of the stack’s security.</li><li><strong>Construct security test cases based on threat models</strong>. Threat modelling is a structured way to represent risk and impact to a particular function of the system. It lays out the risk consistently and concisely so that the right decisions can be made. After identifying the relevant security controls to implement as a result of threat modelling, develop security tests to validate the controls. One commonly used threat modelling tool is the <a href="https://owasp.org/www-project-threat-dragon/">OWASP Threat Dragon</a>.</li><li><strong>Augment your current application security testing strategy with Interactive Application Security Testing (IAST)</strong>. I have personally seen developers overwhelmed by the effort required to filter through scan reports from Static and Dynamic Application Security Testing tools (SAST and DAST). At the time, the number of false positives was so large that we started to wonder whether such tools had become more of a hindrance than a help. Combined with the improper use of tools and the lack of know-how to fine-tune them, this led to delayed timelines and hasty risk acceptance of discovered vulnerabilities. It was apparent that such tools were losing their effectiveness in an environment of fast-paced development. In contrast, IAST can be more effectively used to augment your overall application security testing strategy because:</li><li><strong>It provides greater accuracy in identifying vulnerabilities</strong>. This leads to a reduced number of false positives, and is achieved by monitoring the behaviour of low-level application activity, such as Java bytecode. This results in a more deterministic method to discover vulnerabilities, hence resulting in higher accuracy.</li><li><strong>It provides higher-quality, actionable information, aiding in more timely remediation when required.</strong> Some IAST tools can even report the exact offending line of code and suggest remediation. Developers do not need to tediously look through the stack trace to identify the offending function or line of code, and can focus their efforts on actually fixing the vulnerability.</li><li><strong>It is easy to integrate with existing workflows</strong> <strong>without requiring advanced knowledge to fine-tune or configure</strong>. Since attack patterns can be more accurately identified with low-level activities, there is less need to customise rules to detect attacks. Without even writing specific security test cases to validate protection against vulnerabilities like SQL injections, IASTs can detect vulnerabilities when you run your regular functional test cases.</li><li><strong>IASTs are generally very lightweight and do not severely impact overall performance</strong>. They are designed to run alongside the application to detect and even block threats in real-time. This helps developers reap its benefits with ease, in an almost plug-and-play fashion.</li><li><strong>Conduct resilience tests</strong>. This aims to validate the resilience controls put in place, like failover mechanisms, to ensure that the system is operationally ready. Site reliability engineering (SRE) is a discipline that addresses the ability to maintain a system in a reliable state all the time, and describes the collection of controls and architecture decisions that make it happen. Understandably, finding someone with extensive knowledge from such a discipline can be hard to come by, but we can still take certain steps to achieve a degree of system resilience. For example, developers can actively test the functionality of failover mechanisms especially for critical components like the database. Then, make sure that your applications know how to respond when such failovers and swing backs happen. Another control to effectively monitor the health of the system is to periodically conduct end-to-end tests, say every five minutes or so, that simulate real user interaction with the system, like following through the usual steps to update the test user’s particulars in the system, which in turn tests everything from the front end to the backend database and even caches. Proactively get on top of things, instead of reactively waiting for your users to complain about a system outage.</li></ul><h3>6. Release management</h3><p>Risks: Especially in the context of Agile development, multiple releases can be made over a short period. If there is no way to track all these releases, you may end up unknowingly deploying the wrong (and perhaps even vulnerable) versions of your application.</p><p>Controls:</p><ul><li><strong>Establish a structured versioning nomenclature, and apply policies on upgrading or downgrading versions</strong>. For example, only allow the secured and tested versions of your applications to be deployed, by maintaining information about a release with all its dependencies. Cross-reference every deployment with a list of allowed release versions, to avoid deploying outdated or vulnerable versions of your application.</li><li><strong>Mitigate accidental or malicious tampering of codes and binaries that flow throughout the pipeline, with code and binary signing</strong>. The integrity of codes and binaries will be assured because any tampering attempts would cause the signature validation to fail. Validate signatures at every phase of the pipeline to achieve the assurance of integrity.</li></ul><h3>7. Runtime protection</h3><p>For this control category, I would like to make a special mention on runtime protection for containerised workloads. While many have already started using containerised workloads and microservices, adoption of the relevant runtime protection is only just catching up. It has great potential to thwart critical vulnerabilities in containerised workloads.</p><p>Risks:</p><p>Endpoint protection (EPP) and endpoint detection and response (EDR) solutions protect the operating system space because it has visibility over system activities. But with the rise of modern application architecture and platforms like microservices-based applications running as containers orchestrated by Kubernetes, most EPP and EDR solutions today are not capable of protecting individual containers and their orchestrator just as they would an operating system, as they do not have visibility of activities within containers. Without such visibility, attacks that come through containers could potentially remain undetected and even spread to the underlying operating system despite having EPP or EDR running. Attackers could also choose to steer away from the watchful eyes of EPP and EDR solutions by choosing to operate mostly in the container platform space.</p><p>An attacker could potentially cause much damage in the container platform space without having to directly attack the underlying operating system, in the likely scenario that a majority of the business logic lives in containers. In that space, the attacker could pivot from one container to another without triggering the EPP or EDR. They can then gain control of other containers to subvert business rules for fraudulent activity. For example, they can bypass an authentication flow to impersonate another user, thus gaining access to that user’s account to conduct fraudulent transactions.</p><p>Controls:</p><ul><li><strong>Consider container security solutions with behaviour profiling capabilities</strong>. Effective solutions profile and block ‘low-level’ activities such as syscalls made to the underlying Linux operating system, which are necessarily triggered if an attacker tries to create processes which require increased privileges or access to the OS kernel. Hence, any malicious actions performed in the container would result in a deviation from the normal set of syscalls, which will stick out like a sore thumb. Monitoring the integrity of files in the container’s filesystem also acts as an additional tripwire to detect potentially malicious modifications to critical system files.</li><li><strong>Behaviour profiling requires a time to form a baseline</strong> <strong>of ‘good behaviour’ in a controlled environment, before the container is run in a production environment.</strong> The more complex an application is, the longer the learning duration and also reduced effectiveness to block bad behaviour. To maximise the benefits of runtime protection aided by behaviour profiling, keep microservices, well, micro, to reduce learning periods and increase effective prevention. However, this requires significant discipline in architectural decisions at the early stages of DevSecOps.</li></ul><h3>Next steps</h3><p>You can achieve some quick wins right now by doing these few, simple things:</p><ul><li><strong>Build on existing controls</strong>. You might already have some of the controls in one form or another. You can start right now by improving existing controls, then progress to implement high-impact controls.</li><li><strong>Identify the weakest links in your development process</strong>. Assess which of the seven controls mentioned would give you the greatest value through a cost-benefit analysis, and start by addressing the weakest links.</li><li><strong>Start by building the foundations right.</strong> Visibility and sense-making are the foundational pieces for a successful DevSecOps, because every stage of the development lifecycle needs to close the feedback loop for decision making, enabled by the sense-making piece. Then, proceed to address potential downstream issues by securely managing the software supply chain. This will save you a lot of headaches at the onset and even further down the road.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34a99595241" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ndi-sg/critical-controls-for-a-devsecops-practice-part-2-34a99595241">Critical controls for a DevSecOps practice — Part 2</a> was originally published in <a href="https://medium.com/ndi-sg">Singpass @ GovTech Singapore</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Critical controls for a DevSecOps practice — Part 1]]></title>
            <link>https://medium.com/csg-govtech/critical-controls-for-a-devsecops-practice-part-1-8a2ff2b1697e?source=rss-8ed960006942------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a2ff2b1697e</guid>
            <category><![CDATA[csg]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[govtech]]></category>
            <dc:creator><![CDATA[Josias Teo]]></dc:creator>
            <pubDate>Wed, 13 May 2020 04:01:00 GMT</pubDate>
            <atom:updated>2020-05-13T04:01:00.949Z</atom:updated>
            <content:encoded><![CDATA[<h3>Critical controls for a DevSecOps practice — Part 1</h3><p><em>This is the first post of a two-part series on DevSecOps practice.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BP7N4nZhfJvKF8Wuo-4H-w.png" /><figcaption><em>Street racing ride. @Credits: Photo by Ryan Spencer on Unsplash</em></figcaption></figure><p>Almost everyone is familiar with<em> Fast and the Furious — y</em>ou’d better build that app fast, or your boss will be furious. We imagine ourselves building a street racing car, with one mission — be the first to cross the finish line, <em>safely</em>.</p><p>Building an app is akin to building a race car. Some may say app development and cybersecurity are two separate missions, or one main mission with a side quest. *<em>ding ding</em>* Mindset change time — it’s one and the same. It’s not enough to build an app fast; the product must be robust and safe too! And this is the mindset of DevSecOps.</p><h3><strong>What is DevSecOps?</strong></h3><p>DevSecOps is cybersecurity done DevOps-style. It leverages the DevOps culture of ownership, automation principles, continuous delivery, and a tight feedback loop. The culture helps to build an approach that emphasises security, without compromising on the speed of development and operations in application delivery. DevSecOps ensures that cybersecurity adds value to the application delivery process, instead of being an impediment.</p><p>As part of the team delivering Singapore’s national digital identity, I’ve had the privilege to embark on an adventure to bring DevSecOps practices to life. We sailed the choppy waters of implementation, relished the sweet taste of victory from each feature launch, and now eagerly await to set foot on “Commissioning Island”.</p><p>Successful DevSecOps requires culture reformation. A major differentiator from existing paradigms is the “<em>shift-left” </em>philosophy. “<em>Shift-left</em>”, when applied in the context of DevSecOps, moves away from after-the-fact compliance audits to an upfront, intentional effort to consider cybersecurity at every stage of the development lifecycle. For “<em>shift-left</em>” to work, cybersecurity has to be the norm, and not an afterthought, for every team member.</p><p>DevSecOps encompasses the entire stack development, and the whole lifecycle of application delivery. It comprises every layer of the infrastructure and application stack; every configuration and line of code. Each layer undergoes a unique set of development and operational lifecycle, which needs to be secured at every stage.</p><h3><strong>Why DevSecOps?</strong></h3><p>DevOps is the nitrous oxide to an already solid engine. While it does give a speed boost, it should be used strategically because it has drawbacks.</p><p>DevSecOps recognises the immense speed potential of the car (fast app development), including the nitrous oxide (DevOps), and slaps on better brakes (cybersecurity) for better control of the ride. Sure, brakes technically slow the car down (as many perceive cybersecurity to do so), but it enables the driver to navigate dangerous bends (cybersecurity risks) or go full speed ahead on the straights (accelerated IT processes) to be the first to finish safely.</p><h3><strong>How to #DevSecOps?</strong></h3><p>Here are seven must-haves in a DevSecOps practice to help you accomplish your Fast &amp; Furious mission. These controls should be considered based on the totality of the <em>full-stack</em> and <em>whole lifecycle </em>of your development and operations activities:</p><ol><li>A security-conscious culture;</li><li>Visibility and sense-making;</li><li>Key management;</li><li>Software supply chain management;</li><li>Security acceptance tests;</li><li>Release management; and</li><li>Runtime protection.</li></ol><p>In this post, I will elaborate on the first three must-haves. The first three focus on foundational controls that are essential to a DevSecOps practice, as they offer wide-ranging and cost-effective benefits, both in the short and long term. The latter four controls address risks specific to each state of a typical DevSecOps practice, and are suitable for practices that a solidified foundation and are working towards greater maturity. I will be covering the latter controls in next week’s post.</p><ol><li><strong>Build a security-conscious culture</strong></li></ol><p>Risks: Human error, ignorance, lack of communication, miscommunication, insider threat. An analogy would be authorities failing to tell you to look out for falling boulders on the road you’re driving through, or that you’ve missed the “falling rocks” sign.</p><p>Controls:</p><ul><li><strong>Conduct relevant &amp; relatable cybersecurity training based on the team member’s role</strong>. For example, developers should be trained to fiercely validate inputs, and operators to strategically deploy monitoring and response controls. The last thing we want is for the team to doze off at the wheel because the training was irrelevant and boring.</li><li><strong>Establish guard rails</strong>. Guard rails reduce the friction and encourage people to do things the right way. For instance, all changes made to the production environment must go through the pipeline. Manual access to the production environment is disabled unless absolutely necessary. A manual quality gate, controlled by a change control committee, reviews and approves changes to be made to production, while changes in other environments can go through automated quality gates. A risk-based approach should support decision-making (e.g. changes to security components require greater scrutiny than aesthetic changes). This is especially useful in mitigating insider collusion, and reducing unnecessary overheads.</li><li><strong>Appoint a Security Champion.</strong> This role bridges the divide between the DevOps folks and the existing cybersecurity team. The security champion remains plugged into the development heartbeat as well as the security requirements from the organisation, to properly communicate security requirements and influence development, especially in its earliest stages.</li></ul><p><strong>2. Visibility and sense-making</strong></p><p>Risks: Lack of visibility of the happenings at the moment that could lead to a deadly, sprawling mess. This is akin to driving with a fogged-up windscreen.</p><p>Controls:</p><ul><li><strong>Inventorise everything.</strong> How will you know if a secret key was compromised if you never knew or forgot about its existence? How can you identify the vulnerable part of your application based on a recently reported vulnerability in a popular open-source library? If you have always hated lists, now’s the time to embrace them.</li><li><strong>Establish security metrics throughout the development lifecycle.</strong> Every stage will require different security metrics. For example, during the build phase, you want to monitor results from security unit tests, code scans, dependency checks, and configuration tests, before deciding to break a build or let it pass through. This is also known as a quality gate attuned for security requirements. To reach a common understanding of what’s considered “acceptable”, we have to communicate the risks and impact on whether a build should be let through.</li></ul><p><strong>3. Key management</strong></p><p>Risks: Leaked keys or secrets — collectively termed as keys (e.g. API keys, database credentials, SSH credentials, identity and access tokens like OAuth and OIDC tokens, data encryption keys), that could lead to unauthorised access, abused resources, excessive bills, leaked data, and even a complete shutdown of your business.</p><p>Controls:</p><ul><li><strong>Call your keys, don’t embed them.</strong> Avoid embedding keys into scripts, code, or configuration, and definitely not in some custom obfuscated form. Have you ever seen an Amazon Web Service (AWS) access key embedded in some code on a public GitHub page? Don’t repeat that mistake. Security through obscurity is a no-go. Instead, store the keys in a vault, then draw out the keys into temporary memory to perform the necessary actions when needed. This applies to all sorts of keys, from developer keys to API keys.</li><li><strong>Vault your keys. </strong>Manage access controls to your keys, and protect them with encryption at rest. This prevents a sprawling mess of keys that could lead to the abuse of leaked keys. Also, you’d be able to better manage key lifecycle when they are centralised.</li><li><strong>Rotate your keys frequently.</strong> Key rotation is essential to the overall security of your keys, as it reduces the exposure of the data it protects if the key was stolen. However, traditional IT made key rotation really painful and expensive. Such activities had to be done during maintenance windows and you’d have to suspend most of your operations just to change keys. As a result, those keys were hardly ever changed. With modern automation methods, keys can be rotated seamlessly and affordably.</li></ul><p>Cloud Service Providers offer a suite of services to manage keys and secrets. Using AWS services as an example, AWS CloudHSM can act as the root of trust in the Cloud to secure cryptographic operations. AWS Key Management Service can manage keys for data encryption. AWS Secrets Manager manages application access secrets. These can be integrated easily with existing cloud workloads and are typically being used to manage keys or secrets for native cloud services.</p><h3><strong>Conclusion</strong></h3><p>DevSecOps isn’t a buzz word. It is a practice, involving all of your people, processes, and technology, that helps you deliver products and services that meet your business objectives.</p><p>Discipline and rigour are required for a successful DevSecOps. Stick it out and see tangible benefits such as more secure products, as well as faster and more accurate responses to incidents.</p><p>Keen to incorporate DevSecOps in your product development? Stay tuned for more pointers on the DevSecOps practice in the second post of this two-part series coming soon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a2ff2b1697e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/csg-govtech/critical-controls-for-a-devsecops-practice-part-1-8a2ff2b1697e">Critical controls for a DevSecOps practice — Part 1</a> was originally published in <a href="https://medium.com/csg-govtech">CSG @ GovTech Singapore</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Critical controls for a DevSecOps practice — Part 1]]></title>
            <link>https://medium.com/ndi-sg/critical-controls-for-a-devsecops-practice-part-1-4cabceb768aa?source=rss-8ed960006942------2</link>
            <guid isPermaLink="false">https://medium.com/p/4cabceb768aa</guid>
            <category><![CDATA[shiftleft]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Josias Teo]]></dc:creator>
            <pubDate>Thu, 12 Mar 2020 03:11:01 GMT</pubDate>
            <atom:updated>2020-03-12T03:11:01.658Z</atom:updated>
            <content:encoded><![CDATA[<h3>Critical controls for a DevSecOps practice — Part 1</h3><p><em>This is the first post of a two-part series on DevSecOps practice.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*id4RbD1D4lQklQXEL12Jxw.jpeg" /></figure><p>Almost everyone is familiar with<em> Fast and Furious — </em>You’d better build that app fast, or your boss will be furious. We imagine ourselves building a street racing car, with one mission — be the first to cross the finish line, <em>safely</em>.</p><p>Building an app is akin to building a race car. Some may say app development and cybersecurity are two separate missions, or one main mission with a side quest. *<em>Ding ding</em>* mindset change time — it’s one and the same. It’s not enough to build an app fast; the product must be robust and safe too! And this is the mindset of DevSecOps.</p><h3>What is DevSecOps?</h3><p>DevSecOps is cybersecurity done DevOps-style. It leverages the DevOps culture of ownership, automation principles, continuous delivery, and a tight feedback loop. The culture helps to build an approach that emphasises security, without compromising on the speed of development and operations in application delivery. DevSecOps ensures that cybersecurity adds value to the application delivery process, instead of being an impediment.</p><p>As part of the team delivering Singapore’s national digital identity, I’ve had the privilege to embark on an adventure to bring DevSecOps practices to life. We sailed the choppy waters of implementation, relished the sweet taste of victory from each feature launch, and now eagerly await to set foot on “Commissioning Island”.</p><p>Successful DevSecOps requires culture reformation. A major differentiator from existing paradigms is the “<em>shift-left” </em>philosophy. “<em>Shift-left</em>”, when applied in the context of DevSecOps, moves away from after-the-fact compliance audits to an upfront, intentional effort to consider cybersecurity at every stage of the development lifecycle. For “<em>shift-left</em>” to work, cybersecurity has to be the norm, and not an afterthought, for every team member.</p><p>DevSecOps encompasses the entire development stack and the whole lifecycle of application delivery. It comprises every layer of the infrastructure and application stack; every configuration and line of code. Each layer undergoes a unique development and operational lifecycle, which needs to be secured at every stage.</p><h3>Why DevSecOps?</h3><p>DevOps is the nitrous oxide to an already solid engine. While it does give a speed boost, it should be used strategically because it has drawbacks.</p><p>DevSecOps recognises the immense speed potential of the car (fast app development), including the nitrous oxide (DevOps), and slaps on better brakes (cybersecurity) for better control of the ride. Sure, brakes technically slow the car down (as many perceive cybersecurity to do so), but it enables the driver to navigate dangerous bends (cybersecurity risks) or go full speed ahead on the straights (accelerated IT processes) to be the first to finish safely.</p><h3>How to #DevSecOps?</h3><p>Here are 3 must-haves in a DevSecOps practice to help you accomplish your Fast &amp; Furious mission (The rest will be in part 2!). These controls should be considered based on the totality of the <em>full-stack</em> and <em>whole lifecycle </em>of your development and operations activities.</p><h4>1. Build a security-conscious culture</h4><p>Risks: Human error, ignorance, lack of communication, miscommunication, insider threat. An analogy would be authorities failing to tell you to look out for falling boulders on the road you’re driving through, or that you’ve missed the “falling rocks” sign.</p><p>Controls:</p><ul><li><strong>Conduct relevant &amp; relatable cybersecurity training based on the team member’s role</strong>. For example, developers should be trained to fiercely validate inputs, and operators to strategically deploy monitoring and response controls. The last thing we want is for the team to doze off at the wheel because training was irrelevant and boring.</li><li><strong>Establish guard rails</strong>. Guard rails reduce friction and encourage people to do things the right way. For instance, all changes made to the production environment must go through the pipeline. Manual access to the production environment is disabled unless absolutely necessary. A manual quality gate, controlled by a change control committee, reviews and approves changes to be made to production, while changes in other environments can go through automated quality gates. A risk-based approach should support decision-making (e.g. changes to security components require greater scrutiny than aesthetic changes). This is especially useful in mitigating insider collusion and reducing unnecessary overheads.</li><li><strong>Appoint a Security Champion.</strong> This role bridges the divide between the DevOps folks and the existing cybersecurity team. The security champion remains plugged into the development heartbeat as well as the security requirements from the organisation, to properly communicate security requirements and influence development, especially in its earliest stages.</li></ul><h4>2. Visibility and sense-making</h4><p>Risks: Lack of visibility of the happenings at the moment that could lead to a deadly, sprawling mess. This is akin to driving with a fogged-up windscreen.</p><p>Controls:</p><ul><li><strong>Inventorise everything.</strong> How will you know if a secret key was compromised if you never knew or forgot about its existence? How can you identify the vulnerable part of your application based on a recently reported vulnerability in a popular open-source library? If you have always hated lists, now’s the time to embrace them.</li><li><strong>Establish security metrics throughout the development lifecycle.</strong> Every stage will require different security metrics. For example, during the build phase, you want to monitor results from security unit tests, code scans, dependency checks, and configuration tests, before deciding to break a build or let it pass through. This is also known as a quality gate attuned for security requirements. To reach a common understanding of what’s considered “acceptable”, we have to communicate the risks and impact on whether a build should be let through.</li></ul><h4>3. Key management</h4><p>Risks: Leaked keys or secrets — collectively termed as keys (e.g. API keys, database credentials, SSH credentials, identity and access tokens like OAuth and OIDC tokens, data encryption keys), that could lead to unauthorised access, abused resources, excessive bills, leaked data, and even a complete shutdown of your business.</p><p>Controls:</p><ul><li><strong>Call your keys, don’t embed them.</strong> Avoid embedding keys into scripts, code, or configuration, and definitely not in some custom obfuscated form. Have you ever seen an Amazon Web Service (AWS) access key embedded in some code on a public GitHub page? Don’t repeat that mistake. Security through obscurity is a no-go. Instead, store the keys in a vault, then draw out the keys into temporary memory to perform the necessary actions when needed. This applies to all sorts of keys, from developer keys to API keys.</li><li><strong>Vault your keys. </strong>Manage access controls to your keys, and protect them with encryption at rest. This prevents a sprawling mess of keys that could lead to the abuse of leaked keys. Also, you’d be better able to manage key lifecycles when they are centralised.</li><li><strong>Rotate your keys frequently.</strong> · Key rotation is essential to the overall security of your keys, as it reduces the exposure of the data it protects if the key was stolen. However, traditional IT made key rotation really painful and expensive. Such activities had to be done during maintenance windows and you’d have to suspend most of your operations just to change keys. As a result, those keys were hardly ever changed. With modern automation methods, keys can be rotated seamlessly and affordably.</li></ul><p>Cloud Service Providers offer a suite of services to manage keys and secrets. Using AWS services as an example, AWS CloudHSM can act as the root of trust in the Cloud to secure cryptographic operations. AWS Key Management Service can manage keys for data encryption. AWS Secrets Manager manages application access secrets. These can be integrated easily with existing cloud workloads and are typically being used to manage keys or secrets for native cloud services.</p><h3>Conclusion</h3><p>DevSecOps isn’t a buzz word. It is a practice, involving all of your people, processes, and technology, that helps you deliver products and services that meet your business objectives.</p><p>Discipline and rigour are required for a successful DevSecOps. Stick it out and you’ll see tangible benefits, e.g. more secure products, and quicker, accurate responses to incidents.</p><p>Keen to incorporate DevSecOps in your product development? Stay tuned for more pointers on the DevSecOps practice in the second post of this two-part series coming soon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cabceb768aa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ndi-sg/critical-controls-for-a-devsecops-practice-part-1-4cabceb768aa">Critical controls for a DevSecOps practice — Part 1</a> was originally published in <a href="https://medium.com/ndi-sg">Singpass @ GovTech Singapore</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>