Skip to content
Analyzers

Scanner deep dive

Posthog Analyzer

Open source

What 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 tests the key against PostHog, one permission at a time. Access method details · Source (posthog.go:214)
What can I look up?
Explore the permissions and resource types named in the code.

Catalog coverage · maintainer view

Vendor API links
None yet
Explanations
63 of 63 permission and resource names
Access model
Classified 2026-11-16

Built on the Posthog App detector

The detector finds and verifies the key. This analyzer maps it.

  1. 1 · Detector finds

    Candidates near “phx_”, 1 pattern.

    Posthog Appposthog.go:29 (opens TruffleHog source on GitHub)

  2. 2 · Detector verifies

    GET https://app.posthog.com/api/event/?personal_api_key=

    2xx means verified.

    How it verifiesposthog.go:49 (opens TruffleHog source on GitHub)posthog.go:61 (opens TruffleHog source on GitHub)

  3. 3 · This analyzer maps

    60 permission names across 3 resource types.

    Tests each permission

Access model · AI-assisted classification · No credential tested

How Posthog 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.

  • For each scope, runs its write test when one exists, otherwise its read test.

    Reviewed classification: Runs read and write tests per scope.

    Tries each permission against the provider and records whether it was allowed or denied.

Pinned revision db665f0c24c6 · Confidence high · Classified 2026-11-16

Compare all 44 analyzers

Parsed source walkthrough · No credential tested

Follow Posthog 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
3
Go implementation files scanned
2
Configured JSON definitions
53

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. 0 of 3 sites have a directly written address; dynamic addresses remain unresolved. Use the configured-check reader below for the normalized JSON response rules; other response interpretation still needs source review.

Browse 3 request sites
  • Method unresolved · Dynamic address — inspect source

    Inspect source · posthog.go:152

    This identifies a request definition. No response rule, granted permission, or resource binding is inferred from its method or address.

  • GET · Dynamic address — inspect source

    Inspect source · posthog.go:429

    This identifies a request definition. No response rule, granted permission, or resource binding is inferred from its method or address.

  • GET · Dynamic address — inspect source

    Inspect source · posthog.go:466

    This identifies a request definition. No response rule, granted permission, or resource binding is inferred from its method or address.

This package also contains 2 JSON/YAML configuration files. Their definitions are not counted as Go request sites. Use the configured-check reader below.

Explore configured checks

Each check below is a request defined in this analyzer’s embedded JSON, with the response codes it treats as access granted or denied. Nothing on this page sends a request.

  • A check is labelled with a permission name, but one check is not proof that a key has that permission.
  • The runner checks the “granted” codes first, then the “denied” codes. Any other code is reported as an error, not as a result.
  • Payload values are not shown. The HTTP method alone doesn’t say whether a request changes anything.

Showing 1–10 of 53 matching definitions · 53 in this configuration

organization · readGET

GET /api/organizations

Relative path; the code picks the host.

Granted when
200
Denied when
403

See this definitionSee how responses are read

organization · writePOST

POST /api/organizations

Relative path; the code picks the host.

Granted when
400
Denied when
403

See this definitionSee how responses are read

batch_export · readGET

GET /api/organizations/%s/batch_exports

Relative path; the code picks the host.

The address has placeholders that this page leaves unfilled.

Granted when
200
Denied when
403

See this definitionSee how responses are read

batch_export · writePOST

POST /api/organizations/%s/batch_exports

Relative path; the code picks the host.

The address has placeholders that this page leaves unfilled.

Granted when
400
Denied when
403

See this definitionSee how responses are read

organization_member · readGET

GET /api/organizations/%s/members

Relative path; the code picks the host.

The address has placeholders that this page leaves unfilled.

Granted when
200
Denied when
403

See this definitionSee how responses are read

organization_member · writePATCH

PATCH /api/organizations/%s/members/`nowaythiscanexist

Relative path; the code picks the host.

The address has placeholders that this page leaves unfilled.

Granted when
500
Denied when
403

See this definitionSee how responses are read

project · readGET

GET /api/organizations/%s/projects

Relative path; the code picks the host.

The address has placeholders that this page leaves unfilled.

Granted when
200
Denied when
403

See this definitionSee how responses are read

project · writeDELETE

DELETE /api/organizations/%s/projects/`nowaythiscanexist

Relative path; the code picks the host.

The address has placeholders that this page leaves unfilled.

Granted when
400
Denied when
403

See this definitionSee how responses are read

action · readGET

GET /api/projects/%d/actions

Relative path; the code picks the host.

