What is a Cloud-Native Application Protection Platform (CNAPP)?

Move fast and break things

  • Organizations are faced with an increasingly complex web of regulatory, compliance and security requirements. However, most IT departments struggle to provide both application security and regulatory compliance effectively while still delivering code efficiently.
  • Security teams are often isolated from the DevOps continuous integration/continuous delivery (CI/CD) value stream, leading to bottlenecks and wait states that inhibit agility and improved security.
  • Traditional application security testing approaches are slow and gate-driven, which also create challenges in taking action on security and compliance test results.

Cloud Native Security

  • CNAPP A cloud-native application protection platform (CNAPP) is an all-in-one cloud-native platform that simplifies monitoring, detecting and remediating potential cloud security threats and vulnerabilities. As an increasing number of organizations adopt DevSecOps, they are looking for ways to ensure cloud-native application security, protect business-critical workloads and streamline operations. A CNAPP combines multiple tools and capabilities into a single software solution to minimize complexity and facilitate DevOps and DevSecOps team operations. A CNAPP offers an end-to-end cloud and application security through the whole CI/CD application lifecycle, from development to production.
  • Cloud Native Computing Foundation (CNCF) is a Linux OS Foundation project that was founded in 2015 to help advance container technology and align the tech industry around its evolution.
  • Cloud Native Security Platform (CNSP) The cloud native approach takes the best of what cloud has to offer – scalability, deployability, manageability, and limitless on-demand compute power – and applies these principles to software development, combined with CI/CD automation, to radically increase productivity, business agility, and cost savings.Continuous Integration/Continuous Delivery (CI/CD) Application development methodologies are moving away from the traditional “waterfall” model toward more agile continuous integration/continuous delivery (CI/CD) processes with end-to-end automation.
  • Cloud security posture management (CSPM), continuous compliance and configuration monitoring- is a software solution designed to detect, prevent, and remediate misconfigurations which lead to exposure of cloud resources and potential security incidents. CSPM solutions also ensure that cloud resources and activities adhere to industry regulations and compliance mandates. If a resource is not compliant, security teams receive alerts to address them. CSPM not only give visibility and alerts, but also provide guided remediation or automated remediation to close security gaps and maintain golden standards and healthy security posture. A CSPM can be used for security risk analysis and monitoring, but also for incident response in case of threats. CSPM scanning in the DevOps CI/CD pipeline can also be used to ensure new IaC definitions are compliant with your cloud identity and access management policies.
  • Infrastructure-as-code (IaC) tools allow you to define your cloud architecture and services using configuration files or actual code. Among the most popular IaC tools for configuration files are Terraform, the Serverless Framework and AWS CloudFormation. For code, the Cloud Development Kit for Terraform (CDKTF) is one of the most popular.
  • IaC, Code Security = (IaC, Shift-left, CI/CD security, repository scanning), scanning is a form of automation to minimize cloud misconfiguration risks. Similar to code review, it is a means for ensuring code quality of the cloud infrastructure configuration files created by the scanning program itself in the CI/CD pipeline phase. IaC scanning can be manually launched too, which can be useful when developing IaC code to help you verify the security of your new code, for example. IaC scanning tools scan your configuration files (e.g., HCL files for Terraform) to find vulnerabilities and misconfigurations. They can detect issues like vulnerable network exposures, compliance violations and infringements of the principle of the least privilege for resource access policies.
  • Cloud workload protection platform (CWPP) , Cloud Workload Protection (CWP) = Host, Container, Serverless, API, Kubernetes-solutions, help protect your cloud infrastructure workloads from security threats. This covers a wide range of workloads from your cloud provider services such as VM, database (SQL and NoSQL) or API, as well as containers and kubernetes. A CWPP detects and suggests corrections to prevent cybersecurity threats and keep production running smoothly.
  • Cloud service network security (CSNS) Cloud service network security software solutions focus on protecting your cloud infrastructure in real time. This is achieved by one or many mechanisms such as a web application firewalls (WAF) or web application and API protection (WAAP), DDOS protection and load balancing, and TLS examination.
  • Kubernetes security posture management (KSPM) Modern cloud infrastructure often uses Kubernetes for container orchestration to automate software deployments and to manage containers. Kubernetes security posture management (KSMP) tools help DevOps engineers manage Kubernetes activities. They offer:Scanning of the Kubernetes environment and configurations to find and report on misconfiguration and security issuesMonitoring the environment, workload, configuration, clusters and more in order to minimize user errorsCluster penetration testing Benchmarking
  • Cloud infrastructure entitlement management (CIEM), = IAM security, helps you manage permissions and rights across your cloud environment, including across multi-cloud setups. It typically enforces the principle of least privilege and scans your cloud infrastructure configuration to find unnecessary access to resources to report them. It can also detect and report other misconfigurations such as a user or role having access to all actions on a resource when only read access is needed.
  • Application security posture management (ASPM) helps make applications secure and resilient once deployed. ASPM applies essential context from environment variables and configurations that can only be identified in production. This added context helps determine whether specific code vulnerabilities or application misconfigurations are exploitable.
  • Data security posture management (DSPM) solves the challenge of keeping all data safe, acting as a watchdog over where your data lives, how it’s secured, and who accesses it. Some key functionalities DSPM has include helping organizations manage their data across the cloud, monitoring for risks, enforcing security policies, and ensuring regulatory compliance.
  • Cloud Detection and Response (CDR) is an approach specifically designed to solve challenges pertaining to cloud computing environments, such as scalability, data sovereignty, and innovation. It does so by continuously monitoring the environment for any cloud threats, and rapidly respond to incidents or suspicious activity to limit its impact.
  • AI-SPM AI Security Posture Management
  • EASS External Attack Surface & Management Unknown cloud and asset discovery Automated pen-testing and exploit path discovery
  • KSPM Container & Kubernetes Security Posture Management Misconfiguration checks Compliance standard alignment Managed or self-managed Kubernetes Protection beyond CSPM
  • Vulnerability Management Agentless scanning Shift-left container registry scanning Runtime scanning

