---
title: "lint/security"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

Code that can be exploited, or that leaks or hides data.

**[add-sensitive-parameter](/docs/rules/lint/security/add-sensitive-parameter)**

Requires that parameters that are likely to contain sensitive information (e.g., passwords) are marked with the `#[SensitiveParameter]` attribute.

In the `code-quality` set. Safe fix. Intent: suspicious.

**[no-debug-calls](/docs/rules/lint/security/no-debug-calls)**

Remove or report debug calls left in code: dd(), dump(), var_dump(), ray(), and ->dd()/->dump() in Pest expectations.

In the `coding-style` set. Unsafe fix: it can change behaviour. Intent: suspicious.

**[no-eval](/docs/rules/lint/security/no-eval)**

Detects unsafe uses of the `eval` construct.

In the `code-quality` set. Report only. Intent: suspicious.

**[no-ffi](/docs/rules/lint/security/no-ffi)**

Detects unsafe use of the PHP FFI (Foreign Function Interface) extension.

In the `code-quality` set. Report only. Intent: suspicious.

**[no-global](/docs/rules/lint/security/no-global)**

Detects the use of the `global` keyword and the `$GLOBALS` variable.

In the `code-quality` set. Report only. Intent: suspicious.

**[no-homoglyph-names](/docs/rules/lint/security/no-homoglyph-names)**

Replace accidental usage of homoglyphs (non ascii characters) in names.

In the `code-quality` set. Unsafe fix: it can change behaviour. Intent: suspicious.

**[no-insecure-comparison](/docs/rules/lint/security/no-insecure-comparison)**

Detects insecure comparison of passwords or tokens using `==`, `!=`, `===`, or `!==`.

In the `code-quality` set. Report only. Intent: suspicious.

**[no-literal-password](/docs/rules/lint/security/no-literal-password)**

Detects the use of literal values for passwords or sensitive data.

In the `code-quality` set. Report only. Intent: suspicious.

**[no-request-variable](/docs/rules/lint/security/no-request-variable)**

Detects the use of the `$_REQUEST` variable, which is considered unsafe.

In the `code-quality` set. Report only. Intent: suspicious.

**[no-restricted-functions](/docs/rules/lint/security/no-restricted-functions)**

Flags calls to functions that are disallowed via rule configuration.

Not in any set. Report only. Intent: suspicious.

**[no-restricted-instantiation](/docs/rules/lint/security/no-restricted-instantiation)**

Flags direct instantiation of specific types that are disallowed via rule configuration.

Not in any set. Report only. Intent: suspicious.

**[no-tainted-data](/docs/rules/lint/security/no-tainted-data)**

Detects user (tainted) data being passed directly to sink functions or constructs (such as `echo`, `print`, or user-defined "log" functions).

In the `code-quality` set. Report only. Intent: suspicious.

**[require-preg-quote-delimiter](/docs/rules/lint/security/require-preg-quote-delimiter)**

This rule requires that when using `preg_quote()`, the second `$delimiter` argument is always provided.

In the `code-quality` set. Report only. Intent: suspicious.