The address has placeholders that this page leaves unfilled.

Granted when
200
Denied when
403

See this definitionSee how responses are read

action · writePOST

POST /api/projects/%d/actions

Relative path; the code picks the host.

The address has placeholders that this page leaves unfilled.

Granted when
500
Denied when
403

See this definitionSee how responses are read

Pinned revision 23255461ddf3.

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 3 binding construction sites

These links point to Binding literals or BindAllPermissions helper calls. The permission-to-resource relationships and conditions have not been normalized.

Continue to permissions and resources

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 PostHog key

From the detector

Resource types

  • user
  • organization
  • project

Filled in only when a key is analyzed

60 permission names on each

  • action:read
  • action:write
  • activity_log:read
  • activity_log:write
  • annotation:read
  • annotation:write
  • batch_export:read
  • batch_export:write
  • cohort:read
  • cohort:write
  • dashboard:read
  • dashboard:write
  • +48 more in the list below

60 permission names · 3 resource types · 63/63 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 63 of 63 capability names

Where the explanations come from

  • Provider docs (60): official provider documentation
  • Atlas wording (3): Atlas wording, not the provider’s text (written with AI, not yet reviewed)

Inspect analyzer source

Resource types

Showing 3 of 3 matching resource types.

  • userExplanation available

    The PostHog user the key belongs to.

    Atlas wording

  • organizationExplanation available

    A PostHog organization the user belongs to.

    Atlas wording

  • projectExplanation available

    A PostHog project.

    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 “dashboard” 4 names
  • dashboard:readExplanation available

    Read access to dashboards. Dashboards, including their tiles, text cards, widgets, and layout, and running the insights on them.

    Provider docs

  • dashboard:writeExplanation available

    Write access to dashboards. Dashboards, including their tiles, text cards, widgets, and layout, and running the insights on them.

    Provider docs

  • dashboard_template:readExplanation available

    Read access to dashboard templates. Dashboard templates, including their JSON schema and copying templates between projects.

    Provider docs

  • dashboard_template:writeExplanation available

    Write access to dashboard templates. Dashboard templates, including their JSON schema and copying templates between projects.

    Provider docs

Name prefix “organization” 4 names
  • organization:readExplanation available

    Read access to organizations. Organization settings, verified domains, roles, SSO providers, and proxies, across the whole organization.

    Provider docs

  • organization:writeExplanation available

    Write access to organizations. Organization settings, verified domains, roles, SSO providers, and proxies, across the whole organization.

    Provider docs

  • organization_member:readExplanation available

    Read access to organization members. Organization members and invites, including membership levels and removing members.

    Provider docs

  • organization_member:writeExplanation available

    Write access to organization members. Organization members and invites, including membership levels and removing members.

    Provider docs

Name prefix “session” 4 names
  • session_recording:readExplanation available

    Read access to session recordings. Session recordings, including their snapshots, console logs, viewed status, and deletion.

    Provider docs

  • session_recording:writeExplanation available

    Write access to session recordings. Session recordings, including their snapshots, console logs, viewed status, and deletion.

    Provider docs

  • session_recording_playlist:readExplanation available

    Read access to session recording playlists. Session replay collections and saved filters, including the recordings added to them.

    Provider docs

  • session_recording_playlist:writeExplanation available

    Write access to session recording playlists. Session replay collections and saved filters, including the recordings added to them.

    Provider docs

Name prefix “action” 2 names
  • action:readExplanation available

    Read access to actions. Actions, the named combinations of events and page elements, including where they are referenced.

    Provider docs

  • action:writeExplanation available

    Write access to actions. Actions, the named combinations of events and page elements, including where they are referenced.

    Provider docs

Name prefix “activity” 2 names
  • activity_log:readExplanation available

    Read access to activity logs.

    Provider docs

  • activity_log:writeExplanation available

    Write access to activity logs.

    Provider docs

Name prefix “annotation” 2 names
  • annotation:readExplanation available

    Read access to annotations. Annotations on charts, plus the change feed of feature flag, experiment, release, and annotation edits.

    Provider docs

  • annotation:writeExplanation available

    Write access to annotations. Annotations on charts, plus the change feed of feature flag, experiment, release, and annotation edits.

    Provider docs

Name prefix “batch” 2 names
  • batch_export:readExplanation available

    Read access to batch exports. Batch exports to destinations like S3, BigQuery, and Snowflake, including runs, backfills, and file downloads.

    Provider docs

  • batch_export:writeExplanation available

    Write access to batch exports. Batch exports to destinations like S3, BigQuery, and Snowflake, including runs, backfills, and file downloads.

    Provider docs

