AISOQL for Salesforce: security overview

This page is for Chrome Web Store and Edge Add-ons reviewers, and for the Salesforce admins and security teams who approve extensions for their company. It covers version 1.5.2.

In short

  • It changes Salesforce data only when you ask. Everything is a read, except saving one field after you edit it and click Save. It never creates or deletes records, and never changes metadata or settings. Salesforce's own permissions (field-level security, sharing, validation rules) decide what can be changed, exactly as on the record page.
  • Log in as uses Salesforce's own Login As. The button only appears for users with the Manage Users permission, asks first, and opens Salesforce's standard login-as page. Salesforce decides whether it's allowed.
  • The Salesforce session stays in the browser. The extension uses the session of the Salesforce tab the user is already logged into, the same way Salesforce Inspector Reloaded does. That session is only ever sent to the org's own Salesforce API domain. It is never sent to AISOQL, never written to storage, and is held in memory only while that Salesforce page is open.
  • Salesforce data stays in the browser. Record values and query results are shown in the panel and can be exported to CSV on the user's computer. They are not sent to AISOQL.
  • AISOQL only sees what the user chooses to send. That means the text they type or select for an AI action, the field names, labels and types of the object involved, the page address with record IDs removed, and a query row or a component's code when they click to open it in the Code Generator.
  • It can only talk to Salesforce and aisoql.com. The extension's content security policy blocks every other destination, and it loads no code from the internet.

Permissions and why each one is needed

