wk2 security Flashcards
What is authentication
The process by which a ysstem verifies the identity of a user who wishes to access it. In the context of CPhulk, this primarily relates to detected authentication attempts incoming to the server via one of the monitored services or via PAM authentication
PAM
An acronym that, for our purposes at least, stands for Pluggable Authentication Module. On the system, this module handles the majority of standard authentiation attempts coming into the server, whether being called by another PAM-integrated 3rdparty-service, or for general system authentication. cphulk requests information from PAM to determine if a login attempt is a brute force attacke
What tools might you use to help protect against a denial of service attack?
firewalls such as CSF with LFD
apache’s mod_evasive or mod_qos modules for apache-specific attacks
What tool might you use to help protect against a brute force attack?
cPHulk Brute Force Protection - monitors incoming authentication attempts and applies rules as necessary
What services does cPHulk monitor
SSH, FTP, IMAP, POP3, SMTP, any 3rd party services that authenticate using PAM
Default duration for username-based protection lockout?
5 min
Default duration for IP-based protection lockout?
15 min
Script to disable cphulk?
/scripts/restartsrv_cphulkd stop
There are five phases of an HTTP transaction in ModSecurity that can be used to intercept, inspect, or change behavior.
- Request Header
- Request Body
- Response Header
- Response Body
- Logging
What’s the syntax for a secrule definition
The SecRule directive instructs the server on where to look (using a variable), what to look for (using an operator), and what to do if it finds a match (action). SecRule definitions follow a standard format, using variables, operators, and an optional action, all contained on a single line:
SecRule Variables Operator [Action]
Show above: Basic syntax of a SecRule definition, indicating by the brackets that the “Action” value is optional,
What is owasp
s an independent, online project that focuses on making web application security tools, knowledge, and methods freely available to the general internet