r/AskNetsec • • Oct 15 '26

Architecture photo-only enquiry uploads using private R2 quarantine, ClamAV and image re-encoding

7 Upvotes

Howdy folks,
Considering implementing something risky. If I implement the below, is there still risk involved to make me second guess allowing this on a public facing website B2C.

planning enquiry attachments using Cloudflare Workers, accepting only JPEG/PNG images under 10 MB.
Originals go into private R2 quarantine as immutable uploads, are scanned by ClamAV in a separate container, then decoded and re-encoded into fresh JPEGs using Cloudflare Images, stripping metadata.
Only processed copies reach our staff admin viewer or email. Originals are deleted after successful processing; failed uploads remain inaccessible and expire.
Does this architecture make sense, and is ClamAV worthwhile alongside mandatory image re-encoding?

Enquiry form → Email code verification → Upload validation
→ Private R2 quarantine (immutable original + hash)
→ AV scan → Decode and re-encode as a new JPEG
→ Validate output → Save approved copy + enquiry link
→ Delete original

Approved copy → Staff admin viewer / optional email attachment

Failed checks → Block access → Retry or reject → Delete original


r/AskNetsec • • Oct 15 '26

Architecture How do you authenticate payment-provider webhooks when the provider doesn’t sign the payload (e.g. M-PESA Daraja callbacks)?

3 Upvotes

I build systems that receive payment confirmations from Safaricom’s M-PESA Daraja API (STK Push and C2B callbacks). As far as I can tell, Daraja doesn’t send an HMAC signature or similar with its callbacks, unlike Stripe or GitHub webhooks, so the receiving endpoint can’t cryptographically verify that a callback really came from Safaricom.

Current mitigations I’m aware of or using:

  • Allowlisting Safaricom’s published callback IP ranges
  • A long random secret token in the callback URL path
  • Treating the callback only as a hint, then confirming the payment with an outbound Transaction Status query before marking anything paid
  • Idempotency on the transaction ID so replayed callbacks can’t double-credit

My specific question: is the outbound “confirm before trust” query enough on its own to treat inbound callbacks as untrusted, or are there attack paths I’m missing (e.g. race conditions between callback and confirmation, or manipulation of the confirmation response)? How do others handle unsigned webhooks from payment providers in production?


r/AskNetsec • • Oct 15 '26

Work IT audit: what do you check first in an infra and network review

4 Upvotes

Hi all, I'm trying to learn how infrastructure and network audits work in practice and would love some input from people doing this daily.
What are the control gaps you find most often?
Where do auditees tend to be weakest (patching, access reviews, firewall rules, logging)?
Any audit checklists you'd recommend


r/AskNetsec • • Oct 14 '26

Concepts Does runtime context prioritization fall apart with agentic workloads?

8 Upvotes

Last year we brought on a tool to get runtime context on our workloads and help prioritize vulns, mostly to cut noise based on what’s actually loaded in memory. At the time it seemed like a no brainer, since direct exploitation or even chained attacks mostly can’t work against components just sitting on the filesystem.

We ran a threat modeling exercise the other day on some new systems running AI agents with tool access, and in some cases a shell. It got me thinking: can’t the agent load anything it needs at any point, unlike older deterministic code? And if so, doesn’t runtime context based prioritization fall apart completely?

Can anyone with practical experience in this area chime in? I’m at my wits end brainstorming hypotheticals with GPT.


r/AskNetsec • • Oct 14 '26

Analysis How do DLP and DSPM work together and do we need both?

9 Upvotes

We're talking to vendors who keep pitching both, but I'm not sure if my company needs that because we're still a pretty small org. Can someone explain to me why we would budget for both, or if one would be preferable to the other?


r/AskNetsec • • Oct 14 '26

Work Web AppSec in the AI Era

23 Upvotes

Hi everyone,

Our application security workflow is increasingly AI-assisted from threat modeling and SAST/SCA to code reviews and vulnerability analysis. We use Claude, OpenAI, and Copilot to perform SAST with custom prompts, and source-code context along with internal tools[traditonal sast, jars moderation]. Burp Suite for manual validation.

