Released

Howdah 1.7.1 is released — Layer 1 (request-shape limits), Layer 2 (input inspection, log-only), Layer 3 (sink hardening, log-only) and Layer 4 (after-breach behaviour, log-first). Howdah starts in detect mode: the critical limits block, everything else only logs. Read the coverage table for exactly what has been tested on your PHP version before you switch rules to block.

Home / Docs / Compliance

Compliance evidence

What Howdah does against PCI DSS 4.0.1 requirement 6.4.2, the evidence a server running it can produce, and what it does not cover. Short notes on insurance questionnaires, NIS2, SOC 2 and HIPAA follow.

What this page is not

  • Not legal advice. Nothing here tells you what a law, standard or policy requires of you. Ask your assessor, auditor, counsel or broker.
  • Not a certification. Howdah is not certified, validated, listed or approved by the PCI Security Standards Council, the AICPA, HHS, ENISA or any insurer. It has no SOC 2 report and no PCI attestation of its own.
  • No third-party audit. Howdah's code has had no third-party security audit yet. Its coverage claims come from the project's own lab (coverage), not from an independent test.
  • Not reviewed by an assessor. No QSA, auditor or insurer has reviewed this page. Whether Howdah meets a requirement in your environment is their decision, not ours.

Facts about Howdah on this page come from the source, docs/config.md and docs/coverage.md. Every external claim has a link; the sources are listed again at the end. The same text, versioned with the code, is in docs/compliance.md.

PCI DSS 4.0.1 requirement 6.4.2

The requirement

PCI DSS v4.0.1 (June 2024), requirement 6.4.2, page 152:

For public-facing web applications, an automated technical solution is deployed that continually detects and prevents web-based attacks, with at least the following:

  • Is installed in front of public-facing web applications and is configured to detect and prevent web-based attacks.
  • Actively running and up to date as applicable.
  • Generating audit logs.
  • Configured to either block web-based attacks or generate an alert that is immediately investigated.

The applicability note says it was “a best practice until 31 March 2025, after which it will be required”, and that it replaces requirement 6.4.1. The testing procedure is to “examine the system configuration settings and audit logs, and interview responsible personnel”. The standard is in the PCI SSC document library. The same bullet text is reproduced at Cloudaware.

Bullet by bullet

Each 6.4.2 bullet: what Howdah does, the evidence to collect, and what Howdah does not do
6.4.2 bulletWhat Howdah doesEvidence to collectWhat Howdah does not do
Installed in front of public-facing web applications and configured to detect and prevent web-based attacks Loads into every PHP worker as an extension. Checks the request as PHP parses it, which for most inputs is before the application's first line runs (Layers 1 and 2; see the timing note below). Checks dangerous function calls while the application runs (Layer 3). php --ri howdah for each PHP build; howdah-check web output against the live site; the howdah.ini and howdah.toml files in use. It is not on the network. It never sees requests that do not reach PHP: static files, non-PHP applications, and bugs that fire before PHP extensions load. It does not cover XSS, CSRF, authentication, access control or business logic. See the 6.2.4 table.
Actively running and up to date as applicable Runs on every request while loaded. Its rules are compiled into the extension; there is no separate signature feed. “Up to date” means the latest release for your PHP minor and a reviewed config. Installed package version and the php --ri howdah “Version” row, compared with the latest release; a daily howdah-check web run and the self_test log line it leaves. It does not update itself. It does not alert you if it stops loading: PHP starts without an extension it cannot load, and a malformed TOML falls back to built-in defaults. Watch for the daily self_test line.
Generating audit logs Writes one JSON line per security event to a log file (howdah.log, or [log] path) or to the local syslog socket ([log] destination = "syslog"): schema version, Howdah version, timestamp, request id, layer, rule, action, client IP, method, path and reason. The php --ri howdah “Log destination” row, sample lines, the rotation config and the off-host shipping config (below). No network transport of its own: it writes a file, the local syslog socket or stderr, and shipping off the host is your collector's job. Lines are not signed or chained. A log file is writable by the PHP user. It logs security events, not every request. It never logs bodies, cookies, Authorization headers, query strings, matched values or sink arguments.
Configured to either block web-based attacks or generate an alert that is immediately investigated Layer 1 Critical rules block (403/413) in both block and detect mode. Standard rules block in block mode. Most of Layer 2, the Layer 3 sinks (including the legacy sinks added in 1.5) and the Layer 4 allowlist facets (shipped in 1.4, with empty lists, plus observe to propose allowlists) only log until you arm a class or sink with mode = "block" (and unserialize, phar and ssrf stay off until then). Several checks block by default, independent of mode: the Layer 2 php-cgi argument-injection check (cgi_arg_injection), the Layer 3 XXE flag guard (xxe) and include/open wrapper firewall (include_wrapper, file_open), and the Layer 4 delete and upload-write guards (file_delete, php_write). howdah.toml with each mode and the reason for it (decision record); for log-only rules, the alert rule in your log system (or the [log] exec program) and records of alerts being investigated. It has no built-in email, webhook or pager integration. Alerts come from your log pipeline, or from a program you write that Howdah runs once per event ([log] exec, at most 10 starts per second per PHP process by default; beyond that events are logged but not passed on). An armed Layer 2 class refuses the request before the script runs (lab-verified on php-fpm and Apache mod_php, PHP 5.6, 7.4 and 8.3; php-cgi and the CLI server use the same mechanism but were not lab-run), but its signatures are best-effort and bypassable, so treat Layer 2 as detection with an optional block, not as a boundary.