3 Essential Steps to Enable Security in DevOps

In modern DevOps practices, security often becomes a bottleneck or an afterthought. To maintain speed without sacrificing security, Gartner outlines three key steps to enhance security integration in DevOps environments:

  1. Embed Security Early in the Development Lifecycle:
    DevOps teams should integrate security right from the beginning, ensuring vulnerabilities are caught early in the process. This requires collaboration between development, operations, and security teams and can be facilitated by adopting “shift-left” security practices, such as incorporating security checks in the coding and build stages.
  2. Automate Security Testing and Monitoring:
    Security checks must be automated within the continuous integration/continuous deployment (CI/CD) pipelines. By automating vulnerability scanning, static and dynamic testing, and code analysis, teams can detect issues in real-time and prevent delays in deployment.
  3. Foster a Security-First Culture:
    Ensuring that all teams prioritize security involves continuous training and awareness. DevOps teams need to be empowered with the tools and knowledge necessary to make informed security decisions throughout the development cycle. Cultural changes and regular reinforcement are critical for maintaining a security-first mindset.

Phase 1: Plan

  • Prioritize key security issues for DevOps teams to address, including all compliance and security requirements that should be fulfilled and the timeline for laying down the foundational code.
  • Work with security teams to threat-model patterns in advance and give developers a clean, secure start. It is easier to run a threat model from a known beginning than from scratch.
  • Security training — including tool-specific training — is also essential for managing technical debt during this phase.

Phase 2: Create

  • Evaluate and implement security tools and solutions that integrate directly within the developer’s CI/CD pipeline and environment during the “create” phase.
  • Detect common security mistakes via a “security spell checker” and provide instructions on the resolution (see Magic Quadrant for Application Security Testing).
  • Perform additional threat modeling and security architecture review with security coaches or security teams (for new components or larger projects that span multiple iterations) and open-source review.

