bworkx.

Application security

Static application security testing (SAST)

Find dangerous code patterns while they are still cheap to fix.

Prefer to talk? Book a 30-minute call.

Who it is for

  • Teams with source code and no static analysis in their development workflow.
  • Companies preparing for a customer security review, audit, or enterprise procurement.
  • Products with high-risk code: authentication, payments, file upload, or customer data.
  • Engineering teams that want actionable findings instead of a raw scanner dump.

When it is not the right fit

  • A runtime penetration test or dynamic application security testing only.
  • A compliance certificate or a guarantee that the code is free of vulnerabilities.
  • A repository the client cannot legally share under an NDA.
  • A team that will not triage false positives or act on the findings.

Scope

What is included

The scope is written down before work starts. Anything outside it is a change, with a cost and a date.

A repository and language inventory, including frameworks and generated code.

A SAST tool and ruleset choice that fits the stack and the licence constraints.

A baseline scan with existing findings separated from new code.

Triage of findings, with false positives and accepted risks documented.

A findings report with evidence, severity, impact, and remediation guidance.

CI/CD integration so new code is checked automatically.

A re-scan of fixed findings and a handover for the engineering team.

Delivery

How an engagement runs

  1. Scope

    We agree which repositories, branches, languages, and frameworks are in scope. Generated code, vendored dependencies, and test fixtures are classified before scanning.

  2. Baseline

    The first scan establishes a baseline. Existing findings are separated from new code so the team is not asked to fix years of history in one sprint.

  3. Scan

    We run the selected tools with a ruleset tuned to the stack. The scan is reproducible: same repository, same rules, same result.

  4. Triage

    Every reported finding is reviewed. We remove false positives, confirm real issues, and rank them by exploitability and business impact rather than scanner severity alone.

  5. Report

    The report includes the evidence, the affected code path, the business impact, and a remediation direction. Critical issues are separated from hardening advice.

  6. Integrate

    The scan is connected to CI so pull requests and main-branch changes are checked. We tune the gate to fail on the issues that matter, not on every warning.

SAST is not a scanner dump

A static analyser can produce hundreds of findings in minutes. Most of them are noise, duplicates, or patterns that do not matter in context. A report that forwards the raw output to the engineering team is not an assessment; it is a new backlog.

The value is in the triage: confirming the real issues, explaining the exploit path, and giving the team a fix it can act on.

What we scan

The scope depends on the stack, but the usual areas are:

  • Authentication and session handling — password flows, token creation, session fixation, and authorization checks.
  • Injection — SQL, command, template, LDAP, and expression injection.
  • Data handling — unsafe deserialization, path traversal, file upload, and sensitive data in logs.
  • Cryptography — weak algorithms, hard-coded keys, insecure randomness, and certificate validation.
  • Framework-specific risks — the patterns that matter in Frappe, Django, Rails, Spring, Express, or .NET.
  • Secrets and dependencies — adjacent checks with Gitleaks, Trivy, and package audits, scoped separately from pure SAST.

Generated code, vendored libraries, and test fixtures are classified before scanning so the findings are about the code the team owns.

Tooling without the licence trap

The default stack is free or open source:

  • Semgrep for multi-language rules and custom patterns.
  • CodeQL where the repository licensing allows it. Private repositories may require GitHub Advanced Security, which we do not resell or require.
  • SonarQube Community Build for a self-hosted quality and security baseline.
  • Bandit, Gosec, Brakeman, ESLint security plugins, SpotBugs, and PMD for language-specific checks.
  • Gitleaks and Trivy for secrets and dependency findings where they are in scope.

Tool choice follows the stack and the licence constraints. A paid platform is not a prerequisite.

Baseline, then gate

A first scan of an old repository can produce a mountain of findings. We establish a baseline so the team can see what is new versus what has been there for years.

The CI gate is tuned to the issues that matter. A pipeline that fails on every low-severity warning will be disabled within a week. A gate that fails on confirmed high-severity issues in changed code is more likely to survive.

