Old and New Search Token Mappings
The token standardization for the Qualys Query Language (QQL) search tokens follows a standard naming convention.
The new token format follows the syntax: entity.attribute
For example, in the new token, script.name, script is the entity, and name is the attribute.
The tokens, such as assets, scripts, jobs, asset jobs, schedules, library, and activity, now adhere to a standardized naming convention.
- Only new tokens are displayed in the auto-suggestion in the search bars within the UI. However, if you type the old token name manually, the QQL query still works. Old token name visibility from the UI is removed.
- The existing Dashboard widgets and Saved Search Queries will continue to support the old tokens. You can edit search queries and widgets to update the new tokens.
The following is the old and new tokens mapping list:
Old Token | New Token |
---|---|
id | scriptLibrary.id |
name | scriptLibrary.name |
mode | scriptLibrary.mode |
description | scriptLibrary.description |
platform | scriptLibrary.platform |
severity | scriptLibrary.severity |
category | scriptLibrary.category |
type | scriptLibrary.type |
language | scriptLibrary.language |
subType | scriptLibrary.subType |
moduleCode | scriptLibrary.moduleCode |
qid | finding.qid |
qidTitle | finding.title |
qidSubType | finding.subType |
qidStatus | finding.status |
qidTechnology | finding.technology.name |
qidSeverity | finding.severity |
qidDetectionLogic | finding.detectionLogic |
controlName | control.name |
controlCid | control.id |
controlBenchmarkType | control.benchmarkType |
controlTechnologies | control.technology.name |
Old Token | New Token |
---|---|
id | script.id |
mode | script.mode |
name | script.name |
description | script.description |
platform | script.platform |
severity | script.severity |
category | script.category |
type | script.type |
language | script.language |
status | script.status |
threshold | script.threshold |
createdBy | script.createdBy.username |
approvedBy | script.approvedBy.username |
subType | script.subType |
hasSystemBehaviorAffectingCommands | script.hasSystemBehaviorAffectingCommands |
hasParameters | script.hasParameters |
importedScriptFromGitHub | script.importedScriptFromGitHub |
gitHubAutoSync | script.isGitHubAutoSyncEnabled |
githubSyncStatus | script.githubSyncStatus |
importedFromGitHubPublicRepo | script.importedFromGitHubPublicRepo |
importedFromScriptLibrary | script.importedFromScriptLibrary |
scriptLibraryId | scriptLibrary.id |
moduleCode | script.moduleCode |
qid | finding.qid |
qidTitle | finding.title |
qidSubType | finding.subType |
qidTechnology | finding.technology.name |
qidQds | finding.qds |
qidSeverity | finding.severity |
qidVulnerabilityType | finding.type |
vmScanEnabledQid | finding.isScanEnabled |
cves | finding.cveId |
controlName | control.name |
controlCid | control.id |
controlBenchmarkType | control.benchmarkType |
controlTechnologies | control.technology.name |
patchQid | patch.qid |
patchSeverity | patch.severity |
Asset Job TokensAsset Job Tokens
Old Token | New Token |
---|---|
status | assetJob.status |
isTest | assetJob.isTest |
executionStartTime | assetJob.executionStartTime |
durationInMillis | assetJob.durationInMillis |
return.code | script.returnCode |
asset.operatingSystem | operatingSystem.name |
asset.id | asset.id |
asset.agentId | asset.agentId |
asset.name | asset.name |
asset.address | asset.address |
script.category | script.category |
script.name | script.name |
script.type | script.type |
script.language | script.language |
scriptId | script.id |
qid | finding.qid |
qidTitle | finding.title |
qidStatus | finding.status |
qidSeverity | finding.severity |
qidQds | finding.qds |
qidVulnerabilityType | finding.type |
Old Token | New Token |
---|---|
id | job.id |
platform | script.platform |
severity | script.severity |
isTest | job.isTest |
executionType | job.executionType |
schedulerId | job.scheduler.id |
schedulerName | job.scheduler.name |
description | job.description |
correlationId | job.correlationId |
shareScriptResultWithFim | job.shareScriptResultWithFim |
qid | finding.qid |
qidTitle | finding.title |
qidSeverity | finding.severity |
qidQds | finding.qds |
qidVulnerabilityType | finding.type |
scriptId | script.id |
script.name | script.name |
script.type | script.type |
script.language | script.language |
script.category | script.category |
Schedule TokensSchedule Tokens
Old Token | New Token |
---|---|
id | script.schedule.id |
scriptId | script.schedule.scriptId |
name | script.schedule.name |
status | script.schedule.status |
createdBy | script.schedule.createdBy.username |
Activity TokensActivity Tokens
Old Token | New Token |
---|---|
activity | activity.name |
targetType | activity.targetType |
name | activity.targetName |
user | user.name |
Old Token | New Token |
---|---|
address | asset.address |
agentUuid | agent.uuid |
assetId | asset.id |
interface.address | asset.interface.address |
name | asset.name |
operatingSystem | operatingSystem.name |
platform | agent.platform |