Salesforce penetration testing policy and scope: what you may test

Salesforce customers can assess their own Salesforce environment without prior approval, but only within the Salesforce Security Assessment Agreement. This page explains what a Salesforce penetration testing scope can include, what is prohibited and when automated testing is allowed.

On this page

Why Salesforce penetration testing starts with the rules of engagement

Since 31 January 2023, Salesforce customers no longer need prior approval to run security assessments of their Salesforce environment. That change removes a gate, not the limits. The Salesforce Security Assessment Agreement still defines what you may test, how you may test it, and what is banned, so the scope document is the first decision in any engagement commissioned by a customer review, a launch, an insurer or a compliance framework.

The risks this testing addresses sit mostly inside the configuration and the customizations a company builds on top of the platform. Sharing rules, profiles, permission sets and role hierarchies determine who can see which records, and a misconfiguration there can expose data without any code flaw. Custom Apex, Lightning components, flows, managed packages, connected integrations and public-facing Experience Cloud or Sites pages add further surface. Testing should cover the components the business actually relies on, with the org, the integrations and any web pages named explicitly in the scope.

Scope also has to be checked against Salesforce's list of excluded services, which Salesforce may update from time to time, so confirm the current version before you sign. The agreement permits a web application security assessment of a service and non-intrusive network testing of domain URLs, both only as directly connected to your own account. It rules out testing accounts that are not yours, testing Salesforce IP addresses, denial of service, privilege escalation and lateral movement, and it excludes lead capture, sign-up and contact forms. Automated testing is limited to a defined weekend window, so the scope should state when each activity runs. Ask your provider to map every planned target and technique against these terms in writing before work starts.

What a Salesforce penetration test scope can include

Under Salesforce's Security Assessment Agreement, a customer can assess its own Salesforce environment without prior approval, but only within defined components. Each component forces a scoping decision about accounts, services and domains, and every one must be checked against Salesforce's excluded services list before testing begins.

Web application assessment of a service

The agreement permits a web application security assessment of a Salesforce service as it is directly connected to your own account. The scoping decision is which services and which account configurations are in play, such as custom Lightning pages, Experience Cloud sites or Apex-backed endpoints in your org. Confirm each service is not on the excluded services list, because that list may be updated and must be checked at the time of testing. Record the account and org identifiers in the scope document so the boundary is provable later.

Prior approval ended
31 January 2023
Security Assessment Agreement

Non-intrusive testing of domain URLs

The agreement also covers non-intrusive network testing of your domain URLs, such as the hostnames that point to your Salesforce-hosted sites. The decision here is which domains are owned and controlled by you and which resolve to Salesforce infrastructure. Salesforce IP addresses are excluded, so the scope should list hostnames and confirm that testing traffic will not be directed at Salesforce addresses. Non-intrusive means discovery and checks that do not disrupt service, so set those limits in writing.

Account boundary and third-party tests

Tests may only run against your own accounts, never against accounts belonging to other customers or to Salesforce. This forces a decision about which orgs, sandboxes and integrated accounts are inside the boundary. If a third party performs the test, it must accept confidentiality and security obligations no less restrictive than yours, and you remain responsible for its actions. Write the tester's obligations into the engagement letter and list every org the tester will touch.

MuleSoft CloudHub workers in dedicated environments

When MuleSoft runtimes are part of the integration estate, only CloudHub workers in your dedicated environments may be assessed. The shared worker environment is not in scope. The decision is which runtimes, environments and workers are yours and dedicated, so the scope should name each one and confirm its environment type before testing. Integration endpoints that reach Salesforce data often carry the most sensitive flows, so agree how they are covered and how findings will be reported.

Excluded services and the exclusion list

Salesforce lists services that cannot be assessed in a separate excluded services document, which it may update from time to time. Before any test, the scope owner should check the current version of that list against every service named in the scope. Record the date of the check in the statement of work, because a service that was in scope last quarter may be excluded now. Any change after signing should go through a written scope amendment.

Salesforce security assessments

How to check a planned test against the agreement before it starts