Triage and reporting

Every finding is reviewed:

  • Is the data flow real, or is the analyser guessing?
  • Is the vulnerable path reachable from an untrusted input?
  • What is the business impact if it is exploited?
  • Is there a framework control that already mitigates it?
  • What is the smallest correct fix?

The report separates confirmed issues from hardening advice and states what was not scanned. A finding without evidence is not a finding.

What this service is not

It is not a penetration test, a runtime assessment, or a compliance certification. It is also not a guarantee that the code is secure. It is a focused source-code review with triage, evidence, and a maintainable CI path.

Related work

See the approach in practice

Lab builds use synthetic data in the bworkx environment. Reference methods describe how the work is scoped and delivered. Neither is a client case study.

SAST assessment method

Reference method — scope, rulesets, triage, reporting, and CI integration. Not a client engagement.

Read more

Related reading

Frappe and ERPNext are not the same thing

Why the framework and application boundary matters when reviewing Frappe custom code.

Read the article

Questions

Before you ask

Do you need access to our source code?

Yes. The repository is accessed under an NDA and a written scope. We use the minimum access needed, do not retain the code after the engagement, and delete working copies on request.

Which tools do you use?

The default stack is free or open source: Semgrep, CodeQL where the repository licensing allows, SonarQube Community Build, and language-specific tools such as Bandit, Gosec, Brakeman, ESLint security plugins, SpotBugs, and PMD. No paid scanner subscription is required.

Is SAST the same as a penetration test?

No. SAST analyses source code for dangerous patterns. It does not exercise the running application, business logic, or infrastructure. A penetration test or DAST assessment covers different risks, and the two are complementary.

Will it find every vulnerability?

No. SAST has false positives and blind spots, especially in business logic and framework-specific behaviour. Triage and manual review are part of the service, and the report states what was not covered.

Can you integrate it into our CI/CD?

Yes. We can add the scan to GitHub Actions, GitLab CI, Jenkins, or another pipeline, with a baseline and a gate that fails on agreed severity levels. The pipeline configuration is handed over with the report.

Do you fix the code as well?

The engagement includes remediation guidance. Code fixes can be quoted separately, either as a focused remediation sprint or as part of a broader implementation engagement.

Application security

More in this practice

Other services in this practice. Each is scoped separately.

Software supply chain risk assessment

SBOM-driven risk assessment for the software you build and buy: Dependency-Track, CycloneDX, vulnerability, license, and policy triage.

  • CycloneDX SBOM generation from source, containers, or supplier artifacts.
  • Dependency-Track 5.x deployment or review, with PostgreSQL and a project hierarchy.
  • Vulnerability feed configuration: NVD, OSV, GitHub Advisories, and Sonatype OSS Index.
  • Policy configuration for vulnerability, license, and component risk.
See how it works

Dependency-Track v4 to v5 migration

Plan and execute the Dependency-Track v4 to v5 migration: PostgreSQL, offline data migration, API and notification changes, validation, and rollback.

  • A v4 inventory: version, database, projects, users, teams, policies, feeds, and integrations.
  • A v5 architecture and sizing plan with PostgreSQL and separate API and frontend services.
  • An offline migration plan using the v4 migrator, with a sandbox rehearsal.
  • A compatibility review of REST API clients, CI plugins, and automation.
See how it works

OWASP ASVS 5.0 verification assessment

A requirement-by-requirement verification against OWASP ASVS 5.0, with evidence, gaps, and a prioritized remediation plan.

  • A scope and ASVS level or profile decision based on risk, not marketing.
  • A chapter-by-chapter verification against ASVS 5.0.
  • Evidence for each requirement: configuration, code, test, or documented control.
  • A gap register with pass, partial, fail, and not-applicable status.
See how it works

Next step

Start with the situation, not the solution.

Describe what is happening today, what has been tried, and what a good outcome looks like. We will tell you whether this service is the right fit.