Phase 3: Verify

  • Scan for known vulnerabilities and misconfigurations in known or reused code. Software composition analysis (SCA) solutions with governance capabilities can be used to enforce the organization’s open-source software (OSS) policy when components are downloaded.
  • Scan for unknown vulnerabilities in custom code, leveraging static application security tools (SAST) and dynamic application security tools (DAST). When the product is tested or attacked, it generates data that can be used to improve security or respond to the attack. Interactive application security testing (IAST) is performed on running code and can be integrated into the overall DevOps process.
  • Scan for known vulnerabilities and misconfigurations in the infrastructure deployed in support of the application. Utilize protocol and input fuzzing, infrastructure-as-code security scanning, compliance assessment, and mobile application security testing (MAST).  Hype Cycle for Application Security, 2022 has details on these and other application security technologies.
  • Ensure that these principles are applied to development and delivery pipelines under I&O’s ownership, confirming scans for compliance to regulatory requirements that the product must meet. Security coaches should be leveraged extensively during the “Verify” Phase ensuring training on how to read security testing tool results.

Phase 4: Preproduction

  • Evaluate application security testing solutions that identify how product code reacts to both known attacks and nondeterministic tests.
  • A nondeterministic test may run for weeks and never find a vulnerability, or it may hit one on its first try. This reflects the nature of actual zero-day events. However, because DevOps emphasizes iterative development, the code runs through testing with greater frequency compared with waterfall methodologies.
  • There is no specific recommendation for how often to perform tests.
  • Assess if OSS tools used in infrastructure initiatives are still appropriate for the overall strategy (see Use Open-Source Software in Data Center Infrastructure).

Phase 5: Release

  • Check the time stamp signature and deploy into CI/CD.
  • Integrated security environments likely will require multiple signoffs to reflect successful completion of each different test (that is, separate signatures for SCA completion, IAST and complete vulnerability scanning).
  • This should all be automated based on risk-oriented policies and IT risk management processes.

Phase 6: Prevent

  • Provide configuration assurance at instantiation to confirm that code runs as expected and meets all requirements to be released into production.
  • Implement application control and allow-listing to ensure the server workload is running appropriately. This approach is foundational to workload security and should be considered the primary control for workload protection (see Market Guide for Cloud Workload Protection Platforms).
  • Establish common defense in-depth measures (for example, distributed denial of service (DDoS) protection). Encourage collaboration between developers, security coaches and security teams to increase application security by matching application development architectures (from Phase 1) to existing defense in-depth measures.
  • For network traffic, other technologies can be used to observe the behavior of connections or users, and to determine intent and deploy active protections. These tools include identity detection and prevention systems (IDPSs), user and entity behavior analysis (UEBA), and next-generation firewalls (NGFWs) (see Magic Quadrant for Network Firewalls).

Phase 7: Detect

  • Acknowledge that not all vulnerabilities will be identified in development. Some vulnerabilities, inevitably, will make it into production. Therefore, products should be designed to rapidly detect issues in runtime.
  • Runtime application self-protection (RASP) solutions force applications to respond to attacks by either self-protecting or failing safe.
  • This shift-right technology evolved from IAST. While organizations have been reluctant to deploy RASP at runtime because of performance and compatibility concerns, these issues are less relevant during development.

Phase 8: Respond

  • Leverage application security response technologies: Tools that leverage existing defense-in-depth measures to protect applications. For example, many network hardware providers will offer DDoS protection as part of their router and switching hardware. These are active technologies that depend on web application firewalls and API gateways. They detect the type of attack the application is experiencing, facilitate an appropriate defense, and alert or record the attack. These technologies are reliant on application shielding or code obfuscation (where applicable) and API gateways.
  • Intelligence from the attack surface is critical to mounting the right kind of defense and to feeding information back to the development teams about how the application responds in the real world.
  • Deliver this information to the “Plan” Phase, ensuring a link exists through either security incident and event monitoring, security orchestration or security monitoring.
  • Response intelligence must be incorporated into the development toolchain to drive better incident response, make operational adjustments or minimize security technical debt.