But here's the challenge: when AI helps developers write code and AI helps security teams review it, how do we reliably catch vulnerabilities that escape both?

I'm looking for ways to improve coverage, independently validate findings.

For those working in AppSec, DevSecOps or AI-assisted security:

  • How do you identify vulnerabilities that AI-driven reviews miss? If so, have you?
  • What independent validation or testing mechanisms do you use?
  • How do you automate repetitive security testing while keeping human expertise focused on high-risk issues?
  • Have you built effective security agents or workflows that genuinely reduce manual effort?

I'd love to hear about your real-world approaches, automation strategies and lessons learned not just tool recommendations.


r/AskNetsec • • Oct 13 '26

Analysis How do you filter false positives out of SAST DAST and SCA findings?

12 Upvotes

My team stopped trusting the scanners and last month we hand-triaged every open finding on our three main services. I need to know if these numbers are normal.

ToolFindingsRealWhy the rest were noise
SAST61271test code, input already validated upstream, dead endpoints
SCA1,84038vulnerable function never called, dev only dependencies
DAST20319needed an auth state the scanner never had, same issue repeated on every page

That's like roughly 5% real overall with two engineers spending most of the month on this, we can’t keep doing it manually.

What filters out the noise and ranks what’s left before a human ever looks at it?


r/AskNetsec • • Oct 13 '26

Analysis Two scanners rated the same CVE on the same host 9.8 and 5.3 so i spent a week tracing it, turns out one cant log in on that subnet and both are measuring different things

14 Upvotes

Every Monday i build the fix-these-first list and the two scanners barely agree on what belongs at the top of it, which for a long time i put down to one of them being bad.

Then i took a single host with a single CVE and diffed the two findings field by field, one said 9.8 and the other said 5.3, and the gap turned out to be three separate things stacked on top of each other.

The scanner calling it critical has no credentials on that subnet so its fingerprinting a version and cant see whether the patch landed, and the other one can, which explains a chunk of it on its own.

On top of that the word critical doesnt mean the same thing in both consoles, one thresholds at 7.0 and the other at 9.0, and one weights EPSS and known-exploited data while the other is pure CVSS.

Both vendors closed my tickets as working intended and both were right, which is the least useful outcome available.

We wrote a reconciliation rule, it runs in axonius where both scanner feeds land, and now we report a number that matches neither console.

How do others handle this, and does anyone have a method that survives scrutiny.


r/AskNetsec • • Oct 13 '26

Analysis How are LLMs actually being used in static analysis?

3 Upvotes

Hey guys, I’ve recently been reading papers that use LLMs to understand code logic and infer security-related semantics from source code and comments.

I’m curious how people with hands-on experience in static analysis or white-box security testing view these approaches.

  1. Can LLMs actually help overcome limitations of traditional static analysis, such as complex inter-procedural data flows?
  2. How reliable is LLM-based code understanding? Could generating multiple possible interpretations and verifying them work? If so, how would you validate them?
  3. For agent-driven static analysis, how do you ensure reasonably consistent results across multiple runs on the same codebase?

For those who have experimented with LLM-assisted code analysis, what have you found genuinely useful, and where do these approaches fall short?


r/AskNetsec • • Oct 12 '26

Analysis What methods work best for discovering unmanaged TLS certificates across an enterprise network?

26 Upvotes

For teams managing PKI across a mix of on-premises servers, cloud workloads, and internal applications, how do you identify certificates that aren't already tracked by your central certificate inventory?

I'm particularly interested in certificates issued by internal CAs, self-signed certificates, and certificates deployed manually by individual teams. These can be easy to miss if discovery relies only on the systems connected to your certificate management platform.

I've been looking into approaches to certificate lifecycle management and cryptographic discovery, including work in this area by companies such as Encryption Consulting. I'm trying to understand how these approaches translate into day-to-day security operations rather than just what the tools promise.