The path starts with the planned test and runs through six checks drawn from the Salesforce Security Assessment Agreement. Any failed check sends the plan back for revision. The target must be the customer's own account, must not appear on Salesforce's excluded services list, must not be a Salesforce IP address, and must not be a lead capture, sign-up or contact form. Automated runs must fall inside the Friday 21:00 to Sunday 23:59 PST window, and the technique must not be on the prohibited list. A remote code execution finding triggers immediate notice to Salesforce and a halt to privilege escalation and lateral movement. This planning aid does not replace legal advice.

Decision path for checking a planned Salesforce test against the agreement before testing begins.

What is banned, timed or excluded during a Salesforce test

The Salesforce Security Assessment Agreement names a set of activities that no test may include, whatever the finding it might produce. These bans shape scope before any tooling is chosen, because a method that is ruled out in the statement of work cannot be used to chase a lead. Under the agreement, a test must not include the following:

  • Denial of service: Any attempt to degrade availability, including load-based techniques, is prohibited. Scope should record that availability testing is excluded.
  • Server reboot attempts: Actions aimed at restarting or disrupting hosts are out of bounds.
  • Installing bots, viruses, trojans or rootkits: Payloads of this kind may not be placed in the environment, even in a test harness.
  • Uploading EICAR files: The standard antivirus test file is also banned, so detection checks must be done another way.
  • Posting test sales leads: Test data must not enter the customer's sales process as real records.

The tester should document, in the rules of engagement, which techniques were considered and excluded, and confirm that the test plan contains none of the listed activities. Keep a record of any incident that approached a banned action, along with the decision taken.

How a Salesforce test is agreed, run and reported under the agreement

This sequence turns a Salesforce testing idea into a scoped, documented and reviewable engagement that stays inside Salesforce's Security Assessment Agreement from the first scoping call to the retest.

  1. Check the scope against the excluded services list

    Before any testing, the tester and the client compare every planned target against Salesforce's excluded services document and the Security Assessment Agreement. The client confirms which services are its own, which are excluded, and which features sit in an area the agreement restricts, such as lead capture, sign-up and contact forms. The output is a written scope that names each in-scope service and states what is excluded and why, signed off by the client's security owner.

  2. Confirm accounts, domains and IP addresses

    The client and the tester confirm that every account, domain and endpoint in scope belongs to the client and is directly connected to the client's own Salesforce account. Any account belonging to someone else is removed from scope, and Salesforce IP addresses are excluded from network testing. The output is a target register that lists each account, domain and integration with its owner, so the auditor can trace every test back to an authorized asset.

  3. Set the timing plan for automated tests

    If automated scanning is part of the plan, the tester schedules it inside the window the agreement allows, which runs from Friday 21:00 PST through Sunday 23:59 PST. Manual testing is not limited to that window. The client confirms who monitors the environment during scans and who can stop them. The output is a timing plan that shows which activities run automated and which run manually, with named contacts for each window.

  4. Test within the permitted techniques and keep a record

    The tester works through the in-scope services using web application security assessment methods and non-intrusive network testing of domain URLs, following the public approach in OWASP web testing guidance. The tester keeps a log of every technique, request category, account used and time, and avoids denial of service, privilege escalation, lateral movement and any testing of other customers' accounts. The output is a dated activity log that the client can match against the agreed scope.

  5. Notify Salesforce immediately if code execution is reached

    If the tester achieves remote code execution, work on that path stops, the client notifies Salesforce immediately, and no privilege escalation or lateral movement follows. The client records the time of discovery, the evidence captured and the notification made. The output is an incident note that proves the agreement was followed at the point of highest risk, and the client's decision on whether testing resumes is documented.

  6. Submit validated findings through the security contact page

    The tester checks each finding for reproducibility and removes unverified or noise results before reporting. The client submits validated findings through Salesforce's security contact page, as the agreement requires, and keeps its own copy of each submission. The output is a findings list with status, evidence references and the submission record, which the client can show to an auditor or customer.

  7. Retest fixed findings and close the record

    After the client applies fixes, the tester repeats the original steps for each finding under the same scope and rules. Findings that are confirmed fixed are closed, and any that remain open or regress are reopened with new evidence. The output is a retest report that links each finding to its fix and its closure status, which forms the final record of the engagement.

