The Salesforce Source Code Scanner is the Checkmarx static scanner that Salesforce hosts on the Partner Security Portal, and its report is required for any security review submission that includes a Salesforce package or component. It reads your Apex, Visualforce and Lightning code. You get three runs per package version with the review fee, and a managed package now also needs a Salesforce Code Analyzer report next to it, per the Source Code Scanner page and the Code Analyzer scan page.
For a SaaS company, this report covers the code that runs inside your customers' orgs. That is the native integration enterprise customers asked for, the package that syncs their records with your product. You build the package, pass review, publish the listing, then scan again for every version you resubmit. Because the run count is fixed, the order you scan in matters more than the scanner itself. Appnigma's marketplace apps service covers this path, with "Salesforce security review preparation and responses" included.
Updated October 2026. Checked against the Salesforce ISVforce Guide and the Partner Security Portal FAQ. The earlier version sent readers to the Chimera scanner for external endpoints and left out Code Analyzer. This update removes Chimera, which Salesforce retired in June 2025. It adds the Code Analyzer requirement, who can log in to the portal, how to plan the three runs, and which Checkmarx findings you have to answer.
Which submissions need a Checkmarx report
Salesforce sets the rule by what you submit, not by how big the package is. The portal page says the report is required "in any security review submission that includes a Salesforce package or component," and "They're not required for mobile clients or API solutions." The Required Materials page breaks it down by solution type.
| What you submit | Checkmarx report | Code Analyzer report | DAST report on your servers |
|---|---|---|---|
| Managed package that stays inside Salesforce | Required | Required for managed packages | Not listed |
| Managed package that calls your own API | Required | Required for managed packages | Required |
| API-only solution, no package | Not listed | Not applicable | Required |
| Marketing Cloud app | Not listed | Not applicable | Required |
Most SaaS integrations sit in the second row. A package that calls your backend through a Named Credential is Salesforce code plus an external service, so you submit all three reports. The Checkmarx scan never touches your servers. The scanner page says it "doesn't check external endpoints," and that gap is what the web application scanner report fills.
One cell in the official table reads differently from the portal page. Required Materials marks a Checkmarx report for "Solution with a Mobile Client," while the portal page says mobile clients don't need one. If your submission has both a package and a mobile app, the package alone triggers the requirement, so include the report and the question goes away. A package with no Apex, Visualforce or Lightning code at all is the other edge case. The Partner Security Portal FAQ lets you "upload a document stating that your package doesn't contain any code" in place of the report.
Do you need Checkmarx, Code Analyzer, or both?
For a managed package, plan on both. The Code Analyzer scan page says the Code Analyzer scan "is in addition to the scan that you must complete using the Source Code Scanner, also referred to as the Checkmarx scanner." The Test Your Entire Solution page reads looser. It says "If your solution isn't a managed package, or you choose not to use Code Analyzer, you can access the Source Code Scanner." Read on its own, that sounds like a choice between the two. Read with the other two pages, the safe plan is to submit both reports for a managed package, since an extra report costs you nothing and a missing one costs a review cycle.
Code Analyzer is not a new name for Checkmarx, though some forum answers say so. They are separate scanners with separate reports, and the review asks for each. The two tools do different jobs in practice. Code Analyzer runs on your laptop or in CI with no run limit, so it is the scanner you use all through development. The review command on the Code Analyzer page is a single line.
sf code-analyzer run --rule-selector AppExchange --rule-selector Recommended:Security --output-file CodeAnalyzerReport.htmlThe same page says "it's not necessary for the scans to be 100% passing," as long as you fix what you can and document the rest. Checkmarx is the scan you save for the end. Salesforce's own advice on the portal page is to run another tool "as you develop" and to "Reserve your three runs to create the scanner report that you include in your security review submission." Our Code Analyzer guide covers the rule selectors and setup.
How to get a scan from the Partner Security Portal
Access goes through your partner account, not a public sign-up. The login page says "you must be a Salesforce ISV partner" with a Partner Community account, and the Dev Hub or packaging org that holds your work "must be a Salesforce Developer Edition org." You connect that org in the Partner Console under Technologies, then Orgs, then Connect Technology. Then you log in to the portal with the same org's credentials. The user also needs the Author Apex permission.
Three more conditions decide whether the scan can start. The version has to be managed. The Partner Security Portal FAQ says "The package must be managed-beta or managed-released." For second-generation packages that means you "promote" the version first. The FAQ adds that "Only the last 10 versions of any given package will show up in the portal." For 2GP you log in from "the Dev Hub org you created the packages with." The version also has to be linked, because "Before you can scan a package version with the Source Code Scanner, you must link the version to an AgentExchange listing." AgentExchange is the new name for AppExchange, so older guides call this an AppExchange listing. The run count comes next. "Three runs per solution version are included in the security review fee," and anything beyond that, including scanning code that isn't packaged yet, means you "purchase a license from Checkmarx."
Here is how the three runs usually get spent when a team plans them, as arithmetic from that limit rather than a rule Salesforce sets. Run one is a baseline on the release candidate after Code Analyzer is clean. Run two confirms the fixes and the false positive notes. Run three is the report you attach. A team that scans every pull request in the portal uses all three in the first week and then needs a new package version or a Checkmarx license to scan again.
Which Checkmarx findings you have to answer
The bar for Checkmarx is stricter than for any other scanner in the review. Salesforce's false positives page says the results requiring attention are "All issues regardless of severity level that aren't labeled 'Code Quality'." A low severity sharing finding needs an answer just as much as a high one. For DAST scanners, by contrast, only critical and high findings need action.
Every finding you keep needs a fix or a written response. The page asks for the "Location" and an "Explanation" for each item, using Salesforce's False Positive Documentation template, and it ends with a plain rule. "If you can't submit justifiable false positive documentation, rework the flagged code to meet security standards." Salesforce publishes a worked example that shows the three findings integration packages tend to hit. FLS Update paths are answered by naming the class that checks field access. Sharing Violation classes are fixed by switching to with sharing or inherited sharing. A Stored XSS path is closed by removing escape="false".
Those three map closely to how a sync package is built. Code that writes records it pulled from your API, batch jobs that run without sharing, and pages that render data from an outside system are where the findings collect.
One case catches modern packages out. If your Apex enforces access with WITH USER_MODE or AccessLevel.USER_MODE, the Apex Developer Guide says Checkmarx "isn't updated with this new Apex feature." Until it is, the scanner "can generate false positives for field or object-level security violations that require exception documentation." So a correctly written package can still come back with FLS findings. Answer each one with the line that runs in user mode and a link to that note, rather than rewriting working code back to the older describe checks.
Trailhead words the severity bar a little differently. Its prepare unit says to fix "Any findings classified as Low, Medium, or High" and to ignore "Informational warnings." Answering everything that isn't Code Quality or informational meets both readings.
Is Chimera still part of the Partner Security Portal?
No. Chimera was the hosted scanner Salesforce once ran for partners' external endpoints, and it has been retired. The Partner Security Portal FAQ says "Salesforce WILL NOT provide any support for Chimera DAST scans after June 16, 2025," and "Partners can use a DAST scanner of their choice." The portal now hosts only the Checkmarx scanner and office hours bookings, as the Partner Security Portal page describes. You now run the scan of the servers your package calls yourself. Salesforce names ZAP and Burp Suite among the tools it accepts. The Qualys SSL scan guide covers the TLS side of the same hosts.
Mistakes that waste your three scans
Each of these costs a Source Code Scanner run or a review cycle on SaaS submissions.
- Scanning before Code Analyzer is clean. The first Checkmarx run then reports problems a free local scan would have shown.
- Scanning a version you won't submit. The runs belong to the package version, so a scan of last week's build doesn't carry over.
- Scanning an unpromoted 2GP version or an unlinked one. The portal lists only managed-beta or managed-released versions, and only after the version is linked to the listing.
- Answering only the high severity findings. Checkmarx findings need a response at every severity except Code Quality.
- Filing a false positive without a location. Salesforce asks for the code location and an explanation for each item.
- Expecting Checkmarx to cover your API. It reads code inside Salesforce only, so the servers need their own DAST report.
Frequently Asked Questions
How many Checkmarx scans do you get for the Salesforce security review?
Three runs per package version, included in the security review fee. More runs, or scans of unpackaged code, need a license bought from Checkmarx.
Is Checkmarx required if I already ran Salesforce Code Analyzer?
For a managed package, yes. Salesforce's Code Analyzer page says that scan is in addition to the Source Code Scanner scan, so submit both reports.
Does the Source Code Scanner check my external API?
No. It scans Apex, Visualforce and Lightning code only. Endpoints outside Salesforce need a DAST report from a scanner such as ZAP or Burp Suite.
Who can log in to the Partner Security Portal?
Salesforce ISV partners with a Partner Community account whose Dev Hub or packaging org is a Developer Edition org connected in the Partner Console. The scanning user needs Author Apex.
Can Appnigma help us get through the security review?
Yes. Appnigma's marketplace apps service includes "Salesforce security review preparation and responses" alongside building the native app. Approval timing stays with Salesforce.
About the author
Sunny Chauhan is the co-founder and CEO of Appnigma AI, which builds and maintains customer integrations and native Salesforce and HubSpot apps for B2B SaaS teams. Before Appnigma, he was on Salesforce's AppExchange team, where he worked with more than 300 SaaS partners. He has spent close to a decade on the Salesforce platform, including work at Zennify, and holds Salesforce certifications including Platform Developer II, Platform App Builder, Administrator, Data Cloud Consultant, and AI Associate.
Related Articles
- The Salesforce security review guide for SaaS teams
- Salesforce Code Analyzer for managed packages
- Which web application scanner the security review needs
- What a Qualys SSL scan checks before security review
- The AppExchange security review, step by step
- What the security review costs
- Security review for a managed package
Sources
- Salesforce Developers, ISVforce Guide, Source Code Scanner on the Portal
- Salesforce Developers, ISVforce Guide, Scan Your Managed Package with Salesforce Code Analyzer
- Salesforce Developers, ISVforce Guide, Test Your Entire Solution
- Salesforce Developers, ISVforce Guide, Required Materials for Security Review Submission
- Salesforce Developers, ISVforce Guide, Log In to the Partner Security Portal
- Salesforce Developers, ISVforce Guide, Partner Security Portal
- Salesforce Developers, ISVforce Guide, Document Your Responses to False Positives
- Salesforce Developers, ISVforce Guide, Example Responses to False Positives in Checkmarx Scan Results
- Salesforce Partner Security Portal, FAQ (Chimera Sunset and DAST Scan)
- Apex Developer Guide, Set an Access Mode for Database Operations
- Trailhead, ISV Security Review, Prepare for the Security Review