Migrate from Checkmarx CxSAST to Semgrep

A CxSAST customer offered a move to Checkmarx One can move static analysis to self-hosted Semgrep CE, but only for the single-function rules and CI workflow that CE covers. This page maps what moves cleanly, what needs rework, and what the sequence and cost drivers look like.

On this page

Migrate from Checkmarx CxSAST to Semgrep: what the move involves

A CxSAST renewal or a Checkmarx One migration offer forces a decision, and this section covers what moving the rule-based part of your scanning to open source involves. Semgrep Community Edition can replace the pattern-based scanning you run in self-hosted CI, but it does not replace cross-file dataflow analysis, because Semgrep CE is limited to single-function analysis, and it does not include the paid Semgrep products for secrets or supply chain scanning. Before you commit, list which CxSAST findings in your portfolio depend on interprocedural taint tracking, since those are the ones Semgrep CE will not reproduce. Ask your security team to pull that list from the last two or three scan cycles rather than from the preset names alone.

Security engineering usually leads this work, with development teams owning the fixes and the rule review. In most programs the security engineers take the CxSAST presets and query settings, translate the checks they still need into Semgrep rule files, and run those rules in the pipelines that already call CxSAST. Developers then confirm false positives for their own services. Effort and risk depend mainly on how many custom queries your organization has written, how many languages your estate uses, and how much of the dataflow coverage must be replaced by other controls, such as manual code review or a commercial tool kept for a subset of applications. Ask for an inventory of custom queries and languages before estimating anything.

The migration is mostly rule rebuilding and triage history, not a bulk data import. CxSAST results do not map one-to-one onto Semgrep output, so keep the old triage decisions as a reference export and record them in DefectDojo, where findings can be deduplicated and tracked over time. Confirm with your current vendor what export formats and retention periods apply to your contract before the license ends, and plan for a period where both tools run in parallel so you can compare results on the same codebases. Your compliance evidence should show that the replacement control still meets your secure development requirements, which an assessor will check against your own written process.

Which CxSAST capabilities map cleanly to Semgrep CE

This table compares the main CxSAST capabilities with what Semgrep Community Edition provides, so you can see which parts move directly, which need rebuilding and which are missing. Status is Clean when Semgrep CE covers the same job, Needs rework when the logic must be rebuilt, and Gap when Semgrep CE does not provide the capability. Confirm each CxSAST query mapping in your own environment before retiring any preset.

CxSAST capabilitySemgrep CE equivalentStatus
Scan presets and queriesRebuilt as Semgrep rule sets, with each CxSAST query mapped by hand and tested against sample codeNeeds rework
Language coverageListed languages include C/C++, C#, Go, Java, JavaScript, TypeScript, Python, Ruby, Rust, PHP, Kotlin, Swift and TerraformNeeds rework
Custom rulesYAML rule files with patterns, output messages and rule-defined fixes; CxSAST query logic must be rewrittenNeeds rework
Single-function pattern checksCovered by Semgrep CE rules that analyze within a single functionClean
Cross-file dataflow analysisNot in Semgrep CE; requires paid Semgrep CodeGap
Pro rulesNot in Semgrep CE; requires paid Semgrep CodeGap
CI integrationSemgrep CE runs in CI/CD pipelines; confirm your gating logic and exit code handlingClean
Triage states and historyExport findings and import them into DefectDojo; confirm which triage fields carry overNeeds rework
Secrets and supply chain scanningPaid Semgrep products, separate from the Community EditionGap

The migration sequence from inventory to decommission

