Debian Codegraph @

utils/oscap-vm.8

raw
1 .TH oscap-vm "8" "September 2017" "Red Hat, Inc." "System Administration Utilities"
2
3 .SH NAME
4 oscap-vm \- Tool for offline SCAP evaluation of virtual machines.
5
6 .SH SYNOPSIS
7 \fBoscap-vm\fR \fI[--oscap=<oscap_binary>]\fR \fBdomain\fR \fIVM_DOMAIN [OSCAP_OPTIONS] INPUT_CONTENT
8
9 \fBoscap-vm\fR \fI[--oscap=<oscap_binary>]\fR \fBimage\fR \fIVM_STORAGE_IMAGE [OSCAP_OPTIONS] INPUT_CONTENT
10
11 .SH DESCRIPTION
12 \fBoscap-vm\fR performs SCAP evaluation of virtual machine domains or virtual machine images.
13
14 The tool mounts the filesystem of given virtual machine and runs \fBoscap(8)\fR to asses the mounted filesystem. The virtual machine is mounted read only, which prevents damaging of the virtual machine during the scan. The evaluation is performed offline which means that it is performed from the host and no additional software is installed in the virtual machine.
15
16 \fBoscap-vm\fR is a convenience wrapper on the top of the \fBoscap(8)\fR utility. Most of the SCAP capabilities provided by \fBoscap(8)\fR are available in \fBoscap-vm\fR as well.
17
18 .SH NOTICE
19 To mount the virtual machine filesystem, \fBoscap-vm\fR uses libguestfs to access the filestystem and FUSE (the "filesystem in userspace") to make it a mountable device.
20
21 The tool requires bash, guestmount, mktemp and umount to work properly. If \fBguestmount(1)\fR command is not present on your system, the tool will try to use older \fBfusermount(1)\fR utility instead.
22
23 .SH USAGE
24 Usage of the tool mimics usage and options of \fBoscap(8)\fR tool.
25
26 The type of scan target (either \fIdomain\fR or \fIimage\fR) has to be specified first. Then identify the target by the domain name (name of a named libvirt domain) or the image path, respectively.
27 Domain UUIDs can be used instead of names. Any domains including the running domains can be scanned.
28
29 Optionally, as the very first argument, different \fBoscap(8)\fR binary could be chosen to perform the scan, like --oscap=<path/to/oscap>.
30
31 The rest of the options are passed directly to \fBoscap(8)\fR utility. For the detailed description of its options please refer to \fBoscap(8)\fR manual page. However some of its options are not supported in \fBoscap-vm\fR because offline evaluation is used.
32
33 Last argument is SCAP content input file.
34
35 Supported common options are:
36 \-\-verbose <verbosity_level>
37 \-\-verbose\-log\-file <file>
38
39 .SS Evaluation of XCCDF content
40
41 \fBxccdf eval\fR module evaluates XCCDF files or SCAP source data streams. Result of each rule is printed to standard output, including rule title, rule id and security identifier (CVE, CCE).
42
43 .PP
44 .nf
45 .RS
46 \fBoscap-vm image \fIVM_STORAGE_IMAGE \fBxccdf eval \fI[options] INPUT_CONTENT\fR
47 \fBoscap-vm domain \fIVM_DOMAIN \fBxccdf eval \fI[options] INPUT_CONTENT\fR
48 .RE
49 .fi
50 .PP
51
52 Supported oscap xccdf eval options are:
53 \-\-profile <name>
54 \-\-rule <name>
55 \-\-tailoring-file <file>
56 \-\-tailoring-id <component-id>
57 \-\-cpe <name> (external OVAL dependencies are not supported yet!)
58 \-\-oval-results
59 \-\-check-engine-results
60 \-\-results <file>
61 \-\-results-arf <file>
62 \-\-thin-results
63 \-\-without-syschar
64 \-\-report <file>
65 \-\-skip-validation
66 \-\-fetch-remote-resources
67 \-\-local-files
68 \-\-progress
69 \-\-datastream-id <id>
70 \-\-xccdf-id <id>
71 \-\-benchmark-id <id>
72
73 Remediation of virtual machines is not supported.
74
75 .SS Evaluation of OVAL content
76
77 \fBoval eval\fR module scans the system and evaluate definitions from given OVAL Definitions file.
78
79 .PP
80 .nf
81 .RS
82 \fBoscap-vm image \fIVM_STORAGE_IMAGE \fBoval eval \fI[options] INPUT_CONTENT\fR
83 \fBoscap-vm domain \fIVM_DOMAIN \fBoval eval \fI[options] INPUT_CONTENT\fR
84 .RE
85 .fi
86 .PP
87
88 Supported oscap oval eval options are:
89 \-\-id <definition-id>
90 \-\-variables <file>
91 \-\-directives <file>
92 \-\-without-syschar
93 \-\-results <file>
94 \-\-report <file>
95 \-\-skip-validation
96 \-\-datastream-id <id>
97 \-\-oval-id <id>
98
99 .SS Collection of OVAL System Characteristic
100
101 \fBoval collect\fR module scans the system and collects items according to given OVAL Definitions file.
102
103 .PP
104 .nf
105 .RS
106 \fBoscap-vm image \fIVM_STORAGE_IMAGE \fBoval collect \fI[options] INPUT_CONTENT\fR
107 \fBoscap-vm domain \fIVM_DOMAIN \fBoval collect \fI[options] INPUT_CONTENT\fR
108 .RE
109 .fi
110 .PP
111
112 Supported oscap oval collect options are:
113 \-\-id <object>
114 \-\-syschar <file>
115 \-\-variables <file>
116 \-\-skip-validation
117
118 .SH EXAMPLES
119
120 Evaluate a Red Hat Enterprise Linux 7 virtual domain for compliance with the DISA STIG for Red Hat Enterprise Linux and generate a report.
121 .PP
122 .nf
123 .RS
124 oscap-vm domain rhel7 xccdf eval \\
125 \-\-report report.html \-\-results results.xml \\
126 \-\-profile stig-rhel7-disa \\
127 /usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml
128 .RE
129 .fi
130 .PP
131
132 Evaluate a Red Hat Enterprise Linux 6 virtual machine image for software vulnerabilities using OVAL definitions and generate a report.
133 .PP
134 .nf
135 .RS
136 oscap-vm image /var/lib/libvirt/images/rhel6.qcow2 oval eval \\
137 \-\-report report.html \-\-results results.xml \\
138 com.redhat.rhsa-RHEL6.xml
139 .RE
140 .fi
141 .PP
142
143 .SH EXIT STATUS
144 Normally, the exit status is 0 when operation finished successfully and 1 otherwise. In cases when oscap-vm performs evaluation of the system it may return 2 indicating success of the operation but incompliance of the assessed system.
145
146 .SH REPORTING BUGS
147 Please report bugs using https://github.com/OpenSCAP/openscap/issues
148
149 .SH SEE ALSO
150 oscap(8), scap-security-guide(8)
151
152 For detailed information please visit OpenSCAP website: https://www.open-scap.org
153
154 .SH AUTHORS
155 .nf
156 Martin Preisler <[email protected]>
157 Jan Černý <[email protected]>
158 .fi