Name prefix “cohort” 2 names
  • cohort:readExplanation available

    Read access to cohorts. Cohorts, including their filters, static member lists, calculation history, and where they are used.

    Provider docs

  • cohort:writeExplanation available

    Write access to cohorts. Cohorts, including their filters, static member lists, calculation history, and where they are used.

    Provider docs

Name prefix “early” 2 names
  • early_access_feature:readExplanation available

    Read access to early access features. Early access features users can opt into, including their stage and linked feature flag.

    Provider docs

  • early_access_feature:writeExplanation available

    Write access to early access features. Early access features users can opt into, including their stage and linked feature flag.

    Provider docs

Name prefix “error” 2 names
  • error_tracking:readExplanation available

    Read access to error tracking. Error tracking issues, releases, symbol sets, alerts, and grouping, assignment, and suppression rules.

    Provider docs

  • error_tracking:writeExplanation available

    Write access to error tracking. Error tracking issues, releases, symbol sets, alerts, and grouping, assignment, and suppression rules.

    Provider docs

Name prefix “event” 2 names
  • event_definition:readExplanation available

    Read access to event definitions. Event definitions, schemas, and property groups, including tags, verification, and generated type definitions.

    Provider docs

  • event_definition:writeExplanation available

    Write access to event definitions. Event definitions, schemas, and property groups, including tags, verification, and generated type definitions.

    Provider docs

Name prefix “experiment” 2 names
  • experiment:readExplanation available

    Read access to experiments. Experiments and no-code web experiments, including launching, pausing, shipping variants, and results.

    Provider docs

  • experiment:writeExplanation available

    Write access to experiments. Experiments and no-code web experiments, including launching, pausing, shipping variants, and results.

    Provider docs

Name prefix “export” 2 names
  • export:readExplanation available

    Read access to exports. Exported files of insights, dashboards, and session recordings, such as PNG, PDF, CSV, and video.

    Provider docs

  • export:writeExplanation available

    Write access to exports. Exported files of insights, dashboards, and session recordings, such as PNG, PDF, CSV, and video.

    Provider docs

Name prefix “feature” 2 names
  • feature_flag:readExplanation available

    Read access to feature flags. Feature flags, including their release conditions, variants, payloads, and rollout history.

    Provider docs

  • feature_flag:writeExplanation available

    Write access to feature flags. Feature flags, including their release conditions, variants, payloads, and rollout history.

    Provider docs

Name prefix “group” 2 names
  • group:readExplanation available

    Read access to groups. Group types and groups used in group analytics, including their properties.

    Provider docs

  • group:writeExplanation available

    Write access to groups. Group types and groups used in group analytics, including their properties.

    Provider docs

Name prefix “hog” 2 names
  • hog_function:readExplanation available

    Read access to hog functions. Data pipeline destinations, transformations, and other Hog functions, plus their templates.

    Provider docs

  • hog_function:writeExplanation available

    Write access to hog functions. Data pipeline destinations, transformations, and other Hog functions, plus their templates.

    Provider docs

Name prefix “insight” 2 names
  • insight:readExplanation available

    Read access to insights. Insights, including their queries, results, and explanations, plus anomaly rates for trends insights.

    Provider docs

  • insight:writeExplanation available

    Write access to insights. Insights, including their queries, results, and explanations, plus anomaly rates for trends insights.

    Provider docs

Name prefix “notebook” 2 names
  • notebook:readExplanation available

    Read access to notebooks. Notebooks and the reusable widgets you can embed in them.

    Provider docs

  • notebook:writeExplanation available

    Write access to notebooks. Notebooks and the reusable widgets you can embed in them.

    Provider docs

Name prefix “person” 2 names
  • person:readExplanation available

    Read access to persons. Persons and their properties, including updating, splitting, and deleting persons and their data.

    Provider docs

  • person:writeExplanation available

    Write access to persons. Persons and their properties, including updating, splitting, and deleting persons and their data.

    Provider docs

Name prefix “plugin” 2 names
  • plugin:readExplanation available

    Read access to plugins. Legacy apps (plugins), their configurations, and their logs.

    Provider docs

  • plugin:writeExplanation available

    Write access to plugins. Legacy apps (plugins), their configurations, and their logs.

    Provider docs

Name prefix “project” 2 names
  • project:readExplanation available

    Read access to projects. Projects and their settings, including how data is ingested, plus creating and modifying projects.

    Provider docs

  • project:writeExplanation available

    Write access to projects. Projects and their settings, including how data is ingested, plus creating and modifying projects.

    Provider docs