The sequence moves CxSAST scanning to Semgrep CE in five controlled stages, so each step produces evidence that the next one depends on. Teams keep CxSAST running until the Semgrep results are verified and the historical record is archived.

  1. Inventory presets, projects, queries and triage history

    The security engineering lead, with the application owners, lists every CxSAST project, the scan preset and the queries it enables, and any custom queries the team wrote. They also export triage states, comments and suppression decisions for open findings. The output is a query-to-rule map that marks each CxSAST query as covered by a Semgrep rule, partly covered, or not covered, along with an export of triage history. The step is done when every active project has a mapped preset and the export has been checked for completeness.

  2. Pilot Semgrep CE rule sets on one or two repositories

    Engineers choose one or two repositories in the languages Semgrep CE supports and write or adopt rule sets that match the mapped queries. They run Semgrep CE against the same code that CxSAST last scanned, then compare the two result sets finding by finding. The output is a pilot finding comparison that lists matches, Semgrep-only findings, CxSAST-only findings and the reason for each gap. Gaps caused by single-function analysis in Semgrep CE, which cannot follow dataflow across files, should be recorded as known limits rather than hidden.

  3. Run both scanners in parallel in CI

    The DevSecOps or platform team adds a Semgrep CE job to the existing pipeline next to the CxSAST job, with the Semgrep job reporting but not blocking merges. Findings from both tools are sent to DefectDojo so that deduplication and triage happen in one place. The team reviews new findings from each scanner weekly and tunes rules that produce false positives. The output is a parallel run log showing finding counts, rule changes and triage decisions. The step is complete when the team agrees, in writing, that Semgrep results match the coverage the security policy requires for the pilot projects.

  4. Cut over gating to Semgrep

    The team changes the pipeline so that Semgrep CE decides whether a merge or build is blocked, and CxSAST moves to informational or scheduled runs. Each project owner signs off on the gating rules, including severity thresholds and the process for accepting a finding. Exceptions and their approvals are recorded in DefectDojo. The output is an updated pipeline definition and a gating policy document that the security and compliance owners have reviewed. Any project that still depends on a CxSAST-only query stays on the parallel run until a rule or an alternative is in place.

  5. Export, retain and decommission CxSAST

    Before the license or the server is retired, the team exports scan reports, triage history and audit records from CxSAST and stores them in an archive the organization controls. The archive is checked against the retention periods set by the organization's own policy and any regulatory obligations, which the compliance lead should confirm with counsel or the relevant assessor. Once the archive is verified and the Checkmarx contract terms for data return or deletion are confirmed in writing, the CxSAST instance is shut down. The output is a retained archive with an index and a decommission record that names the approver and the date.

What data and integrations move, and what you rebuild

A CxSAST move is less a data copy than a rebuild: scan presets become rule files, pipeline steps become Semgrep jobs, and triage history lands in DefectDojo as imported findings. Each card below marks one piece that moves, one that is recreated, and one that stays with the vendor. Confirm the exact CxSAST export formats in your version before you plan the cutover.

Export paths from CxSAST

Start by inventorying what your CxSAST version can export: scan results, query or preset definitions, project and team structure, and audit history. Export formats vary by version, so confirm with Checkmarx which report and data formats your installation supports before you commit to a path. Record which exports are complete and which are summaries, because only complete exports let you check triage decisions later. Keep a copy of the raw exports in your own storage for the audit trail.

Presets rebuilt as rule files

CxSAST presets select queries, and those queries do not convert automatically to Semgrep. Rebuild each preset as a Semgrep rule set: a YAML rule file that holds the patterns, the output message and any rule-defined fix. Start with the rules that your findings history shows are actually triaged as true positives, and mark which CxSAST queries have no equivalent. Note that Semgrep CE analyzes a single function, so any rule that depends on taint across files must be reviewed against the gap list.

CI jobs replacing scan steps

Each pipeline step that triggers CxSAST becomes a Semgrep job in your CI system, run on the repositories that today trigger scans. Define the rule set source, the failure threshold and where results are written, and version the rule files in the same repository as the code they guard. Test the job on a small set of repositories first and compare its output with the last CxSAST run for the same commits. Confirm which CI systems your teams use and whether runners can reach the rule sources.

Findings imported into DefectDojo

DefectDojo imports Semgrep and other scanner reports and tracks each finding through triage and remediation. Its deduplication depends on a per-parser hashcode, so confirm how the Semgrep parser computes that hash before you rely on it for matching historical CxSAST triage. Triage decisions made in CxSAST will not carry over automatically, so decide which open findings to import, which to mark as accepted with a reason, and which to rescan. Record the import method so the history can be audited later.

REST API v2 for tracking

