CSV Legacy Remote File Configuration
  • 01 Apr 2024
  • 16 Minutes to read
  • Dark
    Light
  • PDF

CSV Legacy Remote File Configuration

  • Dark
    Light
  • PDF

Article Summary

This adapter configuration page details the configuration of the following CSV based adapters, using the Legacy CSV Remote File Configuration.
For full details about configuration of the CSV and JSON adapters refer to the CSV adapter.

Note:

Parameters

  1. File contains users information

    • Selecting this option imports the file as a list of users instead of devices.
    • See the below section for fields required in a Users Information File.
  2. File contains installed software information

    • Selecting this option imports an installed software list instead of devices.
    • See the below section for fields required in a Software Applications File.
  3. File name (required) - A unique name for the adapter connection. The value supplied here is populated in the File name field for the data supplied by a specific adapter connection.

    Note:

    The specified File Name is not required to be the actual imported file name. This field is an identifier for use in the Query Wizard.

  4. Upload file (optional) - Select a local CSV file to import.

    Note:
    • When using this option, the data imported from the CSV will never be fetched again, as the file is static.
    • Each adapter that imports files supports a different file type: CSV, JSON, or XML.
  5. Path to resource (SMB/URL/Folder path) (optional) - Specify an SMB share path, HTTP(S) URL, FTP URL, or folder path where a file can be fetched for this connection.

    Note:

    If you are uploading a file from an online storage location and you want to use this file only for custom enrichment, you must disable the Active connection setting on the CSV adapter connection. In this case, the CSV adapter connection will not fetch new assets.

    DisableActiveConnection-cut.png

    • This path must include the file name.
    • If an SMB share path is supplied:
      • The path must start with double-backslashes ("\\").
      • If Suppress NetBIOS name lookup is enabled, the path must include the server's full NetBIOS name in the following format:
        \\<full_server_NetBIOS_name>\path\to\file.ext
      • Wildcards are supported in file names.
        • Suppress NetBIOS name lookup must be enabled.
        • The asterisk * wildcard matches any sequence of characters (0 or more, including NULL characters).
        • The ? wildcard matches a single character (or a NULL at the end of a file name).
        • The matching file names are sorted by file creation time.
        • If multiple files match the wildcard search, the most recently created file is selected.
    • If an HTTP(S) URL is supplied:
      • The endpoint must support the HTTP GET method.
      • All URLs must start with HTTP:// or with HTTPS://
    • If an FTP URL is supplied, all URLs must start with FTP:// or with SFTP:// or with FTPS://
      • The default port for each method is as follows:
        • FTP: 21
        • SFTP: 22
        • FTPS: 990
      • A custom port can be specified in the supplied path, for example: ftps://my.host.in.axonius.com:21/path/to/file.ext
    • If a folder path is supplied:
      • The remaining necessary parameters for Microsoft OneDrive must be provided.
      • The path must be separated by forward slashes.
      • For personal files on Microsoft OneDrive, use the path relative to 'My files'. For example, the folder path for "My files > Documents > Axonius > file.csv" should be Documents/Axonius/file.csv).
      • Use the URL of the file when opened in the browser (recommended). Alternatively, use the Copy Link from the file (this method will work, but, the link will expire and will need to be regularly updated)
  6. Username for online resource (Share/URL) and Password for online resource (Share/URL) (optional) - Username and password for the SMB share, URL, or folder path. These settings may be required if the "ubuntu" user on the Axonius system does not have access to the SMB share / URL / folder path.

    • If supplied for an SMB or folder path, the username and password are used for authentication of this connection.
    • If supplied for a URL, the username and password are used for BASIC authentication of this connection.
Note:

When you configure the CSV adapter to fetch CSV files from Microsoft OneDrive, you are required to supply File name, Path to resource (SMB/URL/Folder path), Username for online resource (Share/URL), and Password for online resource (Share/URL), as well as the following three fields Microsoft OneDrive Tenant ID, Microsoft OneDrive Client ID, and Azure Cloud Environment. When multi-factor authentication is used in the Azure/Microsoft Office account Username for online resource (Share/URL), and Password for online resource (Share/URL) may not be used.

  1. Microsoft OneDrive Tenant ID (optional) - Microsoft Entra ID (Azure AD) ID. Used to authenticate Microsoft OneDrive through Microsoft Entra ID (Azure AD) and use the Graph API.
  2. Microsoft OneDrive Client ID (optional) - The Application ID of the Axonius application.
  3. Azure Cloud Environment (optional) - Select your Microsoft Azure or Microsoft Entra ID (Azure AD) cloud environment type.
Note:

