NUWCDIVNPT / stig-manager

An API and client for managing STIG assessments
Other
118 stars 29 forks source link

"No host_name in ASSET" #1420

Closed Ryker49 closed 1 hour ago

Ryker49 commented 3 hours ago

Is there an existing issue for this?

Are you using the latest version of STIG Manager?

Where are you experiencing the issue?

Current Behavior

I am testing out the software for my team to use with various STIGS and it won't accept the ckl files I send it. It keeps giving various reasons as to why they won't import, this notification was given in response to a scan. Any help at all is appreciated.

Expected Behavior

It would accept the imported ckl file.

Steps To Reproduce

No response

Can you provide screenshots, logs, or other useful artifacts?

No response

Describe your Environment

- Hosting:
- Browser:
- OS:
- Node:
- npm:
cd-rite commented 3 hours ago

What tool are you using to create these .ckl files? Valid .ckl files should have an ASSET block that includes a HOST_NAME element that looks something like this:

<?xml version="1.0" encoding="UTF-8"?>
<CHECKLIST>
  <ASSET>
    <ROLE>Workstation</ROLE>
    <ASSET_TYPE>Computing</ASSET_TYPE>
    <MARKING>NONE</MARKING>
    <HOST_NAME>hostname</HOST_NAME>
    <HOST_IP></HOST_IP>
    <HOST_MAC></HOST_MAC>
    <HOST_GUID/>
    <HOST_FQDN>hostname.fqdn.etc</HOST_FQDN>
    <TECH_AREA/>
    <TARGET_KEY></TARGET_KEY>
    <WEB_OR_DATABASE>false</WEB_OR_DATABASE>
    <WEB_DB_SITE/>
    <WEB_DB_INSTANCE/>
  </ASSET>
  <STIGS>
    <iSTIG>...

....... rest of .ckl file ....
Ryker49 commented 1 hour ago

Can't say for certain about the tool, but after I went into the file on Notepad and gave it just "hostname" it worked fine. Appreciate the post, it helped