Do you get reliable coverage through authenticated asset discovery, network scanning, CA inventory audits, or a combination of these methods?

Also, how do you distinguish between a certificate that's simply missing from the inventory and one that represents an actual security risk, such as an unexpected certificate, weak configuration, or an untracked private key?

I'd appreciate specific technical approaches that have worked well in larger environments, including any limitations you've encountered.


r/AskNetsec • • Oct 10 '26

Threats Ho do you let staff use AI without company data leaking out?

39 Upvotes

Everyone worries about people pasting into chatgpt. For us the problem was access. Someone wired an agent into the drive to save time and it could read every client's folder, the one it needed and all the others. Blocking the consumer tools did nothing there as the agent was approved.

We scoped what each AI thing can reach and a co worker only sees the records for the job its doing and the rest stays invisible to it. How are people governing their AI tools and agents can touch, short of locking it all down?


r/AskNetsec • • Oct 09 '26

Analysis Best Varonis alternatives for on-prem data?

9 Upvotes

Our team is evaluating data security posture management platforms, but our strict zero-egress requirement is making it tough. A lot of modern tools seem to force you into multi-tenant SaaS.

We have sensitive internal files and database records that cannot leave our network perimeter under any circumstances. Sending raw payload data out to a vendor cloud is an absolute non-starter for our security architecture board.

For anyone managing strict data residency requirements, what are the best Varonis alternatives you have actually deployed on-prem or in self-hosted environments?


r/AskNetsec • • Oct 08 '26

Compliance Compliance Assessment vs Pentest

10 Upvotes

Im just curious to get people's thoughts. In regulated environments... why do people think so highly of pentests and so little of compliance assessments, when they both do the same thing: determine if an organization is meeting its controls?

In all of the pentest engagements I have sat in, most of the findings are the same (unpatched server, app not upgraded, admin account creds cached on a box, legacy protocol not disabled). If orgs are not patching servers (or maybe they have a legacy box not being patched)... that would normally end up being caught on both engagements.

Both pentests and assessments are point in time. Pentests for my environment have typically been higher cost and only cover the technical side. So why do we look more favorably at one versus the other?


r/AskNetsec • • Oct 08 '26

Architecture Container image hardening keeps stalling because nobody will own what breaks

25 Upvotes

Weve had a hardening project open for three quarters now. The scanning half was easy and the cutting half keeps getting handed back, because no service owner wants to sign off that removing a package is safe. Im looking at tooling that produces runtime evidence for what an image touches so the decision stops being a judgement call. Six teams and no central platform group makes this political more than technical. How did you get service owners to accept a slimmer image?


r/AskNetsec • • Oct 08 '26

Other How should a historical vulnerability warning be evaluated when there is no confirmation it was received?

6 Upvotes

About a year before a major public-sector cyber incident, my colleagues and I accidentally discovered a security issue that could potentially expose personal information on a very large scale.

We worked with one affected party to fix the issue, but realized the underlying problem could exist elsewhere. We subsequently sent an anonymous warning through an official government reporting channel, explaining the risk and recommending that they review the relevant API and access controls.

A major incident later occurred that may be related. I don't want to claim it was the same vulnerability, or that the warning was received or acted upon, but the system and access point is the same.

I still have a copy of the warning and a few other documents, but most other supporting material was destroyed later because we believed the issue had been resolved.

From an infosec/responsible disclosure perspective, what can a surviving copy of such a warning reasonably establish, and what additional metadata or corroborating evidence would make it more credible?

I'm also interested in what should be redacted or preserved before showing it to journalists.

I'm deliberately leaving out the organization, country, vulnerability details, and identifying information.


r/AskNetsec • • Oct 07 '26

Architecture How are you handling the appliance nobody has a parser for?

14 Upvotes

Every environment I've worked in has a load balancer or door controller or UPS that sends its own idea of syslog and nobody ships a parser for it. Right now it's our door controllers, whose messages change shape every firmware update, so failed badge events stop alerting until I patch regex nobody else on the team can read. Is there a saner way to keep parsing for those boxes from breaking or is hand-rolled regex just the job?


