Testing Audit Collection Plug-ins
Find out about the testing you can do for your collection plug-ins.
Be sure to analyze your database and audit trails for other issues that require testing.
Requirements for Testing Audit Collection Plug-ins
To prepare for testing, deploy the Audit Vault Server and an Audit Vault Agent, and check your systems and audit trails.
You should prepare for testing by performing the following:
-
Deploy the Audit Vault Server and an Audit Vault Agent.
-
Have an available source system, a system that generates the audit events.
-
Ensure that the agent is deployed on the same computer where the audit trail resides if the audit trail must be collected locally (for example, if it is written to operating system files).
Related Topics
Typical Audit Collection Plug-in Testing Processes
A typical audit collection testing process for collections plug-ins should look like this.
When you are testing procedures, your sequence of tasks should be similar to the following:
-
Perform functional testing:
-
Deploy the collection plug-in in the generated
.ziparchive that you created earlier in your test Oracle Audit Vault Server environment. -
Redeploy the agent (containing the updated plug-in artifacts) into your test Oracle Audit Vault agent environment.
-
Register the source using the
AVCLIutility. -
Issue an
AVCLI START COLLECTIONcommand to start gathering records from the audit trail supported by this collection plug-in. -
Validate the process, by looking at the data reports through the DBSecCentral Console, to ensure that:
-
Records in the source are now in the Oracle Audit Vault Server.
-
The data makes sense.
-
Fields are correctly mapped.
-
Values are valid.
-
-
Issue an
AVCLI STOP COLLECTIONcommand. -
Undeploy the collection plug-in..
-
Redeploy the agent as described in Step 1b.
-
-
Perform failure testing to see what happens when various things go wrong.
Some examples of failure are network failure, a source shutting down in the middle of collection, a power outage, and malformed input data. In all cases, the collection plug-in should not crash, and should be able to recover gracefully, continuing collection from where it left off. The guarantee you need to provide is that each audit record is sent to the Audit Vault Server once, and exactly once, regardless of failure.
-
Analyze performance by checking how many of these components the collection plug-in uses:
-
The CPU
-
The memory
-
The disk I/O
-
The network I/O
-
-
Check the performance under stress.
Some examples of stress are thirty days of continuous use, heavy event volume, or collection of trails for multiple sources at the same time, both on the same host, and on multiple hosts.
-
Perform security testing (for example, see if you can inject HTML or SQL).
-
Perform internationalization testing. Test the ability to handle data in multiple input languages.
-
If bugs are found, fix them and then repeat these steps.
See Also:
-
REGISTER TARGET to register the source
-
START COLLECTION FOR TARGET to start gathering records from the audit trail supported by this collection plug-in
-
UNDEPLOY PLUGIN to undeploy the collection plug-in
-
Related Topics
Deploying an Audit Vault Agent
See how you register an Agent, create an Agent home directory, install the Agent, and start the Agent.
This Agent can be on the same computer as the Audit Vault Server, or on a different one.
-
Register the Agent host using the
AVCLIcommandREGISTER HOST. -
Create a directory (
$AGENT_HOME) on the Agent host. -
Copy the
agent.jarfrom the Audit Vault Server$ORACLE_HOME/av/jlib/agent.jarto the$AGENT_HOME. -
Install the Agent using following command:
$ java -jar agent.jar -d $AGENT_HOME -
Start the Agent using
-keyoption. When prompted, enter the activation key that was provided by the Oracle DBSecCentral administrator. As you type it, this key is not displayed.$ $AGENT_HOME/bin/agentctl start -key Enter activation key:Subsequently, starting the Agent does not require the user to provide the activation key. The Agent can be started using the following command:
$ $AGENT_HOME/bin/agentctl start
It can take several seconds before the Agent comes to a complete stop, and the Agent process is shut down.
Activation is a one time activity. You do not have to do it again.
You can stop the Agent at any time by using the following command:
$ $AGENT_HOME/bin/agentctl stop
Related Topics
Redeploying the Oracle Audit Vault Agent
While testing the collection plug-in, it can be necessary to redeploy the agent for various reasons.
Before you redeploy an agent, .the agent must be already set up, and a directory created.
-
Copy the
agent.jarfrom the Audit Vault Server to a local directory. -
Update the agent by using the following command:
$ java -jar agent.jar -d $AGENT_HOME -
Start the agent with the
$AGENT_HOME/bin/agentctlstart command.
Note: The agent automatically determines if it is an upgrade or a new install depending on the destination directory provided to the java -jar agent.jar command.