Enforcement timing differs by layer. The multipart limits, the input-shape limits, an armed Layer 2 class and the Layer 4 deny_exec_dirs check refuse the request before the script runs: the 403/413 with the request id goes out at the end of request startup, the script is not compiled, and the PHP worker survives. The request-header limits drop nothing and log; their 403 is post-hoc (set at request shutdown) when the script builds $_SERVER lazily and Layer 2 is not armed. An armed Layer 3 sink refuses the call and the script continues. Details: configuration, “Enforcement timing”.

“Installed in front of”: the in-process question

Howdah does not sit in front of the web server. It runs inside the PHP process. It inspects the request after PHP has parsed it and before the application code runs, and it checks dangerous calls as the application makes them. Whether that placement meets “installed in front of public-facing web applications” is your assessor's call. These are the points to put to them:

  • The standard's own guidance names RASP. The guidance for requirement 6.4.1, which 6.4.2 replaces, says: “Another example of an automated technical solution is Runtime Application Self-Protection (RASP) technologies. When implemented correctly, RASP solutions can detect and block anomalous behavior by the software during execution. While WAFs typically monitor the application perimeter, RASP solutions monitor and block behavior within the application.” (PCI DSS v4.0.1, page 151.) The guidance for 6.4.2 itself (page 152) gives only a WAF as its example.
  • Some assessors have accepted in-process tools. Coalfire, a PCI QSA company, evaluated Contrast Security's Assess and Protect tools (Protect is a RASP) and said they “may be used to replace some of the traditional approaches to assessing and protecting applications” (vendor-published summary, 2019, Contrast Security). GuidePoint Security writes that RASP is a route to meeting requirement 6.6 in PCI DSS 3.2.1 and 6.4.1 in 4.0 (GuidePoint).
  • Nothing settles it. We found no PCI SSC FAQ that rules on in-process enforcement for 6.4.2, either way.
  • Howdah is partly WAF, partly RASP. Layers 1 and 2 inspect the request the way a WAF does, but after PHP's own parser has decoded it. Layer 3 works like a RASP. It checks sinks at the moment they are called: system, include, eval, unserialize, phar://, outbound requests, the include/open stream-wrapper firewall (php://filter, data:, remote includes), and (new in 1.5) mail, preg/assert/create_function evaluation, dangerous callbacks and XXE. Layer 4 watches what the code does after a breach. Most are log-first; the ones that block by default are the php-cgi argument check, XXE (it strips a dangerous libxml flag when it meets an external entity), the include/open wrapper firewall, and Layer 4's delete and upload-write guards.