What drives the cost and duration of a scoped Salesforce test

This table compares the scope decisions that change the effort of a Salesforce test, and explains why each one matters under the Security Assessment Agreement. Read each row as a question to settle in writing before work starts, because most of the cost and duration follows from these choices rather than from the tester's day rate. Salesforce publishes no price list for testing, so ask any provider to price against the written scope.

Cost driverWhy it matters under the agreementHow to scope efficiently
Customer accounts and environments in scopeTesting is limited to the customer's own accounts, so each additional account or sandbox adds setup, validation and reporting work.List every org, sandbox and domain URL by name in the scope document and remove any that are not yours.
Web services and domain URLsThe agreement covers web application assessment of a service and non-intrusive network testing of domain URLs, so each service needs its own coverage decision.Group services by business function and confirm which ones are directly connected to your account.
Automated testing and the weekend windowAutomated testing is restricted to Friday 21:00 PST through Sunday 23:59 PST, so heavy scanning must fit a fixed window.Decide early which tests are automated, estimate how many hours they need, and plan manual work for the rest.
MuleSoft dedicated environmentsOnly CloudHub workers in the customer's dedicated environments may be assessed, not the shared worker environment.Confirm which runtimes are dedicated before scoping, and exclude any shared workers from the statement of work.
Integrations and custom componentsConnected systems, managed packages and custom Apex or Lightning components can fall outside what the customer may test, and each one adds review time.Identify each integration, mark whether it is owned by you, and check it against the excluded services list.
Forms that must be excludedLead capture, sign-up, contact us and similar form pages are out of scope, so they must be removed from the test plan and the effort estimate.Inventory every public form and record it as excluded so testers do not spend time on it.
Excluded services reviewSalesforce maintains a separate excluded services document that it may update, so the list must be checked on the day testing starts.Ask the provider to check the current list at kickoff and record the date and version they used.
RetestingValidated findings must be submitted through Salesforce's security contact page, and fixes may need a second pass to confirm closure.Agree in advance whether one retest is included and what evidence closes each finding.
Third-party testersA third party must accept confidentiality and security obligations no less restrictive than the customer's, and the customer remains responsible for its actions.Ask for the tester's agreement terms and insurance evidence in the quote, and add any extra legal review time to the plan.

What the client receives and whether it satisfies an auditor or customer

A Salesforce test produces a set of records that show what was agreed, what was tested and what was found. Each item below answers a different question an auditor or customer may ask, and the requesting party decides whether the package meets their requirement.

Signed scope record

This record fixes the Salesforce org, the services and domains in scope, and the test window before any traffic is sent. It should show that each target was checked against Salesforce's excluded services list at the time of testing, since that list can change. Confirm that the record names only the customer's own accounts, because the agreement forbids testing any other accounts and Salesforce IP addresses. A reviewer uses it to judge whether the test stayed inside its agreed boundary.

Security Assessment Agreement

Findings report with reproduction detail

The main report lists each finding with its affected component, the weakness category, a severity rating and enough detail for your own engineers to confirm it. Ask for the rating method in writing, and check that the write-up gives steps that show the issue without including any harmful payload or data beyond what proves it. Confirm the format with the requesting party before testing, because some auditors want a specific template.

Validated findings for Salesforce

Under the agreement, validated findings are submitted through Salesforce's security contact page, which is a separate artifact from the internal report. Only findings that have been confirmed should be sent, and the submission should match the report wording. Keep a record of what was submitted and when, so the customer can show the vendor was informed where the agreement requires it.

Salesforce security assessments

Retest results

After fixes are applied, a retest confirms whether each finding is closed, still open or partly addressed. The retest report should reference the original finding identifiers and state the date and configuration tested. Agree in advance whether retesting falls inside the original fixed scope or needs a separate quote, and whether it must also run in the agreed testing window.

Summary letter of scope and rules

A short letter summarizes the scope, dates, testing approach and the rules followed, including any notice given after remote code execution or any third-party involvement. It helps a customer or auditor review the test without reading the full report. It is a statement of what was done, not an audit opinion, so the requesting party should confirm whether it satisfies their evidence requirement.

Who stays responsible when a third party runs the test