PermissionWhy
cookiesReads the Salesforce sid session cookie of the org the user is viewing, so it can call Salesforce's REST API as that user. It only looks up Salesforce domains.
storageStores the AISOQL access token after the user connects their account (chrome.storage.local, which web pages can't read).
contextMenusAdds Explain with AISOQL when the user right-clicks selected text on a Salesforce page.
clipboardWriteCopies an API name, a query or fixed code when the user clicks Copy. The extension never reads the clipboard.
Host access: Salesforce org domains*.my.salesforce.com, *.lightning.force.com, *.my.salesforce-setup.com, *.salesforce.mil, *.force.mil only. Shows the AISOQL tab on the org's pages and calls the org's REST API. Not *.salesforce.com or *.force.com as a whole, so Salesforce's marketing, Help, Trailhead and login sites and customer-built sites are out of reach.
Host access: aisoql.comThe AI actions and the Code Generator hand-off, for the connected AISOQL user.

The extension does not request tabs, webRequest, scripting, history, downloads, <all_urls> or access to any non-Salesforce website.

Where it runs

The AISOQL tab is added only to Salesforce org pages: *.my.salesforce.com (including sandboxes and scratch orgs), *.lightning.force.com, *.my.salesforce-setup.com and the government *.salesforce.mil and *.force.mil domains. Every Salesforce org has a My Domain address, so these are the only hosts the extension can access at all. Help, Trailhead, login pages, Visualforce pages (*.vf.force.com) and Experience Cloud sites (*.my.site.com) are out of its reach, because anyone can host pages on some of those. It runs in the top-level page only, not inside frames, and builds its tab and drawer without HTML strings.

How it reaches Salesforce

  1. It reads the sid cookie for the page's domain. On Lightning pages, where that cookie can't call the API, it finds the session cookie of the same org (matched by organization ID) on that org's my.salesforce.com API domain.
  2. Before using a session, it checks that the destination is a Salesforce org API domain. Any other destination is refused in code, and the content security policy blocks it as well.
  3. Requests omit cookies, refuse redirects, and only go to paths under /services/data/ (plus /services/oauth2/userinfo, to know which user is logged in).
  4. All requests are GET, with one exception: when the user edits a field and clicks Save, a single PATCH to /sobjects/<Object>/<Id> sends that one field. Before showing the pencil, the extension checks the field is updateable for this user (field-level security) and that the user can edit the record (sharing). Salesforce checks both again, plus validation rules, when saving.

Users and Log in as

The Users tab searches users by name, username or email, and filters by profile and role. Search text is escaped before it goes into the query. Log in as is shown only when the logged-in user has the Manage Users permission, never for themselves or inactive users, and only after they confirm. It opens Salesforce's standard address for this (https://<org>.my.salesforce.com/servlet/servlet.su), the same one Setup's Users page uses. The page script only follows that exact kind of address on a Salesforce org domain. Salesforce decides whether the login is allowed (org setting "Administrators Can Log in as Any User", or the user granting access) and records it in Setup Audit Trail.

Orgs that turn on Salesforce's API Access Control block the extension, as they do every client that isn't on their approved list. That is the expected behavior.

What is sent to AISOQL, and when

Nothing is sent until the user connects the extension to their AISOQL account and clicks an AI action:

ActionWhat is sent
Write query (SOQL tab)The plain-English request, the object name, its field names, labels and types, and any fields the user picked.
Explain errorThe error text the user selected or pasted, the optional "what were you doing" note, and the Salesforce page address with record IDs replaced by {id}.
Open in Code GeneratorThe object name and its field names, labels and types (or only the fields the user picked).
Click a SOQL result rowThat row's values, to give the Code Generator context.
Use in AISOQL (Components or Automation tab) or Pull into AISOQL (on an automation's own page)That item's name, object and source: an Apex class's or trigger's code, a validation rule's or formula field's formula, a flow's or workflow rule's metadata as XML, an LWC's or Aura component's files, or a Visualforce page's markup.
Account infoThe access token, to show the user's email and token balance.

Record values and query results are never sent on their own, only a row the user clicks, and the Salesforce session is never sent. AISOQL processes these requests like any other AI request on aisoql.com; see https://aisoql.com/privacy#browser-extension. AI results are shown as suggestions for the user to read and copy. The extension never applies them to Salesforce.

Components and the Automation tab use read-only queries: flows and Process Builder processes (FlowDefinitionView, and Flow metadata in the Tooling API), validation rules, workflow rules, Apex code, Lightning Web Components and Aura components (Tooling API), and Apex triggers, approval processes, assignment rules, duplicate rules and Visualforce pages (REST API). Apex classes are matched to an object by searching their code for the object's name in the browser.

Connecting to an AISOQL account

  • The user signs in to aisoql.com (with two-factor sign-in if they've turned it on) and gets a one-time connect code at Settings > Browser extension. The code works once, for 10 minutes. Code attempts are rate limited.
  • The extension swaps the code for a random 256-bit access token. AISOQL stores only the token's SHA-256 fingerprint, never the token itself.
  • API calls send the token in an Authorization header and carry no cookies, so they can't be triggered by other websites (cross-site request forgery).
  • Each account keeps at most 10 connected browsers. Tokens unused for 90 days stop working. Settings > Browser extension lists every connected browser with a Disconnect button. Disconnecting from the extension or from the website revokes the token immediately.
  • Connects and disconnects are written to AISOQL's audit log. AI calls are rate limited per browser, and API responses are marked Cache-Control: no-store.

Protections inside the browser

  • The panel can't be embedded by other pages. It is a web-accessible page with use_dynamic_url, so its address changes every browser session and other pages can't load it. It also refuses to run unless it was opened from the AISOQL tab on a Salesforce org page.
  • Page scripts can't talk to the panel. The tab and drawer live in a closed shadow root. The content script and panel share a random per-page secret, and the panel ignores any message without it.
  • No remote or dynamic code. All code ships in the package. There is no eval, no remote scripts and no minification. The content security policy is script-src 'self'; object-src 'none'; base-uri 'none'; form-action 'none', with connect-src limited to Salesforce domains and https://aisoql.com.
  • Untrusted text is shown as text. Salesforce values, error text and AI output are inserted with textContent, never as HTML.
  • Safe CSV export. Text values that start with =, +, - or @ are prefixed with ' so spreadsheet apps don't run them as formulas.
  • Links it opens are checked. The Code Generator hand-off only opens https://aisoql.com/ addresses, and Log in as only follows Salesforce's own login-as address (checked in the panel and again in the page script).

What it doesn't protect against

  • A computer that's already compromised, or another extension with broad permissions, can read the same Salesforce session from the browser. This is true of every Salesforce browser tool.
  • Anyone using the browser can use the connected AISOQL account's tokens, and act in Salesforce as the logged-in Salesforce user, just as they could on the Salesforce pages themselves. Disconnect browsers you no longer use.
  • Field edits save immediately when the user clicks Save. There is no undo beyond Salesforce's own field history, if the org tracks it.
  • Text the user sends to an AI action may contain sensitive information if they select or type it. Only send what you'd be comfortable sending to aisoql.com.

How it was tested

  • An end-to-end test loads the real extension in Chromium against a stand-in Salesforce org and the real AISOQL server. It checks every tool, the token charges, field editing (only editable fields get a pencil, only that field is sent, Salesforce's validation errors are shown), the Components list, Users search with escaping, Log in as asking first and opening only Salesforce's login-as page, and these attacks: a page script sending the panel a fake message, another page loading the panel directly, and the panel trying to send data to an outside website. All three are blocked.
  • API tests cover the connect code (single use, expiry, wrong codes), token revocation, 90-day expiry, the 10-browser cap, audit logging, no-cache headers, token charges and refunds, and that one user can't open another user's Code Generator hand-off.
  • Unit tests cover which domains count as Salesforce orgs and API hosts, ID removal from page addresses, and CSV formula protection.

Reporting a security problem

Email admin@aisoql.com with the details. Please don't post it publicly until we've had a chance to fix it. We aim to reply within two business days.

See also the privacy policy. AISOQL is independent and not affiliated with Salesforce, Inc.

Before you go, try one generation free

Describe a trigger, class or component and get a real SFDX project with its test class back. New accounts get 25 free tokens and no credit card is needed.

Want more? AISOQL Pro is $9.99/month when you subscribe by December 31, 2026, and that price stays locked in.

Sign up free Get a demo for my team