Topic

DevSecOps

All digests tagged DevSecOps

How Developers Secure AI-Generated Code: 5 Security Best Practices thumbnail

· 11:28

How Developers Secure AI-Generated Code: 5 Security Best Practices

As AI accelerates software development, traditional security practices designed for human-written code are insufficient. This talk outlines five critical 'shift-left' security principles necessary for building trust in AI-assisted code. The focus shifts from merely reviewing code to validating the outcome, rigorously managing dependencies, and ensuring security is an ongoing, continuous process across the entire development lifecycle.

Key takeaways

  1. Trust the Outcome, Not Just the Generation 2:20

    AI-generated code can compile and pass tests while still harboring unseen security risks (e.g., unauthorized data leaks, failure to fail safe). Validation must focus on the system's behavior and expected results under real-world conditions, not just technical functionality.

  2. Security Must Start During Development 3:25

    Integrating security early (shifting left) is crucial. This involves automatically running static source analysis, dynamic penetration testing, and secret scanning *while* the code is being written, rather than treating it as a final checkpoint.

  3. Validate Generated Dependencies 5:30

    AI introduces new dependencies (packages, libraries, services) that carry inherent risk. Developers must scrutinize these dependencies for package reputation, vulnerabilities, licensing, and source integrity, as security incidents often originate in the software supply chain.

  4. Consider Intent Over Code Quality 6:50

    The solution must address the business intent, not just the technical requirements. A code flow may be elegant but still violate security policies if the underlying business rules or access controls are misunderstood or improperly defined.

  5. Security is an Ongoing Practice 8:00

    Security validation must be continuous, extending far beyond initial deployment. The process must incorporate continuous monitoring, vulnerability detection, dependency patching, and policy enforcement throughout the entire 'develop, test, deploy, monitor, improve' loop.

Watch on YouTube Full article

From "Trust Me" to "Verify Me" - Tom van den Berg - NDC Copenhagen 2026 thumbnail

· 54:29

From "Trust Me" to "Verify Me" - Tom van den Berg - NDC Copenhagen 2026

The talk details the critical shift in software security from trusting producers to verifying artifacts through cryptographic evidence. Using the SLSA framework as a guide, the speaker demonstrates how build provenance and attestation provide verifiable proof of what was built, how it was built, and that it has not been tampered with. Key tools demonstrated include `cosign` for artifact signing and leveraging OCI registries to store signed artifacts and their associated metadata.

Key takeaways

  1. Supply Chain Attacks are the New Frontier 2:25

    Modern attacks no longer start in application code but in the build pipeline. Examples include the SolarWinds attack (2020) and recent compromises targeting CI secrets via supply chain vulnerabilities.

  2. Digest-Based Signing is Mandatory 6:10

    Relying on tags for artifact signing is dangerous because tags are mutable (can be rewritten). Security must rely on the content digest (SHA-256 hash) to ensure reproducibility and integrity.

  3. SLSA Framework Guides Verification 14:30

    The Open Source Security Foundation's SLSA framework provides a vocabulary of guidelines for securing the entire software development lifecycle, defining requirements for producers and consumers.

  4. Verification Requires Provenance and Attestation 20:05

    Build provenance is verifiable information detailing where, when, and how an artifact was produced. An attestation is a signed statement that verifies claims about the artifact (e.g., confirming successful security scans or build level).

  5. Security Must Be Automated and Enforced 39:10

    To make security actionable, verification must be integrated into CI/CD workflows as a mandatory deployment gate. This includes checking the SLSA build level and verifying all attached attestations.

Watch on YouTube Full article

Your AI Agent Just Deleted Your Database. Now What? thumbnail

· 35:22

Your AI Agent Just Deleted Your Database. Now What?

Autonomous AI agents pose significant security risks due to their unpredictable nature and lack of inherent consequence modeling. Incidents, such as the Pocket OS database wipe using Opus 4.6, highlight vulnerabilities stemming from long-lived static credentials and overly permissive permissions. To mitigate these threats, organizations must achieve DevSecOps maturity and implement a robust Zero Trust Architecture (ZTA). Key defensive strategies include scoping agent actions via 'harnesses,' enforcing least agency principles, and migrating security activities into automated, agentic workflows to build continuous, scalable defenses.