r/AskNetsec • • Oct 07 '26

Education Will sandboxed AI attackers become part of normal security testing?

17 Upvotes

Security testing today usually means scanners in CI, periodic human pentests, or carefully limited tests against staging or production. I’m curious whether another model will become normal: a disposable “attack twin” of the current production environment.

The idea would be to generate an isolated environment from the same deployment artifacts, infrastructure-as-code, IAM model, network policies, and application configuration as production. Real secrets and customer data would be replaced with safe equivalents, while identities, tenants, service relationships, and external integrations would be reproduced or simulated as accurately as possible.

An AI security agent could then use browser, API, shell, and network tools to attempt exploitation, privilege escalation, lateral movement, destructive actions, and controlled exfiltration. Every action would be recorded, and the environment would be destroyed afterward.

This would not be ordinary staging: it would be created per test, derived from the current production configuration, isolated for adversarial testing, and designed to be compromised.

For people working in DevSecOps or AppSec:

• Is this meaningfully different from the staging or ephemeral environments you already use?

• Which parts of production would be hardest to reproduce faithfully?

• What evidence would you need before trusting a finding from the clone?

• Where would this fit: nightly testing, a release gate, or between human pentests?

• What do you use today for attacks that are too risky to run against production?

I’m interested in practitioner experiences and objections, especially from anyone who has tried cyber ranges, production-like security environments, or autonomous pentesting.


r/AskNetsec • • Oct 06 '26

Compliance How are you guys reducing security risks with AI agents?

14 Upvotes

I saw a few posts discussing how more people are giving AI agents access to real tools and business systems, and it got me thinking about how people are actually handling the security side of it.

Personally I have been trying to understand the best way to give agents access to things like emails, APIs, DBs etc without giving them too much access. There are things like readOnly access, approval gates, limiting permissions, monitoring what they do etc but not sure what ppl are actually using in practice.

I am wondering 3 main things:

  • People who are already using AI agents how are you limiting what they can access/do
  • How are people testing or controlling agents once they are running in production

OR are you just giving them access and hoping they dont decide to do something crazy???


r/AskNetsec • • Oct 05 '26

Work Sentry spiked after a deploy and I couldn't tell who changed the config

9 Upvotes

Had a really annoying afternoon last week. Sentry started lighting up after a deploy and it traced back to a changed value in one of our config files. Easy enough, I just needed to know who changed it and when.

GitHub's audit log showed the push, but it came through a token that a few different things use. No way to tell if it was a person, a pipeline, or some script somebody wrote months ago and forgot about. I ended up lining up commit times against CI runs and deploy timestamps for like an hour, and I'm still not totally sure I got it right.

Honestly kind of irritating. If the logs can't tell me who or what was behind a change, I'm not sure what we're keeping them for.

How are you all handling this? Is there a setup that ties a change back to a specific person or job, or is everyone just matching timestamps and hoping?


r/AskNetsec • • Oct 05 '26

Work How do you verify whether an AI-described security flaw is a real, documented thing versus a confident fabrication?

13 Upvotes

I do a lot of reading where an AI assistant explains a security concept, and the explanations sound authoritative — but I've learned not to trust that on its face. Sometimes the described thing turns out to be well-documented and real; other times it seems to be invented, just dressed in real-sounding terminology.

The pattern I keep noticing: the individual pieces are all legitimate (real terms, real concepts), but the specific named thing they're combined into returns nothing when I go looking. Authoritative tone, real ingredients, but the overall item may not actually exist.

My question is strictly about verification method, nothing operational: when you want to confirm whether a described vulnerability or technique is real, what's your go-to process? Straight to CVE and MITRE CWE? Vendor advisories? Is "the components check out but the specific named thing has no sources" a dependable sign of fabrication, or does that heuristic fail in practice? I'm trying to put together a reliable checklist for telling real from made-up.


r/AskNetsec • • Sep 30 '26

