Why Salesforce penetration testing cost varies so much between quotes
If a customer security review, a launch, an insurer or a due diligence request has asked for a Salesforce penetration test, you need a budget and a timeline before you can commission one. Salesforce penetration testing cost is not published by Salesforce, which has no public price for testing its customers' environments. Cost follows from the written scope agreed under the Salesforce Security Assessment Agreement, so two quotes for the same org can differ widely simply because they describe different work. Treat any single number without a scope behind it as a guess.
Most of the effort goes into the places where Salesforce orgs usually fail: sharing rules and profile and permission set access that expose records to the wrong users, authentication settings such as session, login and multi-factor controls, and custom Apex, Lightning components and integrations that the platform does not review for you. Each area needs different skills and different amounts of time, and the number of users, roles, objects, connected apps and custom integrations determines how much of each area a tester must cover. Ask each provider to list these areas and state how many they will examine, so you can see where the quote's hours go.
The quote should also show how the work is split between automated and manual testing. The agreement allows commercial off-the-shelf tools alongside manual inspection, and automated testing is restricted to a fixed weekend window, which affects scheduling and total duration. Confirm whether the quote covers the written report, which the agreement requires to include reproduction steps and HTTP requests and responses, plus raw scanner output where scanners are used, and whether it includes a retest of fixed findings and time to restart if Salesforce pauses an assessment. The Salesforce Security Assessment Agreement sets these terms, so ask each provider to show how its quote follows them.
Scope decisions that set the size of a Salesforce test
A Salesforce quote follows from what is in scope, so the scoping inputs below determine most of the effort. Agree each one in writing before pricing, because each adds review time, test cases and reporting.
Which orgs and sandboxes
List every org, sandbox and Experience Cloud site you want tested, and state which one is the test target. Testing must stay on your own environment, and each additional org adds configuration review, access checks and separate evidence. Confirm whether production is in scope, since the Salesforce Security Assessment Agreement restricts testing during upgrades and maintenance windows, which can affect when a non-production copy is usable.
Assessment AgreementCustom Apex and Lightning components
Custom code is usually the largest variable in the effort. Count the Apex classes, triggers, Visualforce pages and Lightning components that handle user input, sharing, or data access, and ask for a code inventory before quoting. Salesforce provides no feedback on customer-developed code, so the tester must provide the remediation guidance for these findings, which adds reporting time.
Integrations and connected apps
Each integration, middleware connection, named credential and connected app adds an interface to test, including token handling and the data it exchanges with other systems. Agree whether third-party systems on the other end are in scope, because those systems fall outside your Salesforce environment and need their own authorization. Ask for a list of integrations with their authentication methods.
Profiles and permission sets
Access testing scales with the number of user profiles, permission sets and sharing rules. Ask how many profiles and permission sets exist, which roles hold administrative or data export rights, and whether field-level security is to be reviewed across objects. Privilege escalation is prohibited under the agreement, so access checks must be designed to confirm exposure without attempting it.
Mobile and Experience Cloud sites
Mobile apps and Experience Cloud sites each add a distinct attack surface and their own test cases, including guest user access and sign-in flows. Decide whether they are included now or in a later phase, because each one changes the number of user journeys and the reporting. Confirm which platforms and app versions are used so the test covers what your users actually run.
Prohibited targets and exclusions
Write the exclusions into the scope document. Salesforce IP addresses, lead capture, sign-up and contact forms are not to be tested under the agreement, so remove them from your target list before quoting. Confirm that the tester will raise a stop request if a target falls outside the agreement, since excluded items found late in a test can change the schedule and cost.
How the engagement runs from scoping to retest
The sequence turns a Salesforce test into a bounded, evidenced engagement: the customer's own environment, the agreement's conditions and the timing rules are settled before any testing starts, and each stage ends with a documented output the customer can check.
Agree written scope and rules of engagement
The customer and the tester agree in writing which org, environments, user roles, integrations and custom code are in scope, and confirm that the work follows Salesforce's Security Assessment Agreement. The tester is paid for the scoping work, which sets the manual effort and the amount of automated testing. The step closes when both parties sign a scope document that lists exclusions, including prohibited test types and any lead capture, sign-up or contact forms, and that names the Salesforce IP addresses as out of bounds.
Confirm the customer's own environment and blackout windows
The customer confirms which Salesforce instance and sandbox are being tested and that the customer owns or controls them. The customer also checks Salesforce release and maintenance calendars and any product-specific blackout windows, because testing is not allowed on the instance during a major upgrade or maintenance window. The output is a dated testing calendar that the tester has accepted, with named contacts for stopping work if Salesforce or the customer asks.
Map roles, permissions and custom code
The tester reviews the org's profiles, permission sets, sharing model, connected apps and custom Apex, Lightning components and flows, using the customer's documentation and interviews with administrators. This is manual work, and it sets how much of the effort goes to authorization logic. Salesforce does not give feedback on customer-developed code, so the tester must be able to explain findings in this context. The output is a test plan that lists the user roles and workflows to be exercised.
Run manual testing with commercial tools
The tester carries out manual inspection of the application logic, access checks and data exposure, and runs commercial off-the-shelf tools where they add coverage. Server-side logic can be checked against the relevant requirements in OWASP ASVS, such as access control, input validation and session handling, so that results map to a recognized standard. Manual work is the larger share of effort in most engagements and is priced from the test plan, not from a Salesforce rate. The output is a set of working notes with every test attempt, including those that found nothing.
Run automated testing inside the weekend window
Any automated scanning is scheduled only from Friday 21:00 PST through Sunday 23:59 PST, as the agreement requires, and it is stopped at once if the customer or Salesforce asks. The tester keeps raw scanner output for the report. Because this window is fixed, scanning can add elapsed time even when its effort is small, so the schedule should be agreed before work begins. The output is a log of scan dates, tools, configurations and any service impact observed.
Validate findings and write the report
The tester confirms each finding by reproducing it, rates severity, and writes the report the agreement requires: a findings summary, severity, reproduction steps, and the HTTP requests and responses that show the issue, with raw scanner output where scanners were used. Remediation advice comes from the tester because Salesforce does not review customer code. The output is a report the customer can give to its security and audit teams, with validated findings ready for submission.
Submit validated findings to Salesforce
Where a finding concerns the Salesforce platform rather than the customer's own configuration or code, the customer submits the validated finding through Salesforce's security contact page, as the agreement requires. The customer keeps the submission record. The step closes when the customer holds a copy of what was sent and the tester confirms that the submitted content matches the validated report. Customer-side findings stay within the customer's own remediation plan.
Retest fixes and agree restart terms
After the customer fixes findings, the tester retests each one and records whether the fix works, using the same reproduction steps where they remain valid. The retest is agreed in the quote, along with how it is handled if Salesforce stops or blocks an assessment, since the agreement allows Salesforce to require a stop at any time. The output is a retest report that closes each finding as fixed, open or accepted, and that states what was not retested.
What raises or lowers the price and the calendar
This table compares each driver of a Salesforce penetration test against how it changes effort and calendar time under the Security Assessment Agreement. Read it as a scoping checklist: the drivers that add the most work are usually the ones you can narrow before testing starts.
| Driver | Why it changes cost or effort | How to keep it efficient |
|---|---|---|
| Number of orgs and sandboxes | Each org or sandbox in scope is a separate environment to assess, so effort grows with the count and with differences in configuration between them. | Agree which orgs and sandboxes are in scope in writing, and test a representative set where the configuration is shared. |
| Custom code volume | Salesforce gives no feedback on customer-developed applications or custom code, so the tester must review Apex, Lightning components and custom logic and provide remediation guidance. | Provide a current code inventory and identify the custom components that handle sensitive data or external calls. |
| Integrations and connected apps | Connected apps, named credentials and middleware add authentication paths and data flows that need review, and each one adds test cases. | List every connected app and integration with its auth method and data scope before quoting. |
| Roles and profiles tested | Each profile, permission set and role hierarchy needs checks for access and privilege boundaries. The agreement prohibits privilege escalation testing, so access checks must be designed within those limits. | Limit testing to the profiles that hold sensitive data or admin rights, and confirm the permitted checks with the tester before work begins. |
| Manual share versus automated share | The agreement allows commercial off-the-shelf tools plus manual inspection, and the manual share is a quote variable. Manual work can run any day, while automated testing is limited to Friday 21:00 PST through Sunday 23:59 PST. | Ask the tester to show how many hours are manual and how many automated, and to schedule the automated work inside the weekend window. |
| Blackout windows for upgrades and maintenance | Testing is not allowed on the instance during a major upgrade or maintenance window, and Salesforce may set product-specific blackout windows. Each blackout can move the calendar. | Check Salesforce release and maintenance dates for your instance and build buffer days into the schedule. |
| Reporting depth and evidence | The agreement requires a written report with severity, reproduction steps and HTTP requests and responses, plus raw scanner output if scanners are used. More findings and more evidence mean more reporting time. | Ask for the report format up front and agree how duplicate findings and informational items are handled. |
| Retest scope and restart after a halt | Salesforce can require an assessment to stop if it judges it harmful to its service, and can block or disconnect access. A halt can add re-approval, restart and retest time. | Agree in the quote how a halt is handled, whether restart is billed separately, and what a retest of fixed findings covers. |
What the written report must contain and what the quote should include
The Salesforce Security Assessment Agreement sets the minimum content of a report, and that content drives much of the reporting effort in a quote. The cards below cover what the report must hold, who writes the remediation guidance, how retests and summary letters are handled, and what a quote should spell out before work starts.
Required report content
The agreement requires a written report with a findings summary, a severity for each finding, reproduction steps, and the HTTP requests and responses behind each finding. Reporting effort grows with the number of findings and with how much evidence each one needs, so the quote should state the report format and the level of evidence it includes. Ask the tester to show a redacted sample report before you commission the work.
Assessment AgreementRaw scanner output
If scanners are used, the agreement also requires the raw scanner output alongside the written report. Commercial scanner exports can run to many pages and need triage, so a tester should confirm how output is filtered, de-duplicated and labeled. The quote should say whether raw output is delivered as is, and whether the tester verifies each automated finding by hand before it reaches the report.
Remediation guidance for custom code
Salesforce states that it gives no feedback on customer-developed applications or custom code. Remediation advice for Apex, Lightning components, flows and integrations therefore has to come from the tester, which requires developer-level review time. Confirm that the quote includes fix guidance for each custom finding, and ask who will answer follow-up questions from your developers after the report is delivered.
Retest results
Retesting confirms that a fix works, and it is usually priced separately from the first test. The quote should state how many retest rounds are included, how retest evidence is recorded, and how long after delivery the tester will retest. Because Salesforce can stop or block an assessment, the quote should also say how a paused or restarted assessment is billed and reported.
Summary letter for reviewers
Many customers and auditors ask for a summary of the test rather than the full report, which can contain sensitive detail. A tester can prepare a summary letter describing scope, dates, method and retest status, but it is not an audit report or certification. Confirm with your customer or auditor whether a letter from the tester satisfies their specific reviewer, and agree its contents and who may receive it before the test starts.
Scope and assumptions in the quote
A quote should list the instances, objects, integrations and user roles in scope, the manual and automated share of the work, and the testing windows the agreement allows for automated testing. It should also name what is excluded, such as Salesforce's own infrastructure and any blackout windows. Ask for these assumptions in writing, because a change to any of them changes the effort and the schedule.
How the cost changes by Salesforce product area
Core configuration is usually the largest share of the declarative surface: profiles, permission sets, sharing rules, role hierarchy, field-level security, reports and dashboards, and standard flows. Most of the effort goes into access-control analysis, because the question is whether a user can reach records or fields they should not see. That analysis is manual and scales with the number of profiles, permission sets and objects in scope, so a large org with many business units costs more to assess than a small one even when the code footprint is similar. Reporting effort grows the same way, since each access issue needs reproduction steps and HTTP requests and responses under the agreement.
- Permission and sharing model: Ask the provider to price the number of profiles and permission sets reviewed separately from the test itself.
- Object and field coverage: Confirm how many standard and custom objects are in scope and whether sensitive fields are sampled or fully checked.
- Automated scanning window: Scanner runs are limited to the weekend window, so ask how many automated sessions are planned and how they are scheduled around business needs.
- Manual access-control testing: Ask for an estimate of the hours for role-by-role testing and whether it is priced per persona.
- Reporting to the agreement: Confirm that the quote includes the written report and any raw scanner output.
Check that the quote names the profiles, permission sets and objects in scope, since these set most of the manual effort.
Experience Cloud sites are internet-facing, so they add public attack surface that internal users never reach. Testing them involves guest user access, sharing and profile settings for unauthenticated users, self-registration, login flows and the data a guest user can query. The agreement excludes testing of lead capture, sign-up and contact forms, so the provider must agree which site pages fall outside the test and which are in. That exclusion changes the scope and the preparation work, because a site built around forms may have fewer testable pages than expected and a site with custom authentication may need more.
- Guest user exposure: Ask the provider to price a separate review of guest profile and sharing settings for each site.
- Excluded forms: Confirm in writing which lead capture, sign-up and contact forms are excluded, and how the provider will record them as out of scope.
- Multiple sites and domains: Each site may have its own guest configuration, so ask whether the price covers one site or all sites.
- Authentication flows: Ask for a separate line for any custom login, identity provider or multi-factor step.
- Public page inventory: Confirm who builds the list of public pages and whether that work is in the quote.
Check how many sites and public pages the provider counted, since this figure usually decides how much manual testing is needed.
Custom Apex classes, triggers, Lightning Web Components and Aura components are customer-developed code, and Salesforce states it provides no feedback on this code. That means the provider must give remediation guidance itself, and the cost of code review rises with the amount of custom code and with the number of trust-boundary points where data enters or leaves. Code review is a different skill from configuration review, so the quote should show whether the work is done by a person who reads code or only by a tool. Findings in custom code also need developer-level detail in the report, which adds reporting time.
- Lines and components reviewed: Ask for the count of Apex classes, triggers and Lightning components in scope and whether the review is full or sampled.
- Sharing and authorization logic: Confirm whether the review checks
with sharingandwithout sharingusage and authorization checks in custom code. - Tool output and manual review: Ask how much work is commercial tool output and how much is manual inspection, since the agreement allows both.
- Remediation guidance: Confirm that fix guidance is part of the report and whether a developer walkthrough is priced separately.
- Retest of code fixes: Ask for the cost of retesting after developers change code.
Check whether the quote states the code volume in scope, since code review effort is hard to estimate without it.
Integrations with middleware, external APIs, connected apps and named credentials extend the test beyond Salesforce itself. The Security Assessment Agreement prohibits testing Salesforce IP addresses and bars denial of service and lateral movement, so the provider must separate what is inside the Salesforce customer environment from third-party systems, which need their own authorization. The integration layer adds work on token handling, callback URLs, data mapping and error handling. Each external system in scope adds preparation to agree its owner, rules and test windows, and that coordination cost often sits outside a Salesforce-only quote.
- Third-party systems: Ask the provider to price any external API or middleware testing separately, and confirm the owner of each system has agreed to it in writing.
- Connected apps and tokens: Confirm whether OAuth configuration, token lifetimes and connected app settings are reviewed.
- Named credentials and endpoints: Ask how many outbound endpoints are in scope and how credential storage is checked.
- Data flow mapping: Confirm whether the provider maps data flows first, since that step drives the number of test cases.
- Coordination with system owners: Ask who arranges approvals and test windows with the owners of the external systems.
Check that the quote lists every integration by name, because an unnamed integration is the most common source of later cost changes.
What you prepare before the quote is accurate
The quote is only as accurate as the inputs behind it, so the first job is to assemble a complete list of orgs and sandboxes that may be tested. Name each production and sandbox org, its purpose, its Salesforce edition and whether it is a Developer, Partial or Full copy. Add an inventory of custom code (Apex classes and triggers, Lightning components, Visualforce pages, flows with external callouts) and every connected app, named credential and external integration. Each item that is missing from the list is either found by the tester during the work, which changes the scope, or never tested, which leaves a gap the report will not mention. Confirm with your Salesforce administrator which of these orgs hold live customer data, since that decides whether any test may touch them at all.
Next, prepare the access and the calendar. Provide test user accounts with agreed roles for each org, such as a standard user, a community or portal user, and a user with elevated permission sets, so that access control can be checked against the roles your business actually uses. Record who may approve a test stop and how it is reached. Salesforce's rules let it require an assessment to stop at any time it judges harmful, and may block or disconnect assessment access, so the quote should state who restarts testing and how long that takes. Name the contact who will submit validated findings through Salesforce's security contact page, and confirm that person can receive and triage the output. Then send the upgrade and release calendar and freeze dates, because testing is not allowed during a major upgrade or maintenance window, and Salesforce reserves the right to set product-specific blackout windows. Agree the weekend windows for any automated work in advance, within the Friday 21:00 PST to Sunday 23:59 PST limit in the Security Assessment Agreement, so that the tester's schedule and yours match.
Complete preparation lowers cost in two ways. A tester who starts with a verified inventory and working test accounts spends less time on discovery and fewer hours on re-scoping, which is often the largest unplanned cost in a Salesforce engagement. Clear freeze dates and named contacts also reduce the risk that a stopped or blocked assessment forces a second mobilization and a retest after the window reopens. Ask the provider to confirm, in writing, which of these items it expects from you and which it will verify itself, and to price any retest against the same inventory so that a fix cycle does not reopen the whole scope.
Salesforce penetration testing cost questions buyers ask
What determines the price of a Salesforce penetration test?
The price follows from the written scope, because no public Salesforce rate exists to anchor it. The main drivers are how many org areas, custom Apex, Lightning components, integrations and profiles are in scope, how much of the work is manual testing, and how much reporting the client needs. Salesforce's Security Assessment Agreement allows commercial off-the-shelf tools plus manual inspection, so the manual share is a quote variable rather than a fixed rate. Ask the provider to itemize scope, manual hours, tooling, reporting and any retest in the quote so you can compare like with like.
Does Salesforce publish a price for penetration testing?
No. Salesforce publishes no public price for penetration testing, so no public rate exists to compare providers against. Any figure you see from a provider reflects their own scope and labor model. Treat a quote as the only reliable number, and ask each provider to state the assumptions behind it, including the org size, the environments covered and the reporting format.
How long does a Salesforce penetration test take, and why is automated testing limited to weekends?
Duration depends on scope and on how much of the test can run automatically. Under the Salesforce Security Assessment Agreement, all automated testing is restricted to Friday 21:00 PST through Sunday 23:59 PST. Manual testing is not confined to that window, so a provider may need to split the work: manual review during the week and automated runs over the weekend. Ask the provider to show the schedule, including the weekend slots, and to name any blackout periods that could push the work back.
Do we need Salesforce's approval before running a penetration test?
No. Since 31 January 2023, Salesforce customers no longer need prior approval to run security assessments of their Salesforce environment. You must still follow the Salesforce Security Assessment Agreement, which sets the permitted techniques, the prohibited tests and the testing window. Submit validated findings through Salesforce's security contact page. Your contract should require the provider to confirm they have read and will follow the agreement before testing starts.
What does the customer need to provide before a Salesforce penetration test starts?
The customer usually provides the following before work begins:
- Written authorization from an accountable owner for the named org or orgs
- Sandbox or test org access, with the production org scope agreed in writing
- Test user accounts across the profiles and permission sets to be assessed
- Data handling rules, including how test data is treated and how it is removed
- Named contacts for escalation and a confirmed blackout calendar for upgrades and maintenance
- Architecture notes for custom Apex, integrations and connected apps
Missing items often cost more time than any single technical test, so ask the provider which of these they need and when.
Can our internal team run a Salesforce penetration test instead of an outside provider?
Your team can run an assessment under the Salesforce Security Assessment Agreement, since prior approval is no longer required. The agreement still requires a written report with a findings summary, severity, reproduction steps and HTTP requests and responses, plus raw scanner output where scanners are used. It also states that Salesforce provides no feedback on customer-developed code, so remediation guidance for custom Apex and components must come from the tester. Decide early whether your team has the skills for that reporting and remediation work, and whether an independent provider is needed for an auditor or customer review.
What does a retest cost, and how do Salesforce halts affect restart terms?
A retest is usually priced separately from the first test, and its size depends on how many findings are being verified and how much of the original work must be repeated. Salesforce can require you to stop an assessment at any time it judges harmful to its service, and it may block or disconnect assessment access. Your quote should therefore state what happens if testing is halted: how a restart is scheduled, whether it is billed as new work, and what happens to findings already validated. Ask for these terms in writing before testing starts.
Does DeployOpen run Salesforce penetration tests?
DeployOpen runs security testing for applications and APIs, cloud and infrastructure, AI systems and agents, and red teaming, and it scopes enterprise applications under each vendor's testing rules. A Salesforce test is quoted from a written scope that covers the orgs, the permitted techniques under the Salesforce Security Assessment Agreement, the weekend automated window, the report format and any retest. DeployOpen does not issue audit reports or certifications. Where an auditor or customer needs an independent opinion, confirm with them which report they will accept.
What to ask for in a Salesforce test quote before signing
A comparable Salesforce quote should itemize the scope statement, the rules of engagement the provider has acknowledged, and the split between manual and automated effort. The scope statement should name the org or orgs, the custom code, integrations and user roles in play, and it should state what is excluded, such as Salesforce's own infrastructure and the lead capture, sign-up and contact forms that the Security Assessment Agreement prohibits testing. Ask the provider to confirm in writing that it has read the agreement and will follow it. Because Salesforce sets no public rate and lets customers use commercial tools plus manual inspection, the manual share is the main variable in the price, so the quote should state hours or effort for each and state how much of the automated work will run inside the Friday 21:00 PST to Sunday 23:59 PST window.
The quote should also name the reporting format and the retest terms. Confirm that the report will contain the elements the agreement requires: a findings summary, severity, reproduction steps, HTTP requests and responses, and raw scanner output if scanners are used. Ask whether remediation guidance is included, since Salesforce provides no feedback on customer-developed code, so the tester is the only source of fix advice. Retest should be priced separately or stated as included, with a stated number of retest rounds and a timeline for submitting fixes.
Two terms are easy to overlook and matter most when the test is interrupted. The first is restart terms. Salesforce can require a customer to stop an assessment it judges harmful to its service, and it can block or disconnect assessment access. The quote should say what happens to the fee, the schedule and the remaining effort if that occurs, and who decides when testing resumes. The second is who submits validated findings. The agreement routes them through Salesforce's security contact page, so the quote should assign that task to a named party, normally the customer's security lead, and confirm that the provider will hand over findings in a form ready for that submission.
Before signing, request two sample reports, one of which should be from a Salesforce engagement, and ask the provider to describe its experience running tests under this agreement. Check whether the sample shows the reproduction detail and severity reasoning the agreement expects, and whether the provider can explain how it scheduled automated work around the weekend window and any product-specific blackout windows Salesforce sets. Confirm those blackout dates with your Salesforce admin or account team, because they can change the duration of the engagement.
How DeployOpen scopes, tests, reports and retests Salesforce environments
DeployOpen approaches Salesforce penetration testing cost by fixing the scope in writing first, because the agreed scope decides how much automated testing fits the weekend window and how much manual work the quote must carry. Each engagement is priced from that written scope, the reporting effort Salesforce expects, and the retest terms agreed up front.
How we scope
- Written scope sets which org, sandbox or environment is covered and which features are in or out.
- We list the split between automated testing and manual inspection so the quote can show each component.
- Scope records the prohibited test types and the Friday 21:00 PST to Sunday 23:59 PST automated window.
- Engagements are fixed-scope, so deliverables and timelines are agreed in writing before work starts.
How we build
- We confirm with the client that no major upgrade or maintenance window overlaps the agreed test period.
- Commercial tools and manual testing are combined, and manual effort is sized to the custom code in scope.
- Testing stops if Salesforce requires it, and the plan records how assessment access would be restored.
- Remediation guidance for custom Apex, Lightning components and integrations comes from our testers, not from Salesforce.
How we hand over
- Reports include a findings summary, severity, reproduction steps and HTTP requests and responses.
- Raw scanner output is delivered with the report wherever scanners were used during the assessment.
- Findings are structured so the client can submit validated results through Salesforce's security contact page.
- Reporting effort is itemized in the quote so the client can compare it with other proposals.
How we support
- A retest of agreed findings is scoped and priced in the original written terms.
- Ongoing support, upgrades and continuous testing are available as retainers after the initial engagement.
- Retest timing is set around Salesforce's testing windows and any blackout periods Salesforce announces.
- We help the client confirm current Salesforce testing terms with its account team before each engagement.