Name prefix “property” 2 names
  • property_definition:readExplanation available

    Read access to property definitions. Event and person property definitions, including their descriptions, types, tags, and verification status.

    Provider docs

  • property_definition:writeExplanation available

    Write access to property definitions. Event and person property definitions, including their descriptions, types, tags, and verification status.

    Provider docs

Name prefix “sharing” 2 names
  • sharing_configuration:readExplanation available

    Read access to sharing configurations. Public sharing and embed settings for dashboards, insights, recordings, and notebooks, including passwords.

    Provider docs

  • sharing_configuration:writeExplanation available

    Write access to sharing configurations. Public sharing and embed settings for dashboards, insights, recordings, and notebooks, including passwords.

    Provider docs

Name prefix “subscription” 2 names
  • subscription:readExplanation available

    Read access to subscriptions. Scheduled email and Slack subscriptions to insights and dashboards, including their delivery history.

    Provider docs

  • subscription:writeExplanation available

    Write access to subscriptions. Scheduled email and Slack subscriptions to insights and dashboards, including their delivery history.

    Provider docs

Name prefix “survey” 2 names
  • survey:readExplanation available

    Read access to surveys. Surveys, including their questions, targeting, responses, stats, and launch status.

    Provider docs

  • survey:writeExplanation available

    Write access to surveys. Surveys, including their questions, targeting, responses, stats, and launch status.

    Provider docs

Name prefix “webhook” 2 names
  • webhook:readExplanation available

    Read access to webhooks. REST hook subscriptions used by the Zapier integration to send matching events to a target URL.

    Provider docs

  • webhook:writeExplanation available

    Write access to webhooks. REST hook subscriptions used by the Zapier integration to send matching events to a target URL.

    Provider docs

Other names 2 names
  • query:readExplanation available

    Read access to queries.

    Provider docs

  • user:readExplanation available

    Read access to users. Your own user account, including profile, settings, two-factor setup, login sessions, and integrations.

    Provider docs

Under the hoodSource facts, registration, field evidence and source changes

Built on the Posthog App detector

  1. 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.

  2. 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.

    • Posthog App · Verification parsed

      The normalized parser found verification logic at this record’s revision. No credential was tested.

      GET https://app.posthog.com/api/event/?personal_api_key=

  3. 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 capabilities
  4. Step 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 walkthrough

    Detailed 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 Posthog Analyzer can check

Counts below describe names found in analyzer source. They do not confirm access for a particular credential.

Permission names
60
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

63 of 63 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.

Yes

Self-discovery

Related detectors

1

60

3

trufflesecurity/trufflehog
pkg/analyzer/analyzers/posthog/permissions.go
2921dcc

Last commit that changed this folder’s code. Test-only changes don’t count.

Active

Nov 25, 2026

This folder was still in the catalog at this ingest.

Nov 25, 2026

No queued diffs

What this analyzer does

Analyze() exists in source. 60 permission names are enumerated in source. Resource types in source: user, organization, project.

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.

  • posthog

Parsed from analyzer registration

Related detectors and validation evidence

  • Posthog App

    pkg/detectors/posthog·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
  • posthog.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. 60 permission names are enumerated in source. Resource types in source: user, organization, project.

    Derived from parser flags. This sentence is not a source comment.

  • keyTypes · Unknown · unknown

    None extracted

  • permissions · Extracted · high

    action:read, action:write, activity_log:read, activity_log:write, annotation:read, annotation:write, batch_export:read, batch_export:write, cohort:read, cohort:write, dashboard:read, dashboard:write, dashboard_template:read, dashboard_template:write, early_access_feature:read, early_access_feature:write, event_definition:read, event_definition:write, error_tracking:read, error_tracking:write, experiment:read, experiment:write, export:read, export:write, feature_flag:read, feature_flag:write, group:read, group:write, hog_function:read, hog_function:write, insight:read, insight:write, notebook:read, notebook:write, organization:read, organization:write, organization_member:read, organization_member:write, person:read, person:write, plugin:read, plugin:write, project:read, project:write, property_definition:read, property_definition:write, query:read, session_recording:read, session_recording:write, session_recording_playlist:read, session_recording_playlist:write, sharing_configuration:read, sharing_configuration:write, subscription:read, subscription:write, survey:read, survey:write, user:read, webhook:read, webhook:write

  • resources · Extracted · high

    user, organization, project

  • roles · Unknown · unknown

    None extracted

  • files · Extracted · high

    permissions.go, permissions.yaml, posthog.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.