If a third party runs your Salesforce penetration test, the customer remains responsible for what that tester does. Salesforce's Security Assessment Agreement allows a third party to perform the test only if that party is bound by confidentiality and security obligations no less restrictive than the customer's own. Delegating the work does not delegate the accountability. If a tester strays outside the permitted scope, touches another customer's accounts or runs a prohibited test, Salesforce will look to the customer that commissioned the work, not to the tester's firm alone.

In practice, this shapes the contract before any testing begins. Confirm that the engagement letter flows the agreement's restrictions down to the tester, including the ban on testing Salesforce IP addresses, the prohibited test types and the rules on remote code execution. Ask whether the tester will use subcontractors, who they are, and whether those people sign equivalent confidentiality and security terms. Check how the tester will access your org, which credentials and sandboxes will be used, and whether test accounts and any exported Salesforce data are stored, encrypted and deleted at the end of the work. Record who approves a change to scope mid-test, because a tester who adds a target informally creates the same exposure as one who ignores the rules.

Before signing, confirm with your legal and security teams which obligations sit with your organization and which the tester accepts, and make sure your own incident process covers a finding that must be reported to Salesforce through its security contact page. Your legal team should also confirm which terms in your own data handling policy apply to test data. The agreement's text and the excluded services document should be read in full by the people who sign the contract, since the tester's obligations can only be as strong as the terms they are given.

What to check in a provider before you sign a Salesforce test scope

Salesforce testing is governed by a vendor agreement rather than a pre-approval step, so the scope is only as sound as the provider's grasp of that agreement. The cards below set out the decisions to press on before any quote is accepted, each tied to a rule that shapes what may be tested.

Agreement and excluded services read first

Ask the provider to show, before quoting, that it has read the Salesforce Security Assessment Agreement and checked the excluded services document, which Salesforce may update over time. Ask which named services fall outside scope and how the provider will recheck that list on the day testing starts. A provider that quotes without this step is scoping from memory, and the gap usually appears after testing has begun.

Security Assessment Agreement

Automated testing window handling

Ask how automated scanning is confined to the permitted window and who controls the start and stop times. Request a written schedule showing which tools run in that window and which manual activity happens outside it. Confirm that the provider will pause tooling when the window closes, so that scanning does not continue into the rest of the week.

Accounts and domains confirmed in writing

Ask for a written list of the customer's own accounts, org identifiers and domain URLs that will be tested. Confirm that no other tenant, customer account or Salesforce IP address appears anywhere in the target list or traffic plan. Scope changes should be agreed in writing before the provider touches a new asset.

Forms and sign-up pages excluded

Ask the provider to name every lead capture, sign-up, contact us and similar form page it found in the environment, and to confirm those pages are excluded from active testing. Ask how it will handle a form that also feeds other application logic, and whether it will raise that dependency with the customer before testing. Written exclusions make the boundary auditable later.

Remote code execution escalation path

Ask what the provider does if it achieves remote code execution: who it notifies, how quickly, and through which channel. Confirm that testing stops at proof of the condition, with no privilege escalation or lateral movement after the finding. Ask for the escalation steps in writing so the customer can assign an owner before testing starts.

Sample report and retest plan

Ask for a redacted sample report showing how findings, severity and reproduction steps are presented, along with the submission route for validated findings to Salesforce's security contact page. Confirm whether a retest of fixed findings is included in the quote and how long the customer has to request it. A provider unable to show either item should be questioned before signing.

Questions buyers ask before scoping a Salesforce penetration test

Do we need Salesforce's approval before we test our Salesforce environment?

No. Since 31 January 2023, Salesforce customers no longer need prior approval to run security assessments of their own Salesforce environment. The agreement still applies in full, so the test must follow the Salesforce Security Assessment Agreement, and any validated findings must be submitted through Salesforce's security contact page. Approval is not the gate; the scope and rules are. Before work starts, confirm the current wording of the agreement and the excluded services list, because Salesforce may update the excluded services document from time to time.

Can we run automated scans during the business week?

