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

ProfileDefault selectionUse
basic21 rulesFast, low-noise production security and operations check.
asvs-l132; 60 with manualOWASP ASVS Level 1 evidence-oriented mapping.
asvs-l273; 183 with manualCumulative Level 2 mapping with contextual rules.
asvs-l380; 259 with manualCumulative Level 3 mapping requiring substantial human assurance.
owasp77 rulesApplication-security checks mapped to OWASP Top 10 2025.
pci67; 68 with manualPCI DSS 4.0.1 supporting-evidence readiness; not certification.
hardening91; 92 with manualDeep production, dependency, code, integration, and operations checks.
baseline113; 371 with manualThe complete local Magebean catalog.

Counts describe the current CLI version and can change as mappings and rules evolve. Confirm current values in the CLI profile reference.

Choose by assessment purpose

  • Routine first scan: begin with basic.
  • Production hardening: use hardening when deeper operational review is appropriate.
  • Complete Magebean baseline: use baseline and include human-required rules for full catalog visibility.
  • 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 assessment 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

A false or unspecified capability does not activate the related contextual rules. Document the capability decision as part of assessment scope.

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 Assessment snapshots

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

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