DefectDojo exposes a REST API v2 with client libraries and wrappers, which lets your pipelines create engagements, upload reports and update finding status without manual work. Use it to script the import of historical triage and to pull finding status into your reporting or ticketing tools. Test API tokens and their scope with a service account, and confirm that the endpoints you need exist in the version you deploy. Plan for rate limits and error handling in your scripts.

SSO limits in open-source DefectDojo

The open-source DefectDojo edition uses local accounts. SSO through SAML, OIDC or OAuth, LDAP and MFA are features of DefectDojo Pro, so a self-hosted open-source deployment needs a compensating control. Decide how user accounts are created, rotated and removed, who holds admin rights, and how access is logged. If your policy requires federated sign-in or MFA for tools that hold source-code findings, confirm that gap with your security team before the cutover.

How Semgrep CE rules replace CxSAST presets in CI

The core change is that a CxSAST preset becomes a set of Semgrep rule files that your team owns and reviews like any other code. Each rule is a YAML file that can combine multiple patterns, carry a detailed output message for the developer, and, where the rule supports it, define a fix. Start by inventorying which CxSAST queries your presets actually enable, then map each one to an existing Semgrep rule or write a custom rule for the pattern your codebase needs. Expect gaps where the CxSAST query depends on dataflow across files, because Semgrep CE analyzes single functions. Record those gaps in a list now so they are not discovered during the cutover review.

Store the rule sets in a Git repository next to the code they protect, and group them by language and by risk, for example one directory for injection rules in Java services and another for secrets-adjacent patterns. Semgrep CE runs in CI/CD pipelines, so the same rule files can gate pull requests in your existing build system. Pin each rule source to a specific revision rather than tracking a moving branch, so a rule change is a reviewed commit with a known effect on builds. Decide in advance which severities block a merge and which only report, and confirm with the security team how exceptions are approved and recorded.

Licensing needs a decision before rule sets leave the pilot. The Semgrep Community Edition engine is licensed LGPL-2.1-only, but Semgrep-maintained rules fall under the Semgrep Rules License v1.0. That license allows internal business use, while vendors may not use those rules in competing products or SaaS offerings. Your internal use is generally within scope, so the practical check is whether your organization ever redistributes the rules, bundles them into a product, or offers them to customers as a service. Ask legal to confirm that reading against your own contracts, and keep custom rules you write in-house under your own terms.

How the migration differs by codebase and starting point

A small estate with a few languages and mostly single-function vulnerabilities is the closest fit for Semgrep Community Edition. Most of the CxSAST presets that flag issues such as unsafe calls, hardcoded values or missing input validation inside one function can be rebuilt as YAML rules and run in CI without a paid tier. Semgrep CE supports languages including Java, JavaScript, TypeScript, Python, Go and C#, so check that every language in your repositories appears on the supported list before you commit.

  • Language check: List each repository's languages and confirm each one is on the Semgrep CE supported languages page.
  • Preset mapping: Map each active CxSAST preset to the rules you keep, rewrite or drop, and record the reason for each decision.
  • CI wiring: Run Semgrep CE on pull requests and on the main branch, with results gated on severity you define.
  • Triage import: Export open CxSAST findings and load them into DefectDojo so triage state is not lost at cutover.
  • Dataflow gaps: Flag any finding that depends on a taint path across files, because Semgrep CE does not analyze that on its own.

Before cutover, confirm with your security lead which findings you will accept as residual risk and who signs that decision.",

What goes wrong in CxSAST to Semgrep moves and how to prevent it

Most failed moves from CxSAST to Semgrep come from assumptions made early, not from the engine itself. The risks below share one root cause: the team treats a rule-based scanner as a like-for-like replacement for a dataflow engine, with its own triage history and governance. Each card names the check that keeps the move honest.

Assuming CE matches CxSAST dataflow

Semgrep Community Edition analyzes single functions, so it will not reproduce the cross-file taint paths that CxSAST reports. Before cutover, take a sample of confirmed CxSAST findings that span files or modules and run them through Semgrep CE. Record each result as found, missed or partial. Any category with misses needs a compensating control or a decision to keep a commercial SAST scope for those paths.

CE analysis scope
Single-function
Semgrep licensing

Losing triage decisions in transit