Not under the agreement. Automated testing is restricted to the window from Friday 21:00 PST through Sunday 23:59 PST. Manual testing is not bound to that window in the same way, so the test plan should separate automated activity from manual work and schedule each accordingly. Ask the provider to show how automated tooling is throttled, when it starts and stops, and who monitors it during the window. Scan timing also shapes the cost and duration of the engagement, because a weekend-only automated phase has to be planned around the rest of the work.

Can we test our lead capture, sign-up or contact forms?

No. Lead capture, sign-up, contact us and other form pages are out of scope for testing under the Salesforce Security Assessment Agreement. Teams often assume that a public form on a Salesforce site is part of the application to test, so the exclusion must be written into the scope and checked against the excluded services list before testing begins. If those forms carry business risk, handle them through a separate review with Salesforce or through a different control, such as code review of the form logic within your own environment.

What do we need to provide before the test can be scoped?

The provider needs a clear list of the Salesforce accounts, domains and integrations in scope, and confirmation that each one belongs to your organization. Tests may run only against your own accounts, and no testing of Salesforce IP addresses is allowed, so the provider must verify ownership of every target. Name a technical contact who can approve activity, a contact who can receive urgent notice if remote code execution is reached, and a security contact responsible for submitting validated findings. Check every planned component against the current excluded services document before the scope is signed.

Can our internal team run the Salesforce penetration test ourselves?

Your internal team can assess its own Salesforce environment within the agreement, because no prior approval is needed. The limits are firm, though. Testing must stay within your own accounts, must not touch Salesforce infrastructure or IP addresses, and must avoid denial of service, privilege escalation, lateral movement and the other prohibited actions. Internal teams often lack the time or independence an auditor or customer expects, so decide who signs the report and whether the work must be independent. If a third party performs the test, it must be bound by confidentiality and security obligations no less restrictive than yours, and you remain responsible for its actions.

What drives the cost of a Salesforce penetration test?

The main drivers are the number of accounts, domains and integrations in scope, the depth of manual testing, how much of the work falls inside the weekend automated window, and how much time goes into excluded services checks and scope agreement. Third-party integrations and MuleSoft runtimes add work because only CloudHub workers in your dedicated environments may be assessed, not the shared worker environment. Salesforce publishes no price list for testing, so the cost table in this section explains each component. Ask for a quote that itemizes scope, testing windows, reporting and retest, and states what is one-time and what recurs.

What happens if the test reaches remote code execution?

The agreement requires you to notify Salesforce immediately. The tester must stop, must not escalate privileges, and must not move laterally to other systems or accounts. The engagement plan should name who makes the notification, how fast the internal decision is made, and how evidence is preserved without extending the test. Agree this rule in the rules of engagement before testing, so a finding of this severity does not trigger improvised activity during a weekend window.

How DeployOpen scopes, tests, reports and retests Salesforce environments

DeployOpen starts every Salesforce engagement by checking what the Salesforce Security Assessment Agreement permits for your environment, then agrees the boundary in writing before any testing begins. The work covers your own accounts only, with findings, reproduction detail and fixes documented for your security team and any reviewer who needs them.

How we scope

  • We check the proposed targets against Salesforce's excluded services list before any test is agreed.
  • The written scope confirms which accounts, web application areas and domain URLs are included, and which are excluded.
  • Engagements are fixed-scope, so scope, deliverables and timelines are agreed in writing before work starts.

How we build

  • We agree the test window with you, including whether automated testing falls inside the weekend window Salesforce permits.
  • Prohibited activities such as denial of service, privilege escalation and lateral movement are written into the rules of engagement.
  • Testers exclude lead capture, sign-up and contact forms, and never test Salesforce IP addresses or accounts outside your own.

How we hand over

  • Each finding includes severity, affected component, steps to reproduce at a defensive level and a recommended fix.
  • You receive a report that shows which tests ran, which were excluded and why, so reviewers can confirm the boundary held.
  • Validated findings you choose to submit to Salesforce's security contact page are prepared with the details that process requires.

How we support

  • We retest agreed findings after fixes are applied and document which issues are closed and which remain open.
  • Ongoing support, configuration changes and continuous testing are available as a retainer after the initial engagement.
  • Where a third party performs testing for you, we confirm confidentiality and security obligations are in place before work begins.

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.