Scanner deep dive
Square Analyzer
Open sourceWhat does this analyzer do?
- Purpose
- It helps explain what a credential may be able to do. Atlas describes the analyzer’s code and hasn’t tested a credential here.
- How does it assess access?
- The analyzer asks Square what the key can do, and reports what Square says. Access method details · Source (square.go:158)
- What can I look up?
- Explore the permissions and resource types named in the code.
Built on the Square detector
The detector finds and verifies the key. This analyzer maps it.
1 · Detector finds
Candidates near “EAAA”, 1 pattern.
2 · Detector verifies
GET https://connect.squareupsandbox.com/v2/merchants
200 means verified.
How it verifiessquare.go:82 (opens TruffleHog source on GitHub)square.go:101 (opens TruffleHog source on GitHub)
3 · This analyzer maps
43 permission names across 3 resource types.
Reads from provider
Access model · AI-assisted classification · No credential tested
How Square Analyzer decides what a key can do
This describes how TruffleHog’s code assigns permissions. It is not a statement of what the provider actually grants a particular key.
Reads the scopes from POST /oauth2/token/status.
Reviewed classification: Reads scopes from POST /oauth2/token/status.
Asks the provider what the key can do, from a response header, a token-info endpoint, a claim inside the token or a grants query.
Pinned revision db665f0c24c6 · Confidence high · Classified 2026-11-16
Compare all 44 analyzersParsed source walkthrough · No credential tested
Follow Square Analyzer from inputs to evidence
After a related detector successfully validates a candidate, this analyzer is an optional next layer. The steps below explain code found in this package. They do not run it or establish the access of a credential.
- Input field names
- 1
- Direct HTTP request sites
- 2
- Go implementation files scanned
- 3
1. Understand the inputs
These names are read from the analyzer’s credential-info map. A name can be required, optional, or conditional; this inventory does not resolve that control flow. Field values are never shown.
2. Inspect the request definitions
A request site is a Go request-construction call, not an individual permission check. One helper may build many requests. 2 of 2 sites have a directly written address; dynamic addresses remain unresolved. Response interpretation must be read in source.
Browse 2 request sites
POST · https://connect.squareup.com/oauth2/token/status
Inspect source · square.go:158This identifies a request definition. No response rule, granted permission, or resource binding is inferred from its method or address.
POST · https://connect.squareup.com/v2/team-members/search
Inspect source · square.go:191This identifies a request definition. No response rule, granted permission, or resource binding is inferred from its method or address.
This package also contains 1 JSON/YAML configuration files. Their definitions are not counted as Go request sites. Their response semantics are not normalized in this walkthrough.
3. Read the result and its limits
Explore the permission names and resource types below. They are independent source lists. This walkthrough does not connect every request to a permission or resource, and does not infer access from an HTTP success.
Inspect 1 binding construction sites
These links point to Binding literals or BindAllPermissions helper calls. The permission-to-resource relationships and conditions have not been normalized.
Pinned revision 23255461ddf3 · analyzer-workflow-sites-v1. Comments, string contents, tests and testdata are excluded from code-site matching. SDK resolution, call order, response rules, required inputs and permission/resource bindings remain outside this parser.
Permissions and resources
How the result is built: one key, the resources it reaches, and the permissions recorded on each.
1 key
A verified Square key
From the detector
Resource types
- team_member
- category
- endpoint
Filled in only when a key is analyzed
43 permission names on each
- bank_accounts_read
- appointments_write
- appointments_all_write
- appointments_read
- appointments_all_read
- appointments_business_settings_read
- payments_read
- payments_write
- cash_drawer_read
- items_write
- items_read
- orders_write
- +31 more in the list below
43 permission names · 3 resource types · 46/46 names explained
Permission names describe actions or scopes checked by this analyzer. Resource types describe the kinds of objects it can report. They are separate source lists; a permission-to-resource binding has not been extracted. Available access depends on the credential and provider response.
Showing 46 of 46 capability names
Where the explanations come from
- Atlas wording (46): Atlas wording, not the provider’s text (written with AI, not yet reviewed)
Resource types
Showing 3 of 3 matching resource types.
team_memberExplanation available
The Square team member (account) the token belongs to.
Atlas wording
categoryExplanation available
A group of Square APIs, such as Payments or Customers. The analyzer lists each group's endpoints under it.
Atlas wording
endpointExplanation available
One Square API endpoint, listed with the permissions it needs.
Atlas wording
Permissions
Grouped by name prefix for easier browsing. These display groups are not official provider categories or permission-to-resource bindings.
Name prefix “appointments” 5 names
appointments_writeExplanation available
Create, change and cancel bookings. The analyzer lists 18 Square endpoints that need it, such as CreateBooking (buyer-level).
Atlas wording
appointments_all_writeExplanation available
Change any seller's bookings, not just the buyer's own. The analyzer lists 9 Square endpoints that need it, such as CreateBooking (seller-level).
Atlas wording
appointments_readExplanation available
Read bookings and availability. The analyzer lists 14 Square endpoints that need it, such as SearchAvailability (buyer-level).
Atlas wording
appointments_all_readExplanation available
Read all bookings for the seller, not just the buyer's own. The analyzer lists 7 Square endpoints that need it, such as SearchAvailability (seller-level).
Atlas wording
appointments_business_settings_readExplanation available
Read booking profiles and settings. The analyzer lists 3 Square endpoints that need it, such as RetrieveBusinessBookingProfile.
Atlas wording
Name prefix “payments” 5 names
payments_readExplanation available
Read payments and refunds. The analyzer lists 12 Square endpoints that need it, such as ListCards.
Atlas wording
payments_writeExplanation available
Take payments and issue refunds. The analyzer lists 21 Square endpoints that need it, such as CreateCard.
Atlas wording
payments_write_in_personExplanation available
Take in-person payments. The analyzer lists 1 Square endpoint that need it, such as CreateMobileAuthorizationCode.
Atlas wording
payments_write_shared_onfileExplanation available
Charge cards saved on file by another app. The analyzer lists 1 Square endpoint that need it, such as CreatePayment.
Atlas wording
payments_write_additional_recipientsExplanation available
Split a payment's money with other recipients. The analyzer lists 2 Square endpoints that need it, such as CreatePayment.
Atlas wording
Name prefix “timecards” 4 names
timecards_settings_writeExplanation available
Change timecard (labor) settings. The analyzer lists 4 Square endpoints that need it, such as CreateBreakType.
Atlas wording
timecards_writeExplanation available
Create and change timecards. The analyzer lists 3 Square endpoints that need it, such as CreateShift.
Atlas wording
timecards_settings_readExplanation available
Read timecard (labor) settings. The analyzer lists 5 Square endpoints that need it, such as GetBreakType.
Atlas wording
timecards_readExplanation available
Read timecards. The analyzer lists 3 Square endpoints that need it, such as GetShift.
Atlas wording
Name prefix “online” 3 names
online_store_site_readExplanation available
Read the Square Online site. The analyzer lists 1 Square endpoint that need it, such as ListSites.
Atlas wording
online_store_snippets_writeExplanation available
Add and change code snippets on the Square Online site. The analyzer lists 2 Square endpoints that need it, such as UpsertSnippet.
Atlas wording
online_store_snippets_readExplanation available
Read code snippets on the Square Online site. The analyzer lists 1 Square endpoint that need it, such as RetrieveSnippet.
Atlas wording
Name prefix “customers” 2 names
customers_writeExplanation available
Create and change customer records. The analyzer lists 19 Square endpoints that need it, such as AddGroupToCustomer.
Atlas wording
customers_readExplanation available
Read customer records. The analyzer lists 19 Square endpoints that need it, such as BulkRetrieveCustomers.
Atlas wording
Name prefix “disputes” 2 names
disputes_writeExplanation available
Respond to and accept disputes. The analyzer lists 5 Square endpoints that need it, such as AcceptDispute.
Atlas wording
disputes_readExplanation available
Read disputes. The analyzer lists 4 Square endpoints that need it, such as ListDisputeEvidence.
Atlas wording
Name prefix “giftcards” 2 names
giftcards_readExplanation available
Read gift cards. The analyzer lists 5 Square endpoints that need it, such as ListGiftCards.
Atlas wording
giftcards_writeExplanation available
Create and change gift cards. The analyzer lists 4 Square endpoints that need it, such as CreateGiftCard.
Atlas wording
Name prefix “inventory” 2 names
inventory_writeExplanation available
Change inventory counts. The analyzer lists 1 Square endpoint that need it, such as BatchChangeInventory.
Atlas wording
inventory_readExplanation available
Read inventory counts. The analyzer lists 6 Square endpoints that need it, such as BatchRetrieveInventoryCounts.
Atlas wording
Name prefix “invoices” 2 names
invoices_writeExplanation available
Create, send and cancel invoices. The analyzer lists 12 Square endpoints that need it, such as CreateInvoice.
Atlas wording
invoices_readExplanation available
Read invoices. The analyzer lists 3 Square endpoints that need it, such as GetInvoice.
Atlas wording
Name prefix “items” 2 names
items_writeExplanation available
Create and change catalog items. The analyzer lists 7 Square endpoints that need it, such as BatchDeleteCatalogObjects.
Atlas wording
items_readExplanation available
Read catalog items. The analyzer lists 11 Square endpoints that need it, such as BatchRetrieveCatalogObjects.
Atlas wording
Name prefix “loyalty” 2 names
loyalty_readExplanation available
Read loyalty programs and accounts. The analyzer lists 10 Square endpoints that need it, such as RetrieveLoyaltyProgram.
Atlas wording
loyalty_writeExplanation available
Change loyalty accounts and points. The analyzer lists 8 Square endpoints that need it, such as CreateLoyaltyPromotion.
Atlas wording
Name prefix “merchant” 2 names
merchant_profile_writeExplanation available
Change the business profile and locations. The analyzer lists 16 Square endpoints that need it, such as CreateLocation.
Atlas wording
merchant_profile_readExplanation available
Read the business profile and locations. The analyzer lists 12 Square endpoints that need it, such as ListLocations.
Atlas wording
Name prefix “orders” 2 names
orders_writeExplanation available
Create and change orders. The analyzer lists 25 Square endpoints that need it, such as CreatePaymentLink.
Atlas wording
orders_readExplanation available
Read orders. The analyzer lists 8 Square endpoints that need it, such as CreatePaymentLink.
Atlas wording
Name prefix “subscriptions” 2 names
subscriptions_writeExplanation available
Create and change subscriptions. The analyzer lists 7 Square endpoints that need it, such as CreateSubscription.
Atlas wording
subscriptions_readExplanation available
Read subscriptions. The analyzer lists 3 Square endpoints that need it, such as SearchSubscriptions.
Atlas wording
Other names 6 names
bank_accounts_readExplanation available
Read linked bank accounts. The analyzer lists 3 Square endpoints that need it, such as GetBankAccount.
Atlas wording
cash_drawer_readExplanation available
Read cash drawer shifts. The analyzer lists 3 Square endpoints that need it, such as ListCashDrawerShifts.
Atlas wording
device_credential_managementExplanation available
Create device codes to sign in Square Terminal devices. The analyzer lists 3 Square endpoints that need it, such as CreateDeviceCode.
Atlas wording
devices_readExplanation available
Read connected devices. The analyzer lists 2 Square endpoints that need it, such as ListDevices.
Atlas wording
employees_readExplanation available
Read team members and staff. The analyzer lists 7 Square endpoints that need it, such as ListEmployees (deprecated).
Atlas wording
payouts_readExplanation available
Read payouts to the seller's bank. The analyzer lists 3 Square endpoints that need it, such as ListPayouts.
Atlas wording
Under the hoodSource facts, registration, field evidence and source changes
Built on the Square detector
Step 1: Detect
Related detectors find credential candidates. A match alone does not establish that the credential works. Open the detector first to learn its matching and verification rules.
Step 2: Verify
The detector checks the candidate under its verification rules. Successful verification establishes the condition accepted by that detector; it does not establish every permission. The status below is extraction evidence, not a live result.
Square · Verification parsed
The normalized parser found verification logic at this record’s revision. No credential was tested.
GET https://connect.squareupsandbox.com/v2/merchants
Step 3: Analyze
After successful detector verification, analysis is an additional layer for gathering access context. The source contains an Analyze function; its results depend on the credential, the checks that run and their outcomes.
Explore access capabilitiesStep 4: Interpret the evidence
Open an individual check to learn what it attempts and how its result is interpreted. Follow the source evidence before concluding what access it establishes. Missing permission or resource relationships remain unknown.
Next: follow the source walkthroughDetailed check definitions are not connected to this page yet. The walkthrough identifies input and request sites; response rules and permission/resource bindings still need source review.
This is a source-based workflow, not a live validation result. The catalog has not executed these detectors or analyzers. Related packages are linked by the catalog’s recorded relationship evidence.
Source overview · No credential tested
Understand what Square Analyzer can check
Counts below describe names found in analyzer source. They do not confirm access for a particular credential.
- Permission names
- 43
- Unique names recorded in this analyzer
- Resource types
- 3
- Kinds of objects, not a count of objects found
- Names needing explanation
- 0
- Names without a catalog summary
46 of 46 names have a summary. A summary is not proof of access or a review approval.
How should I read these results?
- Recorded in source
- The parser found a name or behavior in code. It has not tested your credential.
- Explained in the catalog
- A summary describes a recorded name. Check its source label and reference before relying on the interpretation.
- Confirmed by a test
- This would require a recorded run and its responses. No such result is shown on this page. An HTTP success alone does not establish every permission.
- Whether this analyzer package contains an Analyze function.
Yes
- Self-discovery means the package runs after verify to list identity or permissions. Other means no Analyze function was extracted.
Self-discovery
- Related detectors
1
- Permission or scope strings declared in the analyzer Go. These are not a live grant.
43
- Resource names the analyzer source says it can list. These are not a live inventory.
3
- The GitHub repository this catalog was parsed from. This app reads trufflesecurity/trufflehog.
- trufflesecurity/trufflehog
- The Go file the parser read for this page. The link opens that file at the pinned catalog commit.
- pkg/analyzer/analyzers/square/permissions.go
- The last commit that changed this folder’s code (tests don’t count), when GitHub history was fetched. Otherwise it is the ingest commit that reparsed the folder. It can be older than the catalog pin.
- 2921dcc
Last commit that changed this folder’s code. Test-only changes don’t count.
- Active means this folder was still in the latest ingest. A folder that disappeared is dropped from the catalog.
Active
- The date of the ingest that still contained this folder. This is not the day the Go file was edited.
Nov 25, 2026
This folder was still in the catalog at this ingest.
- The date of the newest queued diff for this record. With no diff, this falls back to the ingest time.
Nov 25, 2026
- Whether a human still needs to look at a queued diff or an uncertain extracted field.
No queued diffs
What this analyzer does
Analyze() exists in source. 43 permission names are enumerated in source. Resource types in source: team_member, category, endpoint.
An Analyze function was found in the source. The entries below describe the access context recorded for this package.
Description generated from parsed flags
Registration
Named in pkg/analyzer/cli.go. A detector joins from this file only when its folder matches one of these keys.
- square
Parsed from analyzer registration
Related detectors and validation evidence
- Square
pkg/detectors/square·Verification parsed
Enriches after verify. pkg/analyzer/cli.go registers this detector key to the analyzer package.
Roles
No role map extracted from this analyzer’s Go.
Package files
- permissions.go
- permissions.yaml
- scopes.go
- square.go
Field evidence
Parsed fields keep a provenance row beside the value. Extracted rows stay visible. Needs review means a heuristic verify flag or a URL whose host is still a template. Unknown means the parser did not find that field — never a negative capability claim.
description · Needs review · medium
Analyze() exists in source. 43 permission names are enumerated in source. Resource types in source: team_member, category, endpoint.
Derived from parser flags. This sentence is not a source comment.
keyTypes · Unknown · unknown
None extracted
permissions · Extracted · high
bank_accounts_read, appointments_write, appointments_all_write, appointments_read, appointments_all_read, appointments_business_settings_read, payments_read, payments_write, cash_drawer_read, items_write, items_read, orders_write, orders_read, customers_write, customers_read, device_credential_management, devices_read, disputes_write, disputes_read, employees_read, giftcards_read, giftcards_write, inventory_write, inventory_read, invoices_write, invoices_read, timecards_settings_write, timecards_write, timecards_settings_read, timecards_read, merchant_profile_write, merchant_profile_read, loyalty_read, loyalty_write, payments_write_in_person, payments_write_shared_onfile, payments_write_additional_recipients, payouts_read, online_store_site_read, online_store_snippets_write, online_store_snippets_read, subscriptions_write, subscriptions_read
resources · Extracted · high
team_member, category, endpoint
roles · Unknown · unknown
None extracted
files · Extracted · high
permissions.go, permissions.yaml, scopes.go, square.go
hasAnalyze · Extracted · high
Yes
hasRoleField · Unknown · unknown
No
analyzerType · Extracted · high
self_discovery
What changed in the source
Stored source differences and their review status. No stored difference does not establish that upstream is unchanged.
No stored diffs for this analyzer yet.
Change log
What changed in this analyzer
No changes recorded since Nov 11, 2026, when the change log starts.