Magebean Documentation

Profiles and Baselines

Start from a system Profile, configure its applicable Rules as a Company Baseline, and manually assign the required Baseline to the Applications that need it.

On this page

What a profile does

A system Profile is a Magebean-provided security template. It organizes Rules for a purpose, but it does not establish Company scope and does not turn every Rule into automated verification. Configure the Profile into a Company-controlled Baseline, then assign that required Baseline to Applications—not directly to individual Instances.

Built-in CLI profiles

ProfileInventory / default LOCALUse
basic37 / 37Routine technical security and readiness.
hardening86 / 80Deeper deployment and strict coding policy.
development31 / 29Offline source, modules and declarations.
prelaunch60 / 58Source plus deployed candidate and HTTP evidence.
takeover86 / 82Inherited technical risks and maintenance scope.
owasp50 / 41Magebean checks organized by Top 10 taxonomy.
module-integrity11 / 11Module identity, REST and DI declarations.
module-source4 / 4PHP targets, contracts and supported request sinks.
module-lifecycle3 / 3Schema, patch and handler declarations.
module-reliability2 / 2Bounded reliability review candidates.
evidence2 / 2Supplied document and record lint only.
asvs-l170 / 0Separate ASVS Level 1 workflow; include human review.
asvs-l2253 / 0Separate ASVS Level 2 workflow; include human review.
asvs-l3345 / 0Separate ASVS Level 3 workflow; include human review.
pci280 / 0PCI DSS 4.0.1 evidence readiness; not certification.

Inventory is profile membership; default LOCAL selection assumes no overrides, extra capabilities or filters. These counts do not prove completed assessment. ASVS/PCI need human review. Hardening enables strict_native_api_policy, cache_backend_policy and dependency_maintenance by default; six deployment checks remain separately gated. Confirm current values in the CLI profile reference.

Choose by audit purpose

  • Routine first scan: begin with basic.
  • Production hardening: use hardening when deeper operational review is appropriate.
  • Current Magebean inventory: browse the 110 active criteria in the baseline and select the appropriate technical profile. The old baseline/all/magebean profile names are unsupported.
  • Standards-oriented work: select the relevant ASVS or PCI profile, confirm formal scope separately, and retain human evidence.
php magebean.phar rules:list --profile=basic
php magebean.phar scan --path=/var/www/magento --profile=hardening

Include human-required and contextual rules deliberately

Use --include-manual-review when the audit must expose rules that cannot be completed automatically. For capability-dependent ASVS rules, declare only capabilities that are actually present.

php magebean.phar scan \
  --path=/var/www/magento \
  --profile=asvs-l2 \
  --include-manual-review \
  --capabilities=graphql,oauth_oidc

CLI profile defaults can activate context; explicit project false values override those defaults and explicit CLI capabilities enable them. A capability is intent, not observed evidence. The Console importer does not persist CLI default capabilities or add them to Agent manifests; Agent context remains explicit.

Use custom profiles for approved organization policy

A custom CLI profile contains an ID and selected Rule IDs for local execution policy. It is distinct from the Dashboard’s system Profile and Company Baseline entities. Store it in source control, review changes, and avoid using exclusions merely to make a pipeline pass.

See the custom profile schema →

Configure the Baseline and preserve Audit snapshots

Record the source Profile, selected Rules, verification expectations, applicability decisions, Audit frequency, and material exclusions. Required Baseline assignment to an Application is manual in the MVP.

Creating an Audit snapshots the Baseline configuration. Later Baseline changes do not modify existing Audits. Baseline version history and automatic migration after changes are not available in the MVP.

See current profile selection, development and prelaunch, and production context. Evidence lint does not verify implemented controls.