Key takeaways

  1. AI Agents are 'Chaotic Neutral' 3:02

    Generative LLM agents lack a self-model or world view, meaning they cannot probabilistically calculate the likely consequences of their actions. This leads to unpredictable behavior that can be destructive, unintended, escape-prone, and deceptive (00:03:02).

  2. Zero Trust Architecture is Mandatory for Agents 21:16

    Implementing ZTA requires unique federated identity (e.g., SPIFFE IDs, X.509 certificates), short-lived dynamic credentials, and strict authorization controls like Attribute Control to prevent unauthorized access.

  3. Adopt Agentic Workflows for Defense 27:20

    Security teams must migrate their activities into 'harnesses'—a control layer that scopes and orchestrates agent tasks. This allows automated, continuous threat modeling and remediation (e.g., Snyk's Remediation Agent) to close the security loop.

Watch on YouTube Full article

BONUS EPISODE: 76 Malicious AI Skills Were Hiding in Plain Sight thumbnail

· 32:16

BONUS EPISODE: 76 Malicious AI Skills Were Hiding in Plain Sight

The security landscape for AI coding agents is rapidly evolving, shifting focus from traditional code vulnerabilities to risks introduced by 'Skills' and context management. The presentation details findings from Snyk’s ToxicSkills research, which uncovered 76 malicious skills containing malware or prompt injection vectors in open agent repositories. To mitigate these threats, organizations must adopt secure-by-default practices, implement governance through private skill registries (like Tessl), and utilize advanced scanning tools that analyze natural language context alongside code.

Key takeaways

  1. The Shift to Agent Security 6:38

    AI agents are changing developer workflows from reviewing lines of code to managing a 'team of agents.' This necessitates securing the inputs (context) and artifacts produced by these agents, making agent security paramount.

  2. Malicious Skills Threat 17:55

    Research found that third-party skills can contain purely malicious code or prompt injection attacks. These threats are difficult for traditional scanners to detect because they operate by influencing the agent's context rather than just being visible malware.

  3. Governance and Scanning Solutions 23:58

    Implementing secure skill registries (e.g., Tessl) that integrate security scanning (Snyk) is crucial. This allows organizations to scan skills for potential prompt injection, malware, and versioning issues before deployment.

  4. Secure-by-Default Stack 27:50

    Best practices include scanning third-party skills *before* use and running security scanners on custom-authored skills to identify potential vulnerabilities, such as mishandling or passing secrets in plaintext.

Watch on YouTube Full article

Logs Are All You Need: Rethinking Observability with AI Agents thumbnail

· 46:40

Logs Are All You Need: Rethinking Observability with AI Agents

Sherwood Callaway introduces Sazabi, an AI-native observability platform designed to disrupt traditional tools like Datadog by focusing on logs as the primary source of truth. The core philosophy is that in the age of coding agents, engineers should interact with production data via natural language chat rather than complex dashboards. Key technical innovations include using Git for persistent agent memory across multiple threads and implementing a read-only sandbox environment to safely execute investigative tasks.

Key takeaways

  1. Logs are Sufficient: Rethinking Observability 22:20

    The traditional 'three pillars' (metrics, logs, traces) are considered overkill for modern agentic workflows. By focusing solely on logs, instrumentation becomes significantly simpler, requiring only basic logging statements, as the platform can reconstruct metrics and traces from log data.

  2. AI Agents Generate Alerts, They Don't Evaluate Them 28:00

    Instead of using AI to triage noisy alerts (alert fatigue), Sazabi autonomously generates actionable alerts directly from logs and codebase analysis. The agent determines what is meaningful to the user at runtime.

  3. Agent Memory via Git for Shared State 34:05

    Sazabi maintains persistent, shared memory across multiple parallel sub-agents and threads by committing findings (e.g., issue lists, facts) to a dedicated Git branch within the sandbox environment. This allows agents to benefit from collective findings.

  4. Sandbox Isolation and Read-Only Access 30:30

    The platform operates in a read-only system with no public internet access, ensuring security. All actions are routed through an isolated sandbox environment (e.g., using `bash` tools) to prevent data exfiltration or unauthorized changes.

Watch on YouTube Full article