When you configure the CSV adapter to fetch a file from Azure, you are required to supply File name, as well as the following three fields Azure Storage Container Name, Azure Connection String, and Azure Blob Name.

  1. Azure Storage Container Name (optional) - The name of the container on Azure where the CSV file is located.

  2. Azure Connection String (optional) - The connection string that includes the authorization information required to access data in the Azure Storage account. You can find the connection string in the Azure portal under Storage Accounts -> [Account Name] -> Access Keys, where [Account Name] is the specific storage account that contains the CSV files to be ingested into Axonius. Copy the entire connection string and paste it into this field.

  3. Azure Blob Name (optional) - The Azure Blob Name.

  4. Amazon S3 bucket name (optional) - The name of the S3 bucket to fetch the file.

  5. Amazon S3 object location (optional) - The location within the S3 bucket where the file can be fetched.

  6. Amazon S3 Use EC2 Attached Instance Profile

    • If enabled, Axonius uses the EC2 instance (Axonius installed on) attached IAM role / instance profile.
    • If disabled, Axonius uses the supplied account details in the AWS Access Key ID and AWS Access Key Secret.
  7. Amazon S3 Access Key ID and Amazon S3 Secret Access Key (optional) - The credentials used to access the S3 object.

  8. Box Platform private key configuration file (optional) - The private key configuration file that provides the Required Permissions to fetch assets. This JSON authentication file must have permission to read/download the specified File ID. In order to fetch files from Box Platform both of these settings must be configured.

  9. Box File ID (optional) - The ID of the Box file. The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL https://*.app.box.com/files/123 the file_id is 123. Refer to Box Platform documentation for more information

  10. Encoding (optional) - Specify a specific file encoding or let Axonius encode it.

    • If supplied, Axonius tries to encode the CSV file based on the specified file encoding type (for example, utf-8) for this connection.
    • If not supplied, Axonius tries to encode the CSV file based on common file encoding types for this connection.
  11. Ignore illegal characters - Select whether illegal characters are ignored during the data import. An illegal character is any character that cannot be translated in the specified file encoding.

    • If enabled, Axonius ignores illegal characters and omits those from the imported data.
    • If disabled, if an illegal character is found, the entire data import fails.
  12. Verify SSL - If an HTTP(S) URL is specified, verify the SSL certificate offered by the host supplied in the Path to Resource (SMB/URL/Folder path) field. For more details, see SSL Trust & CA Settings.

  13. HTTP proxy (optional) - A proxy to use when connecting to the HTTP(S) URL specified in Path to Resource (SMB/URL/Folder path).

  14. HTTPS proxy (optional) - A proxy to use when connecting to the HTTP(S) URL specified in Path to Resource (SMB/URL/Folder path).

  15. Additional HTTP headers (optional) - Specify additional information to pass with the HTTP request.

    • If supplied, Axonius passes additional information with the HTTP request (for example, {"Accept": "text/csv"}) for this connection.
    • If not supplied, Axonius does not pass additional information with the HTTP request for this connection.
  16. Suppress NetBIOS name lookup - Applicable only for files fetched from SMB share.

    • If enabled and the file is fetched from SMB share, Axonius does not verify the server's name via NetBios for this connection. This option must be enabled in order to use wildcards in SMB file names.
    • If disabled and if the file is fetched from SMB share, Axonius verifies the server's name via NetBios for this connection.
  17. Custom prefix for dynamic fields (optional) - Specify a prefix to be added for dynamic fields. A dynamic field refers to any field that is not part of an asset default field.

    • If supplied, Axonius adds the specified prefix for any dynamic field. This can assist you in identifying such fields.
    • If not supplied, Axonius does not add any prefix for any dynamic field.
  18. Multi-value fields delimiter (optional) - Specify a delimiter to separate between values within the same field in the imported CSV file.

    • If supplied, Axonius considers fields that contain the specified delimiter as multi-value fields. For example, ';'.
    • If not supplied, Axonius considers all imported fields as single-value fields.
  19. File Type - Select the type of file uploaded, either CSV, or Excel Spreadsheet. When you select "Excel Spreadsheet", the adapter supports .xls , and.xlsx files, and pulls in the entirety of the first Worksheet as if it were a CSV table. Functionality for tables uploaded from Excel is the same as for CSV files.

To learn more about common adapter connection parameters and buttons, see Adding a New Adapter Connection.

CSV adapter


Advanced Settings

Note:

Advanced settings can either apply for all connections for this adapter, or you can set different advanced settings and/or different scheduling for a specific connection. Refer to ​Advanced Configuration for Adapters.

  • Set Time Zone - Set the time zone of date fields fetched with this adapter. Default is UTC.
  • Use fetch time for Last Seen - Select this option to set that all entities (devices and users) fetched by this adapter have their Last Seen set to the time the entity was fetched (fetch_time).