Phase 9: Predict

  • Work with security teams to use the visibility and telemetry from the “Detect” and “Respond” Phases to predict which countermeasures the system will need. For example, unusual web path traversal patterns can expose an underlying vulnerability that attackers are actively exploiting.
  • Visibility and usage data from the attack surface must be collected, analyzed and fed back into the product planning cycle. This data will support improved threat modeling and enhance understanding of security requirements for subsequent products.
  • Third-party threat feeds and intelligence are also critical during the “predict” phase — for example, when a new vulnerability is discovered in a widely used framework such as Apache Struts. This information can be used to create a workflow element to fix the vulnerability. If both the vulnerability and the product are critical, developers should prioritize a new, automated release using the updated library or framework to resolve the issue.

Phase 10: Adapt

  • Inevitably, gaps and areas for improvement will be encountered. Use all the information that the system and its instrumentation have received to inform the next round of requirements. This information should be applied at both the scrum level (for critical-level events) and at the planning level (for less immediate issues).
  • Reconfigure and refine application security testing solutions to better support integrated security in products. The volume of intelligence produced will often overwhelm security and development teams. Security teams must continually review and evolve their tools and practices in collaboration with I&O and application leaders to ensure agility is not impeded.
  • Continuous feedback and development should become a mantra for I&O and security teams that will use the alerts, statistics and feedback to improve security processes, tools and practices.

By following these three steps, organizations can protect their systems while still achieving the speed and efficiency promised by DevOps.

Stratus Red Team – Cloud Native Attack Techniques

AWS

This page contains the Stratus attack techniques for AWS, grouped by MITRE ATT&CK Tactic. Note that some Stratus attack techniques may correspond to more than a single ATT&CK Tactic.

Credential Access

Defense Evasion

Discovery

Execution

Exfiltration

Impact

Initial Access

Lateral Movement

Persistence

Privilege Escalation

EKS

This page contains the Stratus attack techniques for EKS, grouped by MITRE ATT&CK Tactic. Note that some Stratus attack techniques may correspond to more than a single ATT&CK Tactic.

Lateral Movement

Persistence

Privilege Escalation

GCP

This page contains the Stratus attack techniques for GCP, grouped by MITRE ATT&CK Tactic. Note that some Stratus attack techniques may correspond to more than a single ATT&CK Tactic.

Exfiltration

Persistence

Privilege Escalation

Azure

This page contains the Stratus attack techniques for Azure, grouped by MITRE ATT&CK Tactic. Note that some Stratus attack techniques may correspond to more than a single ATT&CK Tactic.

Execution

Exfiltration

Kubernetes

This page contains the Stratus attack techniques for Kubernetes, grouped by MITRE ATT&CK Tactic. Note that some Stratus attack techniques may correspond to more than a single ATT&CK Tactic.

Credential Access

Persistence

Privilege Escalation

Cloud Attack Reference

MITRW ATT&CK IaaS – https://attack.mitre.org/matrices/enterprise/cloud/iaas/

MITRE ATT&CK Containers – Containers Matrix – https://attack.mitre.org/matrices/enterprise/containers/

Detecting AWS Account Compromise: Key Indicators in CloudTrail Logs for Stolen API Keys

The security of your AWS environment hinges on vigilant monitoring and quick detection of anomalies within CloudTrail logs. By understanding the typical patterns of legitimate usage and being alert to deviations from these patterns, security professionals can detect and respond to potential compromises, such as those involving stolen API keys, before they cause significant damage. As cloud environments continue to evolve, maintaining a proactive stance on security is essential to protecting sensitive data and ensuring the integrity of your AWS infrastructure.

1. Unusual API Calls and Access Patterns#

A. Sudden Spike in API Requests#

One of the first signs of a potential security breach is an unexpected increase in API requests. CloudTrail logs every API call made within your AWS account, including who made the call, when it was made, and from where. An attacker with stolen API keys might initiate a large number of requests in a short time frame, either probing the account for information or attempting to exploit certain services.