CxSAST stores suppressions, severity changes and comments per finding, and those decisions do not move automatically when scanning shifts to Semgrep. Export the CxSAST results and triage states, then import them into DefectDojo so each finding keeps its status and owner. Reviewers should confirm that a sample of suppressed items stays suppressed after import, because an unmapped status can silently reopen closed work.

Rule drift between teams

When each team writes its own Semgrep rules, the same vulnerability class gets flagged in one repository and missed in another. Keep custom rules in one version-controlled repository, require review for changes, and pin the rule set each pipeline loads. Treat a rule change like a code change, with an owner and a changelog entry, so that a finding count shift can be traced to a specific edit.

Cross-file false negative gaps

A clean Semgrep CE run does not mean the cross-file flows were checked. Teams often read a green pipeline as coverage, which is the wrong conclusion here. Document which vulnerability classes depend on multi-file flows in your applications, and state in the security review that those classes rely on manual review, dynamic testing or a paid Semgrep Code tier. Put that statement in the written scope so auditors and product owners read the same gap.

Running Semgrep without a tracking system

Semgrep CE prints results to the CI log and does not track them over time. Without a central store, findings disappear when a job is rerun, and no one can show when a finding was first seen or fixed. Send Semgrep output into DefectDojo from the first pipeline run, set deduplication rules, and assign an owner to each finding. Confirm that the import runs on every scan, not only on demand.

DefectDojo README

Unmanaged contributor counts

Semgrep's Free Edition covers up to 10 contributors and 10 repositories, where a contributor is someone who committed to a scanned private repository in the past 90 days. A migration that onboards more repositories can cross that line without anyone noticing. Keep an inventory of scanned repositories and a monthly count of active committers, and ask Semgrep for a quote before any new team joins if the count is near the limit.

Semgrep pricing

What drives the cost and duration of the move

This table lists the factors that set how much effort a CxSAST to Semgrep move takes, why each one matters, how to shrink it, and whether it is paid once or recurs. Read it before requesting a quote, since most of the effort sits in rebuilding rules and triage history rather than in installing the engine.

DriverWhy it mattersHow to reduce itOne-time or recurring
Number of CxSAST queries and custom presetsEach custom query or preset has to be reviewed and rebuilt as a Semgrep rule set, and presets often bundle overlapping checks that can merge into fewer rules.Inventory queries and presets first, retire unused ones, and group the rest by language and check type before writing any YAML.One-time
Number of languages in scopeSemgrep CE covers many languages, but each one needs its own rule coverage, test cases and CI configuration, and some languages may need more custom rules than others.Start with the languages that carry the most production code or highest risk, and confirm support against the Semgrep supported languages list.One-time for rules, recurring for upkeep
Share of findings relying on cross-file dataflowSemgrep CE analyzes single functions, so findings that depend on taint flowing across files will not be reproduced by CE alone and may need paid Semgrep Code or a different control.Measure this share from the CxSAST results history, then decide which findings to rebuild in CE and which to cover with another control or a paid tier.One-time analysis, with a recurring decision on coverage
Triage history volumePast suppressions and severity decisions must be carried into DefectDojo so accepted risks are not reopened, and the volume of records drives import and review time.Export triage data from CxSAST, import it in batches, and review only open or recently accepted items rather than the full archive.One-time import, recurring tracking
CI pipeline countEach pipeline needs its own Semgrep job, rule configuration, failure policy and result upload, so duplicated pipelines multiply setup and testing work.Share one reusable CI template and a single rule repository across projects, then override only where a project needs a different gate.One-time setup, recurring maintenance
Team Semgrep rule-writing skillCustom rules are written in YAML patterns, and a team with little experience will need more review cycles and more false-positive tuning before rules are trusted in a gate.Train two or three engineers on the writing rules documentation, pair them with a security lead, and keep a shared test suite for each rule.One-time learning, recurring rule tuning
Semgrep licensing for paid featuresSecrets detection, supply chain scanning and Pro features sit in paid Semgrep products. Published Teams prices are $30 per contributor per month for Code, $30 for Supply Chain and $15 for Secrets, per the Semgrep pricing page, and Enterprise pricing is custom.Confirm the contributor count against the Free Edition limit of 10 contributors and 10 repositories, and only buy paid modules for gaps you have measured.Recurring per contributor if paid tiers are chosen
Checkmarx offer termsMigration offers, temporary licenses and renewal terms can change the comparison, and the terms that apply to your contract are not the same as published figures.Ask Checkmarx for the offer in writing, including duration, scope, what happens at expiry and any data or code hosting terms, then compare it with the open-source cost in the same period.Depends on the written offer
Hosting and operations for DefectDojoThe open-source edition runs in Docker Compose on infrastructure you manage, and it uses local accounts, so SSO and MFA are not included in the open-source edition.Size the hosting to the number of findings and users, plan backups and patching, and confirm whether SSO and MFA are needed before choosing a tier.Recurring