APIs

When uploading files from Microsoft OneDrive, Axonius uses the List FIles Shared With Me - OneDrive API - OneDrive dev center.

Required Permissions

When uploading files from Microsoft OneDrive, and using OAuth authentication the value supplied in Microsoft OneDrive Client ID must have Files.Read.All delegated permissions in the Azure application in order to to fetch files.

When uploading files from Microsoft OneDrive, the value supplied in Username for online resource (Share/URL) must have Files.Read.All permissions to fetch files.


If multiple file options are added to a 'file-based' adapter, what file is imported?

If multiple import file import types are provided in the CSV adapter (or for other file-based adapter), they are imported in the following order:

  1. Path to resource (SMB/URL/Folder path)
  2. Amazon S3 Bucket
  3. Uploaded file


The file content is determined based on the following order:

  1. User assets - If File contains users information is selected
  2. Installed software list - If File contains installed software information field is enabled.
  3. Device assets - If none of the options above is selected, the CSV is assumed to be a device CSV. If a device exists more than once in a CSV file, only the first device found is used.

Which fields are required for each Import Type?


Import Type*KEY fieldsOptional fields
From a File- File name
- Upload file
- File contains users information
- File contains installed software information
- Encoding
- Ignore illegal characters
- Custom prefix for dynamic fields
- Multi-value fields delimiter
- Connection Label
From an HTTP(S) URL- File name
- Path to resource (SMB/URL/Folder path)
- Verify SSL
- Choose Instance (on multi-node Axonius environment)
- File contains users information
- File contains installed software information
- Username for online resource (Share/URL)
- Password for online resource (Share/URL)
- Encoding
- HTTP proxy
- HTTP proxy
- HTTPS proxy
- Additional HTTP headers
- Ignore illegal characters
- Custom prefix for dynamic fields
- Multi-value fields delimiter
- Connection Label
From an FTP URL- File name
- Path to resource (SMB/URL/Folder path)
- Choose Instance (on multi-node Axonius environment)
- File contains users information
- File contains installed software information
- Username for online resource (Share/URL)
- Password for online resource (Share/URL)
- Encoding
- Ignore illegal characters
- Custom prefix for dynamic fields
- Multi-value fields delimiter
- Connection Label
From a file share- File name
- Path to resource (SMB/URL/Folder path)
- Choose Instance (on multi-node Axonius environment)
- Suppress NetBIOS name lookup
- File contains users information
- File contains installed software information
- Username for online resource (Share/URL)
- Password for online resource (Share/URL)
- Encoding
- Ignore illegal characters
- Custom prefix for dynamic fields
- Multi-value fields delimiter
- Connection Label
From Microsoft OneDrive- File name
- Path to resource (SMB/URL/Folder path)
- Choose Instance (on multi-node Axonius environment)
- File contains users information
- File contains installed software information
- Username for online resource (Share/URL)
- Password for online resource (Share/URL)
- Microsoft OneDrive Tenant ID
- Microsoft OneDrive Client ID
- Azure Cloud Environment
- Encoding
- Ignore illegal characters
- Custom prefix for dynamic fields
- Multi-value fields delimiter
- Connection Label

Note:
Based on the order of operations, any fields that are specified and not applicable to the import type are ignored. For example, filling in the Amazon S3 bucket name field while the Path to resource (SMB/URL/Folder path) is populated causes the Path to resource (SMB/URL/Folder path) property to be ignored but not removed.

Which fields are imported with a devices file?

The following data is imported as common data fields while any other data in the CSV/JSON/XML is exclusively be Adapter Specific data.

