DedSec Application Security · · Updated
Without security staff or an enterprise budget, do application security in the order that prevents the most incidents per hour of attention: stop credentials leaking through git, harden the CI pipeline that holds your deploy rights, patch the dependencies known to be exploited, close the cheap external exposures, then add a static-analysis check to pull requests, and only then point a dynamic scanner at staging. Open-source tools cover every one of those steps, so tooling is not the constraint. Attention is: every tool produces findings someone has to read, and a programme fails when findings arrive faster than decisions. So add one control at a time, keep each advisory until you understand its noise, block only on what a change introduces, and record a reason for every finding you decide not to fix.
That is the short answer. The rest is the reasoning: why each step comes where it does, what it costs to set up and to run, how it fails, and what you accept by deferring it. It is written for a team where security is a part-time job for one or two engineers. Everything here is general practice; the open-source tools named are examples of a category, not a ranking. The section about our own product is labelled and says where its claim ends; the only other mention is a pointer to the site's free domain-check tools in step 4.
Every security control has two costs. Setup is paid once: installing the tool, wiring it into CI, tuning the first configuration. Running cost recurs: every finding it produces has to be read, understood, and either fixed or consciously dismissed. Small teams can usually find a day for setup. What breaks them is running cost, because it competes every week with the work the team was hired to do.
When running cost exceeds the attention available, nothing fails loudly. Findings pile up unread, the channel gets muted, and the pull-request check gets an override that becomes the normal way to merge. A control in that state is worse than none: it buys nothing and puts a green tick on a dashboard someone will later rely on.
So the order below comes from four questions asked of each step:
The steps that prevent low-skill incidents and cost little to run go first. One more rule applies throughout: every control gets one named owner, even if that person spends an hour a week on it. A scanner nobody owns is a scanner nobody reads.
Write down the repositories that deploy to production, the domains you own, the cloud accounts, the CI systems and who administers each, and where secrets live. This is not an asset-management project. Every later step needs it, because a scanner reports only on what it was pointed at: a repository missing from the list gets a clean report by omission, indistinguishable from one earned by scanning. The scan passed is not the scan ran covers that failure.
While you are there, add one question to design review for new features: does this cross a trust boundary that did not exist before, such as new user input, a new third-party callback or a new privilege level? That is the cheapest form of threat modelling, and it catches design problems that no scanner described below can see.
Why first. A committed credential is not a vulnerability someone has to work out how to exploit. It is access, and using it takes no skill. Everyone who can read the repository can read it, as can every clone, CI cache, fork and integration with read access. If the repository is public, automated harvesting finds it whether or not anyone looks at your code.
The mechanism people miss. Deleting the file does not remove the secret. The commit that added it is still in the history, every existing clone holds a copy, and rewriting history with a filter tool changes your copy of the repository, not the copies already pulled, forked or cached. So the order of remediation is fixed: rotate the credential first, then clean up. Check the issuing service's access logs for use between the commit date and the rotation. Secret detection across git history goes through why deletion is not removal.
Tools and placement. Scanners such as gitleaks and TruffleHog match commits and files against rules for known credential formats, and can scan the full history as well as the current tree. TruffleHog can also attempt to verify a candidate against the service that issued it, which separates live keys from dead ones. Place the checks in three spots:
Some hosting platforms can also block a push that contains a recognised credential format.
Failure modes and cost. Generic high-entropy rules are noisy: test fixtures, hashes and lockfile integrity strings all look random. Rules for provider-specific token formats, many with a recognisable prefix, are far more precise, so start with those. The history scan produces a bounded pile with two outcomes per item: rotate, or confirm the credential is dead and record that. After that, running cost is low, and each new finding has an obvious action.
Why second. Your CI system holds the deploy credentials, the registry token, the cloud role and write access to the repository, and every later step runs inside it. A compromised workflow compromises everything the pipeline can touch, and some ways in need only a pull request from a fork. Hardening is mostly configuration written once: modest setup, near-zero running cost.
The mechanisms. In GitHub Actions, the ones that matter most are covered in CI workflow security:
permissions: restricts it, so building the fork's code runs it with those secrets.run: block is pasted into the script before the shell parses it, so a crafted title becomes a command. Pass untrusted values through environment variables.permissions: explicitly per workflow or job to the least it needs.Protect the default branch with required review and required status checks, so later checks cannot be pushed past. Other CI systems have equivalents: protected branches, variables exposed only to protected references, runner restrictions.
Tools and limits. actionlint flags expression injection among its checks, and zizmor also flags dangerous triggers such as pull_request_target; OpenSSF Scorecard checks practices including pinning and token permissions. A linter sees the YAML, not what a called script or action does inside. Pinning freezes bugs too, so pinned actions need the update process from step 3.
Why third. Most code you ship was written by someone else. A known library vulnerability is attackable by anyone who reads the advisory, with no knowledge of your code. Malicious packages are a separate risk: a package published to steal credentials at install time is often not a CVE, so an advisory-matching scanner may say nothing. Malicious packages are not CVEs explains the difference.
The mechanism. Software composition analysis reads manifests and lockfiles, works out which package versions you depend on, directly and transitively, and matches them against advisory databases. A manifest says ^4.17.0, a range; the lockfile says which version was installed. Without a lockfile the scanner guesses from the range, and either guess is wrong somewhere: the lowest version reports long-fixed findings, a high guess misses real ones. Commit lockfiles, and point the scanner at them. Container images need their own scan: base-image OS packages are a dependency tree your manifests do not list. OSV-Scanner, for example, reads lockfiles and queries the OSV database; Trivy scans container images and filesystems, and checks infrastructure-as-code files for misconfigurations.
Why two scanners disagree. Package names collide across ecosystems, version ordering differs between semantic versioning and distribution schemes, one vulnerability carries several identifiers that tools reconcile differently, and distributions backport fixes without changing the upstream version, so a version-only match reports a fixed package as vulnerable. Why vulnerability databases disagree walks through each case. The practical lesson: pick one source and learn its blind spots rather than triaging the union of two.
Running cost is the problem. Transitive dependencies multiply findings; this is the step most likely to flood a small team. Four habits keep it bounded:
The trade-off. Auto-merging updates shortens time to patch, and also time to adopt a compromised release after a maintainer account is taken over. Some update tools can wait a configurable period after a release before proposing it, trading patch speed for a window in which a bad release is often noticed and pulled. Choose deliberately: little or no delay for security fixes, longer for routine bumps.
Why here. Attackers find these from public data: certificate transparency logs list every name you obtained a certificate for, and DNS says where each points. The fixes are mostly one-time configuration. They come after the first three steps because the typical incident is more contained than a leaked production key or a poisoned pipeline, but the order is loose; if it fits into the week of step 3, do it then.
What to check.
p=none only monitors. Domains that send no mail should publish an SPF record authorising nobody and a DMARC reject policy. See email authentication from the outside.frame-ancestors) and X-Content-Type-Options are set once at the edge or in the framework. A missing header's weight depends on what the page does; security headers from the outside separates the ones that matter from the ones reported by habit.Tools. testssl.sh, for example, tests a server's TLS configuration from the command line. On this site, the free email security and exposure pages run live checks against a domain you enter, with no signup; the SSL checker asks for a name and email before the first check.
Failure mode: drift. New subdomains appear with each campaign site or staging environment, and nobody reruns the check. Re-check when DNS changes, and watch certificate transparency for new names. Attack-surface change detection covers diffing one discovery run against the last, and attack-surface scan versus vulnerability scan covers why finding names and testing them are different jobs.
Why this late. SAST finds bugs in your own code: injection, unsafe deserialisation, path handling. Exploiting them takes real attacker work, but no earlier step can see them. It comes fifth because its running cost is the highest here. A first whole-repository scan produces a backlog far larger than anyone will read, and much of it is wrong for specific reasons. A taint map that is not scoped to a function lets a variable tainted on one line pair with a sink hundreds of lines away. A sink matched as a bare substring turns gettext( into a SQL-injection hit. A sanitiser gets credited against a sink class it does not protect. SAST false positives in mechanism goes through each.
So run SAST first on the pull request, where the question is narrower: what did this change introduce? The author still holds the context, which makes the fix cheap. Catching the vulnerability in the pull request makes the case in full.
How "introduced" is computed, and the stale-baseline trap. An analyser cannot tell which change created a problem, so a gate subtracts: scan the pull request head, scan a baseline, and call every head finding without a baseline match "new". For a scan of the branch head, the baseline must be the merge-base, the reference the platform uses to show the diff; for a scan of the synthetic merge commit, its first parent. Three things commonly go wrong:
Each produces a spurious block, which is how a team learns to use the override. When the baseline is stale works through every combination on a commit graph. Matching also depends on finding identity: if a fingerprint changes when code moves down a few lines, the gate sees a removal and an addition.
Tools. Semgrep runs pattern and taint rules across many languages and can report only findings absent at a given baseline commit. Bandit (Python), gosec (Go) and Brakeman (Rails) each cover one ecosystem. Whatever you use, set the baseline commit explicitly.
A rollout that survives.
That is the blocking-versus-advisory trade-off resolved: blocking on a noisy rule teaches bypass, and advisory comments are eventually ignored, so block narrowly and advise widely.
The existing backlog. Do not triage a first full scan line by line. Record it as a dated, deferred decision, distinguishable from findings someone examined, then work it by class: take the rule with the best true-positive record and clear all its instances. Suppression at scale explains why an unrecorded bulk baseline destroys information.
Why last. Dynamic testing sends requests to the running application and reads the responses, so it sees configuration and behaviour that only exist once the application is assembled. Its setup cost is the highest here: an environment resembling production, test accounts, disposable test data, a way for the scanner to log in and stay logged in, and agreement on where attack traffic may go.
The mechanism and its limits. A DAST scanner crawls to discover routes, then sends payloads into each parameter it found and compares the responses. It can only test what it reached:
A clean report says nothing about an authenticated area that was never reached. Compare the endpoints exercised with your route list; DAST scan coverage shows how.
Tools. ZAP, for example, offers a baseline scan that crawls and reports passive findings without sending attack payloads, a full scan that adds active attacks, and an API scan that imports an API definition. Start passive. Active scans create records, send emails and trip rate limits, so they belong on staging.
What it still will not find. Whether user A can read user B's invoice by changing an ID needs two accounts and knowledge of who should see what, which scanners mostly do not model. Why API scans miss BOLA explains why.
Whether any of the above works depends on what happens to findings, not on how many there are.
Three states. Each finding is *actioned* (fixed or being fixed by a named person), *suppressed* (a recorded decision not to fix), or *untouched*. Watch the last: if findings arrive faster than decisions, it grows however good each decision is. The levers are fewer arrivals (fix bad rules rather than suppress their instances), cheaper decisions (group identical findings), and decisions that stick (a suppression that stops matching after a refactor becomes a new finding).
Suppression rate is a diagnostic. For each rule or tool, track the share of findings closed by a recorded decision rather than a fix, broken down by reason. If one rule's findings are mostly dismissed as false positives, fix the rule. If "accepted risk" grows with no owner or review date, that is unmanaged exposure under another name. Suppression at scale describes five kinds of suppression and how each decays.
Severity is not urgency. The three common signals measure different things:
A workable order for a small team: known-exploited and reachable or exposed first; high EPSS and exposed next; everything else on a schedule set by severity. CVSS, EPSS and KEV covers the edge cases, including a low EPSS score on a KEV-listed CVE, where KEV wins.
One queue, one slot. Findings scattered across several dashboards do not get read; send everything to the team's issue tracker, routed to each repository's owner. Put triage on the calendar as a recurring block owned by a rotation, which also spreads the knowledge a security champions arrangement depends on.
Watch the scanners themselves. Alert when a scheduled scan fails, scans zero files, or does not run at all. A silent scanner looks exactly like a clean one.
Skipping is legitimate if written down; an unwritten skip becomes an assumption that the thing is covered.
security.txt file (RFC 9116) naming a contact, plus a disclosure policy.| Step | Incident class it prevents | Setup | Running attention | Main failure mode |
|---|---|---|---|---|
| 1. Secrets | Direct use of a leaked credential | Low | Low | Deleting instead of rotating; hooks not installed |
| 2. CI hardening | Pipeline takeover, secret theft via workflows | Low to medium | Very low | Linter sees YAML, not what actions do |
| 3. Dependencies | Known-vulnerable or malicious packages | Low | High unless prioritised | Range guessing without lockfiles; alert flood |
| 4. External surface | Takeover, spoofing, expiry, exposed panels | Low | Low, on change | Drift: new names nobody rechecks |
| 5. SAST on pull requests | Injection and unsafe code in your own changes | Medium | Medium to high | Stale baseline, noisy rules, override culture |
| 6. DAST on staging | Runtime and configuration flaws | High | Medium | Unreached routes reported as clean |
| Triage | Everything above going unread | Low | The whole budget | Untouched findings growing |
AppSecD is DedSec's application security platform. It runs SAST, DAST, SCA, secret detection, IaC, container, Kubernetes and API security from one platform, against one deduplicated finding model. Its secret detection runs TruffleHog and Gitleaks, deduplicated, over the working tree and, on full scans of a connected repository, git history (provider-specific credential types). Its SCA uses Trivy and OSV across npm, PyPI, Go, Maven, RubyGems, Cargo, Packagist and NuGet, with typosquat detection, malicious-package detection, provenance checking and CISA KEV correlation. Static analysis uses Semgrep as the primary engine across 20+ languages, with interprocedural taint analysis and CVE-reachability. AppSecD integrates with GitHub and GitLab, and its policy-driven gating blocks a pull request or commit when it introduces a violation. Scans trigger on webhooks, scheduled runs, CI, ZIP upload or manually. DAST and API testing run 150+ native checks alongside Nuclei, Dalfox, SQLMap, Commix, Katana, Arjun, FFuf and Interactsh, with API discovery across 50+ web frameworks. Findings are deduplicated across scans, move through new, reopened and fixed states, carry ageing and an SLA, get assigned to an owner, and can require maker-checker approval to close. An AI triage layer labels likely false positives, and the label itself is tracked so that triage quality can be measured. Separately, Maphra, DedSec's external attack surface management product, checks TLS and certificate posture, security headers, DNS hygiene and email authentication across every asset it discovers.
You can try AppSecD with a free self-serve evaluation: 14 days, one DAST scan and one SAST scan, a company email address and no credit card.
That is the whole claim. This post does not claim that AppSecD follows the order described above, selects a baseline commit in any particular way, lints or hardens CI workflow files, blocks secrets at push time, runs authenticated DAST, uses EPSS, or saves any particular amount of triage time. The order, the costs, the rollout and the trade-offs are general practice, and they work with the open-source tools named above as well as with ours.
Scan for secrets in the working tree and the full git history, rotate anything live that you find, and add a pre-commit hook plus a CI check so new secrets are caught. A leaked credential needs no skill to use, the setup takes hours, and the running cost is low. Hardening the CI pipeline comes next, because it holds every other credential you have.
Not to start. Open-source tools cover secret scanning, dependency scanning, static analysis, workflow linting and dynamic testing. You pay in attention instead: integrating each tool, keeping findings in one queue, and recognising the same issue reported twice. When that work costs more of the week than triage itself, consolidating tools is worth evaluating.
Eventually, and narrowly. Start with advisory comments, see which rules produce findings developers actually fix, and then block only on new findings from those rules. Make sure the gate compares against the correct baseline commit. A stale baseline blocks people for findings they did not introduce, and that is how teams learn to bypass the gate.
Commit lockfiles so the scanner knows the exact versions you ship. Let an update tool open version-bump pull requests so that most fixes are a merge. Prioritise CVEs in the CISA KEV catalog, then by EPSS and by whether your code calls the vulnerable function. Gate only on what a change adds, not on the whole existing backlog.
Yes, once the earlier steps are running. It finds configuration and runtime flaws code scanning cannot see. Run it against staging with test accounts, start passive, and check which routes it reached before trusting a clean report.
One named person per control, even for an hour a week, plus a rotating triage slot. A scanner nobody owns produces findings nobody reads, and a rotation keeps security knowledge from living only with whoever set the tools up.
A small team cannot do everything an enterprise security programme does, and it does not need to. It needs to do a few things in the right order, keep the findings each one produces below the team's capacity to decide on them, and write down what it chose to leave for later.