How Semgrep CE, CI and DefectDojo fit together

The flow starts when a developer pushes a commit to a repository hosted inside your network. The CI job checks out the code and runs Semgrep CE against a versioned rule repository, which keeps rule changes reviewable like any other code. The job writes JSON or SARIF output, and an import step sends it to DefectDojo, which deduplicates findings against earlier scans and holds triage state. Check that the CI runner, the rule repository and DefectDojo all sit inside the trust boundary, and that Semgrep CE is the only scanner in this path that reads source code.

Commits flow through CI and Semgrep CE into DefectDojo, all inside your own network.

Questions buyers ask before moving from CxSAST to Semgrep

How much does moving from CxSAST to Semgrep cost?

The software engine is free to use, so the cost is the work around it: rebuilding scan presets as rule sets, wiring scans into CI, setting up DefectDojo, and the time your team spends on triage and rule tuning. Those costs are one-time for the migration and recurring for upkeep. If you want the paid Semgrep products, Semgrep's pricing page lists Teams prices of $30 per contributor per month for Code (SAST), $30 for Supply Chain (SCA) and $15 for Secrets, with custom Enterprise pricing. Your Checkmarx renewal or migration quote and your internal hours are the other side of the comparison. Ask any implementation partner for a fixed-scope written quote that lists the presets, repositories and languages in scope.

How long does a CxSAST to Semgrep migration take?

The duration depends mainly on how many presets, custom queries and repositories you run, and how many languages they cover. A small estate with a few standard presets moves faster than one with heavily customized CxSAST queries and years of triage decisions. Work usually runs in phases: inventory presets and languages, pilot Semgrep CE rule sets on a few repositories, run both tools in parallel to compare findings, then cut over. Confirm the timeline with your vendor or partner against your own repository count before committing to a date.

What does the internal team need to contribute?

Your team needs people who know the code, the security standards you must meet, and the CI system where scans run. In practice that means an application security owner who signs off on rule sets and severity thresholds, developers who review and triage early findings, and a platform engineer who runs Semgrep in pipelines and DefectDojo on your infrastructure. Compliance staff should confirm which evidence the assessor expects, such as the written vulnerability management process described in CIS Control 7 and the SAST coverage your auditor wants to see. Plan this time before the project starts so the work is not left to whoever has spare capacity.

Can our own engineers migrate from CxSAST to Semgrep without a partner?

Yes, a capable team can do it, provided it has time, security ownership and experience with CI pipelines. The Semgrep CE engine is open source and its YAML rule format is documented, so engineers can write and test rules directly. The harder parts are tuning rules to reduce false positives, deciding which CxSAST presets have no equivalent, and building a repeatable triage workflow. An outside partner can help with those areas and with evidence preparation, under a written scope. Decide which parts your team owns and which you want to hand over before you start.

Does Semgrep Community Edition replace CxSAST dataflow analysis?

Not fully. Semgrep Community Edition is limited to single-function analysis, so it does not follow tainted data across files the way CxSAST's dataflow engine does. Cross-file dataflow analysis and Pro rules require paid Semgrep Code. Before you commit, run both tools on the codebases that matter most and compare the findings that depend on cross-file flows. Codebases with mostly local vulnerability patterns may be covered well by Semgrep CE, while applications with heavy cross-module data handling may need the paid tier or a retained commercial tool for those findings.

What happens to our CxSAST triage history?