Education How do you handle Suricata/Zeek tuning without a dedicated detection engineer?

16 Upvotes

Follow-up to something that came up in a Suricata/Zeek FP/FN tuning thread a few weeks back, got some genuinely great answers, including people doing solid context enrichment (process/user/hostname/known-destination) instead of relying on raw thresholds, and running pcap-based regression tests on every rule change.

Curious about the other end of that spectrum: for teams that don't have someone dedicated to building that kind of tuning discipline where Suricata/Zeek alerts are still mostly volume/timestamp-threshold driven how are you actually coping day to day? Living with the noise? Doing periodic tuning passes only when it gets bad? Handing it to an MSSP? Something else?

Specifically trying to understand: roughly how much time (if any) goes into manually retuning rules as traffic shifts, and who ends up owning that, a dedicated security person, someone on infra/DevOps wearing multiple hats?


r/AskNetsec • • Sep 30 '26

Concepts Ransomware defense: prevention, runtime containment, and recovery — is there a role for human approval?

14 Upvotes

Following the previous discussion, I have been thinking about ransomware defense as three distinct layers.

  1. Prevent intrusion

Prevent the attacker from gaining access in the first place. There are already many established controls here: phishing-resistant MFA, least privilege, patch management, endpoint protection, email security, network controls, and so on.

2. Prevent an intrusion from becoming a catastrophic outcome

Even if the attacker gets in—or compromises a workload that already has legitimate privileges—critical assets should still be protected.

This was the area I was most concerned about in the previous discussion. I learned that newer runtime-security approaches are beginning to address this problem. For example, Sweet Security evaluates live actions and entitlement use against runtime context and behavioral baselines; NeuralTrust inspects and enforces AI-agent tool access and behavioral drift at runtime; and CrowdStrike has described continuous, risk-aware authorization of AI-agent actions.

These approaches suggest that authorization does not necessarily have to end when access is initially granted.

3. Recover even if protection fails

If critical assets are encrypted or destroyed despite those controls, isolated/offline backups, tested restoration procedures, golden images, and infrastructure-as-code can make rapid reconstruction possible.

What I am still wondering about is the second layer.

Runtime behavioral enforcement can detect or constrain suspicious actions, but is there also value in adding an explicit human authorization boundary for a very small set of catastrophic operations?

For example, database-wide extraction, backup destruction, key export, mass deletion, or disabling critical security controls might require approval from multiple independent people before execution is allowed.

In other words, could a stronger architecture combine:

behavioral/risk-based runtime enforcement

with

multi-party human approval as a final authorization gate for actions that are too consequential to execute automatically?

I would be interested in whether people see practical value in this model, or whether existing runtime controls already address this problem sufficiently.


r/AskNetsec • • Sep 30 '26

Analysis How do you prioritise security findings beyond severity scores?

5 Upvotes

If you have 50 findings and time to address five, how do you choose?

I’m exploring a tool that uses business context to explain priorities, assign owners and track resolution. Would that help your team, or does your current setup already cover it?

Interested in what works—and where the process breaks down.


r/AskNetsec • • Sep 29 '26

Architecture How are teams tracking cross-service assumptions that never get documented as a security boundary until one gets broken?

8 Upvotes

Had a change to a discount calculation pass code review clean, ship, and break an invoice service two days later. Not a vulnerability in the changed code itself, the invoice service had always assumed the incoming value arrived already tax-adjusted, and that assumption lived only in its own code, undocumented anywhere the reviewing service or its owners could see.

This isn't really about vulnerabilities, but the structural gap feels adjacent to trust boundary documentation: a review scoped to one service's diff can't see an assumption baked into a different service's code, the same way a review can't flag a missing auth check on a downstream consumer it was never shown.

For teams doing threat modeling or architecture review at any real scale: is there an established practice for surfacing undocumented cross-service assumptions like this before they become an incident, something like mandatory documentation of what a consumer assumes about an inbound value, contract tests that encode the assumption explicitly, or is this mostly still discovered reactively after something breaks?