Howdah complements a network WAF; it does not replace one. Keep or add a WAF, CDN rule or web server rule for:

  • Non-PHP assets on the same host: static files, other languages, admin panels that are not PHP.
  • Bugs that execute before PHP's request hooks. The php-fpm bug CVE-2019-11043 is consumed before any extension or RINIT hook runs, so Howdah cannot see it. Keep a web-server or front-proxy rule for it. php-cgi argument injection (CVE-2012-1823, and CVE-2024-4577, its 2024 bypass on Windows: PHP advisory GHSA-3qgc-jrrr-25jv) is now refused by Howdah's cgi_arg_injection check at the end of RINIT, before the script and any injected auto_prepend_file run, but that is best-effort request-shape matching that cannot undo php-cgi's own argv parse (docs/coverage.md, caveat 7), so a front-proxy rule or a patched php-cgi is still worth keeping. Howdah also builds for Linux only, so it does not run on Windows at all.
  • Volume: Howdah has no rate limiting and no bot management.

Which attack classes Howdah sees

The 6.4.2 guidance points at the attacks listed in requirement 6.2.4. This is how they line up with Howdah.

PCI DSS 6.2.4 attack classes and Howdah coverage
6.2.4 attack classHowdah
Injection: SQL, LDAP, XPath, command and other injectionSQL-injection and command-injection shapes in GET, POST, cookie and path values: Layer 2, detection by default (an armed class refuses the request), best-effort and bypassable. OS command execution: the command_exec sink, which blocks when armed. php-cgi argument injection (CVE-2012-1823, CVE-2024-4577): the cgi_arg_injection check, which blocks by default before the script runs (the code-execution form; the -s source-disclosure form php-cgi handles before RINIT is not caught). Local/remote file inclusion through a stream wrapper (php://filter, data:, remote http(s)): the include/open wrapper firewall, which blocks by default. LDAP and XPath: not inspected.
Attacks on data and data structuresLayer 1 limits on multipart parts and files, input variable count, array nesting, key and header sizes (Critical rules block). Object injection: the unserialize and phar sinks, off by default. Destructive file deletes (wp-config.php, .env, key material) and durable upload bypasses (move_uploaded_file to a .php/.htaccess name): the Layer 4 delete and upload-write guards, which block by default. Memory-safety bugs in PHP itself are covered only where they need one of these shapes.
Attacks on cryptographyNot covered.
Attacks on business logic, including XSS and CSRFNot covered. Howdah does not inspect responses or output.
Attacks on access controlNot covered. Path-traversal shapes: Layer 2 detection. File includes outside an allowlist: the include sink, which blocks when armed; stream-wrapper and log/session//proc poisoning includes: the include/open wrapper firewall, blocked by default.
“High-risk” vulnerabilities (6.3.1)Case by case. Coverage lists the CVEs the lab has tested and the ones Howdah cannot reach.

What to hand your assessor

The evidence below comes from the server itself. Collect it per host, date it, and keep it with your other PCI evidence.

1. Where Howdah is loaded, and proof it is running

howdah-check detect                      # every PHP build on the host, and whether Howdah is loaded in each SAPI
php --ri howdah                          # CLI: version, mode, config file, log path
howdah-check web https://shop.example/   # the web SAPI: a harmless self-test over HTTP

php --ri howdah only proves the CLI loads it. PHP-FPM and Apache mod_php have their own configuration, so the web check is the one that counts. howdah-check web sends two requests. The first carries a self-test marker: Howdah writes a self_test line to the log and adds an X-Howdah-Selftest header. The second sends 2001 empty form fields, one over the default max_parts limit, which Howdah refuses with a 403 even in detect mode. Neither request carries an attack payload.

howdah-check is a read-only POSIX shell script. It ships in every release tarball and as a standalone release asset.

Run howdah-check web once a day from cron and keep the output. Together with the self_test lines in the log, that shows the control was running continuously, not only on the day of the assessment.

2. Proof it is up to date

dpkg-query -W 'php*-howdah'           # Debian/Ubuntu: installed package and version
apt-cache policy php7.4-howdah        # installed vs. newest available in the repository
rpm -qa 'php*-howdah'                 # RHEL family
yum check-update php74-howdah         # exit code 100 means an update is waiting
php --ri howdah | grep -i version     # the version PHP actually loaded

Compare the loaded version with the latest release and the changelog. Howdah's rules are part of the extension, so upgrading the package is the whole update. A package upgrade needs a PHP-FPM or Apache reload before the new version is loaded; the php --ri line confirms it.

3. The audit log

Set the log path explicitly:

howdah.log = /var/log/howdah/events.log

or send the lines to the host's syslog (journald or rsyslog) in the TOML file, which avoids file permissions and uses the host's existing shipping:

[log]
destination = "syslog"   # facility local0, tag "howdah" unless set

If neither is set, or the file cannot be opened, or there is no syslog socket, Howdah writes the line to the process's stderr with a howdah-event prefix. PHP-FPM sends worker stderr to /dev/null unless catch_workers_output = yes (php.net), so an unset log path on FPM can mean no log at all. php --ri howdah shows where lines go in its “Log destination” row.

Each line is one JSON object with exactly these fields (from crates/howdah-core/src/log.rs; the full contract is docs/log-schema.md):

Howdah log fields and the PCI DSS 10.2.2 element each one supplies
FieldContentPCI DSS 10.2.2 element
schemaVersion of the line format, 2. Lines from Howdah 1.0 to 1.4.0 have no schema key.(format)
versionVersion of the Howdah extension that wrote the line.(provenance)
tsUTC time of the event, Unix epoch milliseconds, as a string. Taken from the system clock, so keep NTP running (10.6.1).Date and time
request_idAn id for the request. The block response body prints it, so a user's report maps to one line.(correlation)
layerWhich protection layer the rule belongs to: 1 request-shape limits, 2 input inspection, 3 sinks, 4 after-breach behaviour.Type of event
ruleThe rule or sink that fired, for example max_parts, sql_injection, command_exec.Type of event
actionblock (refused), log (allowed and recorded), or excepted (a finding an [[exceptions]] entry turned off; written only with exceptions_log = true).Success and failure indication
client_ipREMOTE_ADDR as PHP sees it. Behind a proxy or CDN this is the proxy's address.Origination of event
methodThe HTTP method.Identity of affected resource
uriThe request path. The query string is removed.Identity of affected resource
reasonA short description. Layer 2 adds the source and the variable name, never the value. ssrf adds host, port, resolved IP and range class.Type of event (detail)

Howdah does not know who the application user is, so there is no user identification field (10.2.2's first element). Correlate with your web server and application logs by time, client IP and path.

Sample lines from a lab run (PHP 7.4, php-fpm; keys are written in sorted order):

{"action":"block","client_ip":"203.0.113.7","layer":1,"method":"POST","reason":"multipart part count exceeds limit","request_id":"11eccf6d90ad2987d","rule":"max_parts","schema":2,"ts":"1792864974141","uri":"/index.php","version":"1.7.0"}
{"action":"log","client_ip":"203.0.113.7","layer":2,"method":"GET","reason":"sql_injection pattern in get variable 'q'","request_id":"1a2d239820e2f06bc","rule":"sql_injection","schema":2,"ts":"1792864974146","uri":"/index.php","version":"1.7.0"}
{"action":"log","client_ip":"203.0.113.7","layer":3,"method":"GET","reason":"non-allowlisted command via system","request_id":"1fa7c36ea3c170856","rule":"command_exec","schema":2,"ts":"1792864974151","uri":"/index.php","version":"1.7.0"}

Layers 1 and 2 write at most one line per request: the most severe hit. Each Layer 3 sink event is its own line.

4. Retention, rotation and shipping off the host

PCI DSS 10.5.1: “Retain audit log history for at least 12 months, with at least the most recent three months immediately available for analysis.” 10.3.3 asks for logs to be “promptly backed up to a secure, central, internal log server(s) or other media that is difficult to modify.” A sample setup that does both:

# The directory belongs to the PHP worker user (www-data on Debian, apache or nginx on RHEL).
sudo install -d -m 0750 -o www-data -g www-data /var/log/howdah
# /etc/logrotate.d/howdah: three months on the host
/var/log/howdah/events.log {
    daily
    rotate 92
    dateext
    compress
    delaycompress
    missingok
    notifempty
    create 0640 www-data www-data
}

Howdah opens the file for each line it writes, so rename-based rotation is safe. No copytruncate and no PHP reload are needed.

# /etc/rsyslog.d/30-howdah.conf: copy each line to a central log server
module(load="imfile")
input(type="imfile" File="/var/log/howdah/events.log" Tag="howdah:" Facility="local6" Severity="notice")
local6.* @@logs.example.internal:514

@@ is TCP. Add TLS to match your logging setup. Keep 12 months or more on the central server. Any shipper that tails a file works the same way (Vector, Fluent Bit, Filebeat).

Two things to say plainly to the assessor:

  • The log file is writable by the PHP worker user, because PHP writes it. A compromised application could alter the local copy. The central copy is the one to rely on (10.3.2, 10.3.3). Point file-integrity monitoring (10.3.4) at the rotated files. With [log] destination = "syslog" the PHP user cannot rewrite lines already written, but any local process can send lines tagged howdah, so the central copy is still the one to rely on.
  • Read access should be limited (10.3.1). The 0750 directory and 0640 files above do that. The uri path is logged; if your URLs carry personal data in the path, treat the log as containing it.

5. The decision record

Reviewers look for “documented rationales for rule removals” and “a clear understanding of what's being excluded and why” (OWASP CRS on PCI DSS). Howdah's levers are a rule's mode (block, detect, off) and a sink's allowlist. Howdah 1.5 adds scoped [[exceptions]], matched by executing script, request parameter, URI prefix or client CIDR; each exception's mandatory reason doubles as the decision record. Critical Layer 1 rules take no exception. Record every change from the defaults in one table:

Decision record template with example rows
Rule or sinkModeJustificationOwnerDate
max_request_headersdetectOur SSO proxy adds about 40 headers. Watching for 30 days before block.J. Doe, web ops2026-10-24
command_execblock, allow /usr/bin/convert *The thumbnailer is the only legitimate shell call.J. Doe, web ops2026-10-24
sql_injectiondetect (default)Layer 2 signatures are bypassable, so it stays in detect and is used as a SIEM detection feed; alerts go to on-call. (Arming a class would refuse before the script runs, but a bypass would still reach the app.)A. Smith, security2026-10-24
unserializeoff (default)Not opted in. The app unserializes only its own session data. Review at next release.A. Smith, security2026-10-24

Then make the config file carry the same record, so the rationale lives next to the setting it explains:

# /etc/howdah/howdah.toml, kept in version control.
# Every change from a default has a DECISION comment: date, owner, why.
mode = "block"

[rules]
# DECISION 2026-10-24 owner=jdoe(web ops): SSO proxy adds ~40 headers.
# Watch 30 days, then remove this line to return to block.
max_request_headers = "detect"

[sinks.command_exec]
# DECISION 2026-10-24 owner=jdoe(web ops): the thumbnailer is the only
# legitimate shell call. Allowlist set first, then armed.
allow = ["/usr/bin/convert *"]
mode = "block"

grep -n DECISION /etc/howdah/howdah.toml prints the record, and the version history of the file shows when each decision changed. Validate the file before deploying it: the config editor checks it with the extension's own parser.

6. Blocked-attack summary

A count of blocks by rule, across the current and rotated files:

zcat -f /var/log/howdah/events.log* | jq -r 'select(.action == "block") | .rule' | sort | uniq -c | sort -rn

Blocks per day and rule, tab-separated for a spreadsheet:

zcat -f /var/log/howdah/events.log* \
  | jq -r 'select(.action == "block") | [(.ts | tonumber / 1000 | floor | strftime("%Y-%m-%d")), .rule] | @tsv' \
  | sort | uniq -c

The same count by rule on a host without jq:

zcat -f /var/log/howdah/events.log* | awk -F'"rule":"' '/"action":"block"/ { split($2, a, /"/); print a[1] }' | sort | uniq -c | sort -rn

Replace block with log to see what the log-only rules recorded. PCI DSS 10.4.1 asks for security events to be reviewed at least once daily; this output is a starting point for that review, not a substitute for it.

Cyber-insurance questionnaires and end-of-life PHP

Insurance applications ask about end-of-life software directly. Beazley's application asks the applicant to confirm: “You do not have any End of Life (Eol) software or Operating System (OS) exposed to the internet”, Yes or No (Beazley application). If an internet-facing server runs PHP 8.1 or older (October 2026; check php.net), the true answer is No, with or without Howdah.

Howdah does not make an end-of-life PHP supported and does not patch it. It is a compensating control: it reduces exposure to some attack classes while the old runtime stays in place. It mitigates the multipart and input-flood shapes before they exhaust memory, refuses armed sink calls (system, include, eval, unserialize, phar://, internal outbound requests), and logs SQL-injection, traversal and command-injection shapes. It does not fix bugs in PHP's own code, does not see anything that fires before PHP extensions load, and does not cover the classes marked “Not covered” above. The full list is on the coverage page.

Answer the question as asked and attach a short note: which hosts run which PHP version, why they cannot be upgraded yet, the planned upgrade date, which controls sit in front of them, and what those controls do not cover. Policies can limit or exclude cover for incidents involving end-of-life software or known unpatched vulnerabilities, “not tied to the organisation having actual knowledge of the issue” (Allens, 2023). A compensating control does not change those terms. Read your policy wording.

Other frameworks

None of these frameworks names a WAF or requires Howdah. Each asks for outcomes. Howdah can be one of the measures you describe, and its log can be part of your evidence.

NIS2

NIS2 Article 21(1) asks essential and important entities to “take appropriate and proportionate technical, operational and organisational measures to manage the risks posed to the security of network and information systems”. Article 21(2) lists areas the measures must cover, including “(b) incident handling” and “(e) security in network and information systems acquisition, development and maintenance, including vulnerability handling and disclosure” (Directive (EU) 2022/2555, EUR-Lex). It is a directive, so the binding text is your country's transposing law. If you run an end-of-life PHP application while a migration is under way, Howdah can be one documented measure for that risk, and its log can feed incident handling. It is not a substitute for the vulnerability handling itself.

SOC 2

SOC 2 reports test your controls against the AICPA Trust Services Criteria. The criteria describe outcomes, and you choose the controls. Three criteria are specific enough to map:

SOC 2 criteria CC6.6, CC7.1 and CC7.2 and what Howdah contributes
CriterionTextWhat Howdah contributesWhat it does not
CC6.6“The entity implements logical access security measures to protect against threats from sources outside its system boundaries.”Refuses some malicious request shapes from outside: Layer 1 limits, and sinks you arm.Network access control, authentication, anything outside PHP.
CC7.1“To meet its objectives, the entity uses detection and monitoring procedures to identify (1) changes to configurations that result in the introduction of new vulnerabilities, and (2) susceptibilities to newly discovered vulnerabilities.”A version-controlled howdah.toml with decision comments is a configuration change record. The log can show probes against a newly disclosed bug.It does not scan for vulnerabilities or track your software versions.
CC7.2“The entity monitors system components and the operation of those components for anomalies that are indicative of malicious acts, natural disasters, and errors affecting the entity's ability to meet its objectives; anomalies are analyzed to determine whether they represent security events.”A structured event log of attack shapes for your monitoring.The analysis. Someone, or your SIEM, has to read the log.

Criterion text: AICPA, TSP Section 100, 2017 Trust Services Criteria (March 2020 edition), from the AICPA.

HIPAA

The HIPAA Security Rule is risk-based. One standard is specific enough to map:

45 CFR 164.312(b) and what Howdah contributes
StandardTextWhat Howdah contributesWhat it does not
45 CFR 164.312(b), Audit controls“Implement hardware, software, and/or procedural mechanisms that record and examine activity in information systems that contain or use electronic protected health information.”Records one kind of activity: requests and calls that hit a Howdah rule. Bodies, cookies, Authorization headers and query strings are never logged.It does not record who accessed which records. That has to come from the application. The uri path is logged, so a route that carries a patient identifier puts it in the log.

Text: 45 CFR 164.312, eCFR.

Sources