CxSAST triage decisions do not move automatically into Semgrep. The usual approach is to export CxSAST results to a neutral format and import the findings into DefectDojo, which deduplicates them and keeps status, notes and ownership in one place. DefectDojo's documented parsers cover Tenable, Qualys VMDR, Nexpose, OpenVAS, Burp and ZAP reports, so confirm with the DefectDojo parser documentation whether a CxSAST export is supported or needs conversion. Deduplication depends on each parser's hashcode fields, so test a sample import and check how many findings are matched before relying on the history.

Do we need an outside partner to rebuild CxSAST rules as Semgrep rules?

You do not strictly need one, but a partner can shorten the rule rebuild and reduce the risk of gaps. Rebuilding is the step where each CxSAST preset is mapped to a Semgrep rule set, tested against known vulnerable code and tuned against false positives. Semgrep rules are written as YAML files with multiple patterns, detailed messages and optional fixes, so the work is mostly analysis and testing rather than new tooling. Ask for a written scope that lists which presets are covered, which gaps are documented, and how rule changes are reviewed and versioned.

Where to confirm Semgrep licensing, languages and pricing

Before you commit to a Semgrep rebuild, confirm the license and language facts against the vendor's own pages, because the scope of the open-source engine is narrower than the Semgrep product family. Start with the Semgrep licensing documentation. It separates the LGPL-2.1-only engine from the Semgrep Rules License v1.0 that covers Semgrep-maintained rules, and it states that the rules license bars vendors from reusing those rules in competing products or SaaS offerings. Your internal use is generally covered, but have legal review that wording against how your rule sets will be shared across teams or with contractors.

Next, check language coverage in the supported languages list against the languages in your CxSAST preset, and confirm which of your applications need cross-file dataflow analysis, since Community Edition is limited to single-function analysis. Use the writing rules overview to test whether your highest-value CxSAST queries can be expressed as patterns with the messages and fixes your developers need. Pricing is the other item to confirm: the Semgrep pricing page lists per-contributor Teams prices and a free tier capped at 10 contributors and 10 repositories. Count your contributors using Semgrep's definition (a person who committed to a scanned private repository in the past 90 days) and record the number before you request a quote.

For import behavior, read the DefectDojo README and the parser documentation, which covers how findings are deduplicated by parser hashcode fields. Confirm which export format your CxSAST version produces, since the Semgrep output and the CxSAST report are not interchangeable and triage history usually needs a mapping step. Record the CxSAST export version, the number of projects and the number of open triage states, and ask your Checkmarx administrator to confirm them in writing.

How DeployOpen scopes and runs a CxSAST to Semgrep migration

DeployOpen plans, implements, integrates, documents and supports self-hosted open-source platforms inside your own infrastructure, so a CxSAST to Semgrep move is handled as a written, fixed-scope engagement. The work covers rule rebuilding, CI integration, triage history and the gaps Semgrep Community Edition leaves open, with each deliverable agreed before work starts.

How we scope

  • We inventory existing CxSAST presets, queries and suppressions, and record which languages and repositories each one covers.
  • We agree in writing which Semgrep rule sets, CI pipelines and DefectDojo imports are in scope and which are excluded.
  • We confirm the gaps Semgrep Community Edition leaves, such as cross-file dataflow and secrets detection, and document how each is handled.

How we build

  • We rebuild priority presets as Semgrep rule YAML files, then test each rule against known vulnerable and clean code samples from your repositories.
  • We configure Semgrep Community Edition in your CI/CD pipeline and set gating rules that match the severity thresholds your security team approves.
  • We script the import of prior triage history into DefectDojo so deduplication and finding status carry over, and we test the import on a sample project first.

How we hand over

  • We deliver rule documentation, pipeline configuration, import scripts and a runbook that explains how developers and security staff use each part.
  • We provide a findings report covering the rebuilt coverage, the gaps that remain, and the compensating controls we recommend for them.
  • We walk your engineering and security teams through the handover so ownership of rules, pipelines and DefectDojo is clear before we close the scope.

How we support

  • Ongoing support, rule updates, upgrades and continuous testing are available as a retainer, scoped separately from the migration.
  • Retesting of rebuilt rules and pipelines can be included in the written scope so changes to presets are checked before they reach production.
  • Ask any provider to confirm in writing who maintains rule sets after handover, how upgrades are tested, and what the retainer covers.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.