You can find our user documentation at docs.cpanel.net.

Check out our new API beta site!

Child pages
  • Guide to Standardized Hooks - modsec_vendor Script
Skip to end of metadata
Go to start of metadata

Introduction

The modsec_vendor script category's events occur when you run a WHM script These scripts reside in the /usr/local/cpanel/scripts/ directory.

These are not the same as the deprecated Script Hooks

modsec_vendor::disable


Note:

This hook only exists on systems that run cPanel & WHM version 92 and later. 

This event triggers when the modsec_vendor script disables a ModSecurity vendor.

Available stages:

  • pre — Hook action code runs before the script disables a vendor.
  • post — Hook actions code runs after the script disables a vendor.

Action Code Runs As:

root

Blocking Attribute:

Escalate Privileges Attribute:

N/A

Returns

This event does not return any data.

modsec_vendor::disable_configs


Note:

This hook only exists on systems that run cPanel & WHM version 92 and later. 

This event triggers when the script disables a ModSecurity vendor's configuration.

Available stages:

  • pre  — Hook action code runs before the script disables the vendor's configuration.
  • post  — Hook actions code runs after the script disables the vendor's configuration.

Action Code Runs As:

root

Blocking Attribute:

Escalate Privileges Attribute:

N/A

Returns

This event does not return any data.

modsec_vendor::disable_updates


Note:

This hook only exists on systems that run cPanel & WHM version 92 and later. 

This event triggers when the script disables automatic updates for a ModSecurity vendor.

Available stages:

  • pre  — Hook action code runs before the script disables automatic updates for a ModSecurity vendor.
  • post  — Hook actions code runs after the script disables automatic updates for a ModSecurity vendor.

Action Code Runs As:

root

Blocking Attribute:

Escalate Privileges Attribute:

N/A

Returns

This event does not return any data.

modsec_vendor::enable


Note:

This hook only exists on systems that run cPanel & WHM version 92 and later. 

This event triggers when the script enables a ModSecurity vendor.

Available stages:

  • pre  — Hook action code runs before the script enables a vendor.
  • post  — Hook actions code runs after the script enables a vendor.

Action Code Runs As:

root

Blocking Attribute:

Escalate Privileges Attribute:

N/A

Returns

This event does not return any data.

modsec_vendor::enable_configs


Note:

This hook only exists on systems that run cPanel & WHM version 92 and later. 

This event triggers when the script enables a ModSecurity vendor's configuration.

Available stages:

  • pre  — Hook action code runs before the script enables a vendor's configuration.
  • post  — Hook actions code runs after the script enables a vendor's configuration.

Action Code Runs As:

root

Blocking Attribute:

Escalate Privileges Attribute:

N/A

Returns

This event does not return any data.

modsec_vendor::enable_updates


Note:

This hook only exists on systems that run cPanel & WHM version 92 and later. 

This event triggers when the script enables automatic updates for a ModSecurity vendor.

Available stages:

  • pre  — Hook action code runs before the script enables updates for a ModSecurity vendor.
  • post  — Hook actions code runs after the script enables updates for a ModSecurity vendor.

Action Code Runs As:

root

Blocking Attribute:

Escalate Privileges Attribute:

N/A

Returns

This event does not return any data.

modsec_vendor::remove


Note:

This hook only exists on systems that run cPanel & WHM version 92 and later. 

This event triggers when the script removes a ModSecurity vendor.

Available stages:

  • pre  — Hook action code runs before the script removes a ModSecurity vendor.
  • post  — Hook actions code runs after the script removes a ModSecurity vendor.

Action Code Runs As:

root

Blocking Attribute:

Escalate Privileges Attribute:

N/A

Returns

This event does not return any data.

modsec_vendor::update


Note:

This hook only exists on systems that run cPanel & WHM version 92 and later. 

This event triggers when the script updates a ModSecurity vendor.

Available stages:

  • pre  — Hook action code runs before the script updates a ModSecurity vendor.
  • post  — Hook actions code runs after the script updates a ModSecurity vendor.

Action Code Runs As:

root

Blocking Attribute:

Escalate Privileges Attribute:

N/A

Returns

This event does not return any data.


  • No labels