What to Look For:

  • A sudden, uncharacteristic surge in API activity.
  • API calls from unusual IP addresses, particularly from regions where legitimate users do not operate.
  • Access attempts to a wide variety of services, especially if they are not typically used by your organization.

Note that Guard Duty (if enabled) will automatically flag these kinds of events, but you have to be watching to find them.

B. Unauthorized Use of Root Account#

AWS strongly recommends avoiding the use of the root account for day-to-day operations due to its high level of privileges. Any access to the root account, especially if API keys associated with it are being used, is a significant red flag.

What to Look For:

  • API calls made with root account credentials, especially if the root account is not typically used.
  • Changes to account-level settings, such as modifying billing information or account configurations.

2. Anomalous IAM Activity#

A. Suspicious Creation of Access Keys#

Attackers may create new access keys to establish persistent access to the compromised account. Monitoring CloudTrail logs for the creation of new access keys is crucial, especially if these keys are created for accounts that typically do not require them.

What to Look For:

  • Creation of new access keys for IAM users, particularly those who have not needed them before.
  • Immediate use of newly created access keys, which could indicate an attacker is testing or utilizing these keys.
  • API calls related to `CreateAccessKey`, `ListAccessKeys`, and `UpdateAccessKey`.

C. Role Assumption Patterns#

AWS allows users to assume roles, granting them temporary credentials for specific tasks. Monitoring for unusual role assumption patterns is vital, as an attacker might assume roles to pivot within the environment.

What to Look For:

  • Unusual or frequent `AssumeRole` API calls, especially to roles with elevated privileges.
  • Role assumptions from IP addresses or regions not typically associated with your legitimate users.
  • Role assumptions that are followed by actions inconsistent with normal business operations.

3. Anomalous Data Access and Movement#

A. Unusual S3 Bucket Access#

Amazon S3 is often a target for attackers, given that it can store vast amounts of potentially sensitive data. Monitoring CloudTrail for unusual access to S3 buckets is essential in detecting compromised API keys.

What to Look For:

  • API calls related to `ListBuckets`, `GetObject`, or `PutObject` for buckets that do not typically see such activity.
  • Large-scale data downloads or uploads to and from S3 buckets, especially if occurring outside of normal business hours.
  • Access attempts to buckets that store sensitive data, such as backups or confidential files.

B. Data Exfiltration Attempts#

An attacker may attempt to move data out of your AWS environment. CloudTrail logs can help detect such exfiltration attempts, especially if the data transfer patterns are unusual.

What to Look For:

  • Large data transfers from services like S3, RDS (Relational Database Service), or DynamoDB, especially to external or unknown IP addresses.
  • API calls related to services like AWS DataSync or S3 Transfer Acceleration that are not typically used in your environment.
  • Attempts to create or modify data replication configurations, such as those involving S3 cross-region replication.

4. Unexpected Security Group Modifications#

Security groups control inbound and outbound traffic to AWS resources. An attacker might modify these settings to open up additional attack vectors, such as enabling SSH access from external IP addresses.

What to Look For:

  • Changes to security group rules that allow inbound traffic from IP addresses outside your trusted network.
  • API calls related to `AuthorizeSecurityGroupIngress` or `RevokeSecurityGroupEgress` that do not align with normal operations.
  • Creation of new security groups with overly permissive rules, such as allowing all inbound traffic on common ports.

5. Steps for Mitigating the Risk of Stolen API Keys#

A. Enforce the Principle of Least Privilege#

To minimize the damage an attacker can do with stolen API keys, enforce the principle of least privilege across your AWS account. Ensure that IAM users and roles only have the permissions necessary to perform their tasks.

B. Implement Multi-Factor Authentication (MFA)#

Require MFA for all IAM users, particularly those with administrative privileges. This adds an additional layer of security, making it more difficult for attackers to gain access, even if they have stolen API keys.

C. Regularly Rotate and Audit Access Keys#

Regularly rotate access keys and ensure that they are tied to IAM users who actually need them. Additionally, audit the use of access keys to ensure they are not being abused or used from unexpected locations.

