The following is a description of the elements, types, and attributes that compose the HP-UX specific tests found in Open Vulnerability and Assessment Language (OVAL). Each test is an extension of the standard test element defined in the Core Definition Schema. Through extension, each test inherits a set of elements and attributes that are shared amongst all OVAL tests. Each test is described in detail and should provide the information necessary to understand what each element and attribute represents. This document is intended for developers and assumes some familiarity with XML. A high level description of the interaction between the different tests and their relationship to the Core Definition Schema is not outlined here.
The OVAL Schema is maintained by The MITRE Corporation and developed by the public OVAL Community. For more information, including how to get involved in the project and how to submit change requests, please visit the OVAL website at http://oval.mitre.org.
HP-UX Definition
5.7
5/3/2010 8:41:17 PM
Copyright (c) 2002-2010, The MITRE Corporation. All rights reserved. The contents of this file are subject to the terms of the OVAL License located at http://oval.mitre.org/oval/about/termsofuse.html. See the OVAL License for the specific language governing permissions and limitations for use of this schema. When distributing copies of the OVAL Schema, this license header must be included.
From /usr/bin/getconf. See getconf manpage for specific fields
- the object child element of an getconf_test must reference an getconf_object
- the state child element of an getconf_test must reference an getconf_state
This is the parameter name to check
- datatype attribute for the parameter_name entity of a getconf_object should be 'string'
This is the pathname to check. Note that pathname is optional in the getconf call. An empty pathname in OVAL should be interpreted as if it was not supplied to the getconf call.
- datatype attribute for the pathname entity of a getconf_object should be 'string'
This is the parameter name to check
- datatype attribute for the parameter_name entity of a getconf_state should be 'string'
This is the pathname to check. Note that pathname is optional in the getconf call. An empty pathname in OVAL should be interpreted as if it was not supplied to the getconf call.
- datatype attribute for the pathname entity of a getconf_state should be 'string'
The output produced by the getconf command.
- datatype attribute for the output entity of a getconf_state should be 'string'
From /usr/sbin/swlist -l patch PHxx_yyyyy. See swlist manpage for specific fields
- the object child element of an patch53_test must reference an patch53_object
- the state child element of an patch53_test must reference an patch53_state
HP-UX patch names begin with 'PH'
- datatype attribute for the swtype entity of a patch53_object should be 'string'
The third and fourth characters in HP-UX patch names indicate the area of software being patched. CO - General HP-UX commands KL - Kernel patches NE - Network specific patches SS - All other subsystems (X11, starbase, etc.)
- datatype attribute for the area_patched entity of a patch53_object should be 'string'
The sixth through tenth characters in HP-UX patch names represent a unique numeric identifier for the patch
- datatype attribute for the patch_base entity of a patch53_object should be 'string'
HP-UX patch names begin with 'PH'
- datatype attribute for the swtype entity of a patch53_state should be 'string'
The third and fourth characters in HP-UX patch names indicate the area of software being patched. CO - General HP-UX commands KL - Kernel patches NE - Network specific patches SS - All other subsystems (X11, starbase, etc.)
- datatype attribute for the area_patched entity of a patch53_state should be 'string'
The sixth through tenth characters in HP-UX patch names represent a unique numeric identifier for the patch
- datatype attribute for the patch_base entity of a patch53_state should be 'string'
The Patch53Behaviors complex type defines a number of behaviors that allow a more detailed definition of the patch53_object being specified. Note that using these behaviors may result in some unique results. For example, a double negative type condition might be created where an object entity says include everything except a specific item, but a behavior is used that might then add that item back in.
'supersedence' specifies that the object should also match any superseding patches to the one being specified. In other words, if set to True the resulting object set would be the original patch specified plus any superseding patches. The default value is 'false' meaning the object should only match the specified patch.
From /usr/sbin/swlist -l patch PHxx_yyyyy. See swlist manpage for specific fields
5.3
Replaced by the patch53_test. The patch_name entity was removed from the patch_object element, and replaced with the swtype, area_patched, and patch_base entities, because the patch_name element can be constructed from the swtype, area_patched, and patch_base entities. Likewise, the patch_name entity was removed from the patch_state element for the same reason. Also, a behaviors entity was added to the patch_object to allow the object to match both the original patch and any superseding patches. A new test was created to reflect these changes. See the patch53_test.
This test has been deprecated and will be removed in version 6.0 of the language.
DEPRECATED TEST: ID:
- the object child element of an patch_test must reference an patch_object
- the state child element of an patch_test must reference an patch_state
5.3
Replaced by the patch53_object. The patch_name entity was removed from the patch_object element, and replaced with the swtype, area_patched, and patch_base entities, because the patch_name element can be constructed from the swtype, area_patched, and patch_base entities. Also, a behaviors entity was added to the patch_object to allow the object to match both the original patch and any superseding patches. A new object was created to reflect these changes. See the patch53_object.
This object has been deprecated and will be removed in version 6.0 of the language.
DEPRECATED OBJECT: ID:
This is the patch name to check
- datatype attribute for the patch_name entity of a patch_object should be 'string'
5.3
Replaced by the patch53_state. The patch_name entity was removed from the patch_state element, and replaced with the swtype, area_patched, and patch_base entities, because the patch_name element can be constructed from the swtype, area_patched, and patch_base entities. A new state was created to reflect these changes. See the patch53_state.
This state has been deprecated and will be removed in version 6.0 of the language.
DEPRECATED STATE: ID:
This is the patch name to check
- datatype attribute for the patch_name entity of a patch_state should be 'string'
HP-UX patch names begin with 'PH'
- datatype attribute for the swtype entity of a patch_state should be 'string'
The third and fourth characters in HP-UX patch names indicate the area of software being patched. CO - General HP-UX commands KL - Kernel patches NE - Network specific patches SS - All other subsystems (X11, starbase, etc.)
- datatype attribute for the area_patched entity of a patch_state should be 'string'
The sixth through tenth characters in HP-UX patch names represent a unique numeric identifier for the patch
- datatype attribute for the patch_base entity of a patch_state should be 'string'
Output of /usr/sbin/swlist command. Note: A quick way to check for the installation of a specific fileset is to use the command 'swlist -a version -l fileset filesetname'. See manpage for swlist for explanation of additional command options.
- the object child element of an swlist_test must reference an swlist_object
- the state child element of an swlist_test must reference an swlist_state
This is the name of the bundle or fileset to check.
- datatype attribute for the swlist entity of a swlist_object should be 'string'
This is the name of the bundle or fileset to check.
- datatype attribute for the swlist entity of a swlist_state should be 'string'
- datatype attribute for the bundle entity of a swlist_state should be 'string'
- datatype attribute for the fileset entity of a swlist_state should be 'string'
- datatype attribute for the version entity of a swlist_state should be 'fileset_revision'
- datatype attribute for the title entity of a swlist_state should be 'string'
- datatype attribute for the vendor entity of a swlist_state should be 'string'
This test allows for analysis of account settings in trusted HP-UX installations
- the object child element of an trusted_test must reference an trusted_object
- the state child element of an trusted_test must reference an trusted_state
This is the name of the user being checked
- datatype attribute for the username entity of a trusted_object should be 'string'
This is the name of the user being checked
- datatype attribute for the username entity of a trusted_state should be 'string'
The user's ID
- datatype attribute for the uid entity of a trusted_state should be 'string'
This is the encrypted version of the user's password
- datatype attribute for the password entity of a trusted_state should be 'string'
The Account owner for pseudo-users
- datatype attribute for the account_owner entity of a trusted_state should be 'string'
Boot authorization
- datatype attribute for the boot_auth entity of a trusted_state should be 'string'
getprpwaid uses the audit ID rather than the UID
- datatype attribute for the audit_id entity of a trusted_state should be 'string'
- datatype attribute for the audit_flag entity of a trusted_state should be 'string'
Minimum time between password changes
- datatype attribute for the pw_change_min entity of a trusted_state should be 'string'
Maximum password length in characters
- datatype attribute for the pw_max_size entity of a trusted_state should be 'string'
Password expiration time in seconds
- datatype attribute for the pw_expiration entity of a trusted_state should be 'string'
Trusted lifetime, after which the account is locked
- datatype attribute for the pw_life entity of a trusted_state should be 'string'
Time of last successful password change
- datatype attribute for the pw_change_s entity of a trusted_state should be 'string'
Time of last unsuccessful password change
- datatype attribute for the pw_change_u entity of a trusted_state should be 'string'
Absolute account lifetime in seconds
- datatype attribute for the acct_expire entity of a trusted_state should be 'string'
Maximum time allowed between logins before the account is locked
- datatype attribute for the max_llogin entity of a trusted_state should be 'string'
The time in seconds before expiration when a warning will appear
- datatype attribute for the exp_warning entity of a trusted_state should be 'string'
Who can change this user's password
- datatype attribute for the usr_chg_pw entity of a trusted_state should be 'string'
Allows user to use system-generated passwords
- datatype attribute for the gen_pw entity of a trusted_state should be 'string'
Whether a triviality check is performed on user-generated passwords
- datatype attribute for the pw_restrict entity of a trusted_state should be 'string'
Determines if null passwords are allowed for this account
- datatype attribute for the pw_null entity of a trusted_state should be 'string'
Allows password generator to use random printable ASCII characters
- datatype attribute for the pw_gen_char entity of a trusted_state should be 'string'
Allows password generator to use random letters
- datatype attribute for the pw_gen_let entity of a trusted_state should be 'string'
Specifies the times when the user may login to this account
- datatype attribute for the login_time entity of a trusted_state should be 'string'
The user ID of the user who last changed the password on the user's account, if it was not the account owner
- datatype attribute for the pw_changer entity of a trusted_state should be 'string'
The time of the last successful login using this account
- datatype attribute for the login_time_s entity of a trusted_state should be 'string'
The time of the last unsuccessful login using this account
- datatype attribute for the login_time_u entity of a trusted_state should be 'string'
The terminal or remote host associated with the last successful login to the account
- datatype attribute for the login_tty_s entity of a trusted_state should be 'string'
The terminal or remote hosts associated with the last unsuccessful login to the account
- datatype attribute for the login_tty_u entity of a trusted_state should be 'string'
The number of unsuccessful login attempts since that last successful login
- datatype attribute for the num_u_logins entity of a trusted_state should be 'string'
The maximum number of unsuccessful login attempts before the account is locked
- datatype attribute for the max_u_logins entity of a trusted_state should be 'string'
Indicates whether the administrative lock on the account is set
- datatype attribute for the lock_flag entity of a trusted_state should be 'string'