Note:
Fields marked as *KEY indicate that you need to include at least one of these fields as part of the imported CSV file. More *KEY fields available in the CSV file help provide stronger correlation.
UI Field NameAccepted CSV Field Name(s)Notes
Architecturearchitecture
Asset Namename, vmname, displayname, assetname, machinename, instancename, samaccountname, endpointnameIf no hostname is configured, the Asset Name value is used for the Host Name.
Device Manufacturer Serialserial, serialnumber, sn, hostserialnumber, deviceserialnumber, serial#, endpointserialnumber*KEY
Device Manufacturermanufacturer, devicemanufacturer
Device Modelmodel, modelid, endpointmodel
Domaindomain, domainname, endpointdomainIf this value is not specified AND the device is specified in DOMAIN\Name format, Axonius replaces the Domain value with the parsed out DOMAIN.
Host Namehostname, host, fqdn, fullyqualifieddomainname, compname, computername, servername, dnsname, hosthostname, endpointfqdn*KEY - If the device is specified in DOMAIN\Name, Axonius parses the DOMAIN value out. If the CSV field is set to "unknown", Axonius sets the Host Name to blank.
IDid, identifier, serialnumber, assetid, resourceid*KEY - The ID field is a combination of the "CSV File Name" value and the specified field names.
IPsipaddresstext, ip, ipaddress, ipaddresses, ips, primaryip, endpointipaddress, , ipaddresstext, ip, ipaddress, ipaddresses, ips, primaryip, endpointipaddress, registerip, sourceip, managementip, privateip, allips, lastip, address, ipaddresslist, ipaddri, ipaddrs, ipaddr, localip, privateipaddressesThis field accepts a comma separated set of IP addresses.
Last Seenlastmessagetime, lastdiscoveredtime, lastseenIf this value is not specified, enter the time that the CSV was last imported.
Last Used UsersusernameThis appends to the existing Last Used Users list if the device already exists.
MACmac, macaddress, macaddresses, macs*KEY - This field accepts a comma separated set of MAC addresses.
Network InterfacesnetworkinterfacesAxonius attempts to parse IP address(es), MAC address(es), and network interface cards from this field.
OS (see Notes)os, osname, osversion, operatingsystem, osmode, uname, endpointosThis field is parsed out into multiple properties within the OS field. Not all OSes are parsed properly. Please reach out to Axonius if an OS is not parsing as expected.
OS: Kernel Versionkernel, kernelversion
Software NamepackagesThis is delimited by spaces.

Which fields are imported with a users file?

The following data is imported as common data fields while any other data in the CSV/JSON is exclusively Adapter Specific data.

Note:
Fields marked as *KEY indicate that you need to include at least one of these fields as part of the imported CSV file. More *KEY fields available in the CSV file help provide stronger correlation.
UI Field NameAccepted CSV Field Name(s)Notes
Domaindomain, domainname, endpointdomain
First Namefirstname, givenname
IDid, identifier, serialnumber, assetid, resourceid*KEY - The ID field is a combination of the "CSV File Name" value and the specified field names.
Last Namelastname, surname, sn
Mailmail, email, usermail, mailaddress, email address, emailprimarywork*KEY
Namename, vmname, displayname, assetname, machinename, instancename, samaccountname, endpointname*KEY
User Nameusername*KEY

Which fields are imported with a software applications file?

The following data is imported as common data fields while any other data in the CSV/JSON is exclusively Adapter Specific data.
In order for vulnerabilities to be parsed from the CSV adapter, the MINIMUM requirements are:

  • The adapter is configured with "File contains installed software"
  • The file has at least the following headers:
    • Hostname (or any of the headers supported as hostname)
    • Software Name (header must be present, though may be empty on a row)
    • CVE ID

The other headers (or data in a row for those headers) are optional for the purposes of parsing vulnerabilities

Note:
Fields marked as *KEY indicate that you need to include at least one of these fields as part of the imported CSV file. More *KEY fields available in the CSV file help provide stronger correlation.
UI Field NameAccepted CSV Field Name(s)Notes
Host Namehostname, host, fqdn, fullyqualifieddomainname, compname, computername, servername, dnsname, hosthostname, endpointfqdn*KEY - This field is required as the software list is imported to each individual device.
Software Namesoftwarename, swname*KEY this field is required in order to parse installed software.
This field may be left empty on a row with CVE ID.
Software Pathsoftwarepath, swpath
Software Vendorsoftwarevendor, swvendor
Software Versionsoftwareversion, swversion
CVE IDcve, cveid, cvelist, grypecveIf present, a row featuring a CVE ID is parsed as vulnerable software in addition to installed software.
CVE DescriptioncvedescriptionThis field will be ignored if CVE ID is empty or not present.
CVE SeveritycveseverityCVE Severity needs to be one of the values listed here. An invalid CVE Severity value is ignored.
This field will be ignored if CVE ID is empty or not present.
'NONE', 'LOW', 'MEDIUM', 'MODERATE', 'SEVERE', 'SERIOUS', 'HIGH', 'CRITICAL', 'URGENT', 'INFO', 'UNTRIAGED', 'NEGLIGIBLE'
CVE StatuscvestatusCVE Status needs to be one of the values listed here. An invalid CVE Status value is ignored.
This field will be ignored if CVE ID is empty or not present.
'open', 'closed', 'reopen', 'expired', 'done', 'valid', 'obsolete', 'pending'

Example CSV File

For an example of a CSV file, download the following zipped csv:

CSVExamples.zip


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.