Replies: 1 comment 2 replies
-
|
Hi @vanderpol, I can't see the attachment. However, yes, I know that this behavior is documented at least in part 5.3.5.1.2 (functions), and part 5.3.6.4 (objects and states), of the OVAL Language Specification document. When I was working on Joval, I wrote the engine so that it automatically managed object permutations arising from variables so that it wasn't necessary to add the same code to all the various object collection implementations. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
With the new shellcommand test, the documentation states "The evaluation of the object should always produce one item.", this was based on the discussions of the proposal, and how the existing CIS extension worked in the past. This question is more of a general OVAL question, when the object of a test refers to a variable, this generally implies that multiple items can be created, (think of a UNIX/Windows file test, where the filepath is a variable to a list of filepaths etc..)
Should the documentation for the shellcommand be updated to clarify, or does some other higher level documentation in OVAL already define this scenario? If so, can anyone point to a specific spot in the schema files that clearly defines this behavior? Something like "when using var_refs as part of the object, this has the same effect as having multiple objects defined, and multiple system data items may be collected as necessary."
In our SCC implementation, we currently only create one item regardless of the content, but it seems this may be shortsighted, as the var ref with a list of commands was not in mind.
In the attached sample content it demonstrates creating 2 items from a file test that points to a variable containing 2 filepaths, but only creating 1 item for a shellcommand test which points to a variable containing 2 powerhell commands. I assume this should be creating 2 items as well?
Uploading OVAL-Results_shell-command-with-variables.zip…
Thoughts on this @solind?
Beta Was this translation helpful? Give feedback.
All reactions