D. Enable and Monitor CloudTrail and GuardDuty#

Ensure that CloudTrail is enabled in all regions and that logs are centralized for analysis. Additionally, AWS GuardDuty can provide real-time monitoring for malicious activity, offering another layer of protection against compromised credentials. Consider AWS Detective to have some intelligence built on top of the findings.

E. Use AWS Config for Compliance Monitoring#

AWS Config can be used to monitor compliance with security best practices, including the proper use of IAM policies and security groups. This tool can help identify misconfigurations that might leave your account vulnerable to attack.

How to Secure AWS Lambda?

https://medium.com/@juliachotkiewicz/how-to-secure-aws-lambda-ea1b0225702c

  • Dev-Academy.com

Top Threats to Cloud Computing 20224

SAN DevSecOps Cheatsheet

Defending Continuous Integration/Continuous
Delivery (CI/CD) Environments

Kubernetes Security Guide

Questions

Public Cloud:

  • How do you approach helping a client choose between different public cloud providers (AWS, Azure, GCP) based on their specific needs and security requirements?
  • Answer: When helping a client choose between public cloud providers, I start by understanding their specific requirements, including compliance needs, scalability, and existing infrastructure. For instance, AWS might be preferred for its extensive services and global reach, Azure for its integration with Microsoft tools, and GCP for its data analytics capabilities. I also consider factors like pricing, support, and geographical data sovereignty requirements. Prisma Cloud’s multi-cloud support allows us to secure resources across any chosen provider, ensuring consistent security policies and compliance.

DevOps:

  • Can you describe how DevOps practices, such as CI/CD, can enhance security in the software development lifecycle, and how Prisma Cloud integrates into this process?
  • Answer: DevOps practices, such as CI/CD, streamline development and deployment, allowing for more frequent and reliable releases. Integrating security into this process—often called DevSecOps—ensures that security checks are automated and continuously applied. Prisma Cloud integrates with CI/CD pipelines to scan code, containers, and configurations for vulnerabilities and misconfigurations before deployment. This helps catch issues early in the development cycle, reducing the risk of security breaches in production environments.

Cloud Security:

  • What strategies would you recommend to a client looking to secure their multi-cloud environment using Prisma Cloud? How do you handle the challenges of securing dynamic and scalable cloud resources?
  • Answer: For securing a multi-cloud environment, I recommend implementing a unified security strategy that covers all cloud platforms. Prisma Cloud provides comprehensive visibility and control by integrating with various cloud environments, offering features such as automated compliance checks, threat detection, and vulnerability management. It also supports centralized policy management, which helps enforce security policies consistently across all cloud resources, addressing challenges like varied security controls and evolving threat landscapes.

Infrastructure as Code (IaC):

  • How would you explain the importance of IaC security to a client who is new to cloud-native technologies? How does Prisma Cloud help in ensuring that IaC deployments are secure from the start?
  • Answer: IaC allows for the automation of infrastructure deployment, making it crucial to embed security practices into the IaC process. Prisma Cloud helps secure IaC by providing policy-as-code capabilities, which allow teams to define and enforce security policies within their IaC templates. This ensures that infrastructure deployments adhere to security best practices from the outset. By integrating IaC security checks into the CI/CD pipeline, teams can detect and remediate misconfigurations and vulnerabilities before they affect production environments.

Application Security:

  • In your experience, what are the common security vulnerabilities in cloud-native applications, and how does Prisma Cloud help mitigate these risks throughout the application lifecycle?
  • Answer: Common vulnerabilities in cloud-native applications include insecure APIs, misconfigured permissions, and exposed secrets. Prisma Cloud addresses these risks by offering features such as runtime protection, which monitors applications for suspicious behavior, and static and dynamic code analysis, which identifies vulnerabilities in the application code. Additionally, Prisma Cloud’s security posture management ensures that applications are deployed in secure configurations, reducing the risk of exploitation and data breaches throughout the application lifecycle.

Reference

DevSecOps Playbook