r/qualys • u/OddSpell4529 • Sep 27 '26
Knowledge Sharing Dynamic tagging
I came across the following guide from Qualys around some dynamic tags that can be setup. I understand the guide is a few years old. Wondering if anyone has other useful ways to tag assets that they are willing to share that might not be on this list.
https://success.qualys.com/support/s/article/000005818
Would also be good to hear some stories of where automation plays a part when assets are tagged with something!
5
Upvotes
3
u/Wonderful_Lecture708 Sep 28 '26
Dynamic TAG is the best option since they will self maintain but at times the options I want don’t exist so I will use the API to gather the asset ID or agent ID of the targeted hosts and build a static tag. Next run checks for the TAG by name deletes the TAG and builds it again. Dynamic TAG via automation.
1
u/Some-Ant-6233 Sep 27 '26
I mean I’ve done a few over the years. I don’t recall exactly, it’s also Sunday so I’m trying not to work. I think one of my dynamic tags is added to call newly detected Apache 2.4 in servers, compare if they’re RHEL or Ubuntu/Alma, and either flag to be added to SCA scans if they’re supported Ubuntu, but ignore if RHEL (backporting causes FPs)
1
u/Cheap-Policy-9439 Sep 29 '26
what are the constraints /drawback with using dynamic tags. ? does it allow unicode texts? Thanks.
1
u/immewnity Sep 29 '26
I'm a huge proponent of dynamic tagging! You can find tags I've built at https://github.com/immewnity/qualys-tags
1
u/beangreen Oct 07 '26
We use basic Asset Search tags to dynamically tag systems with a particular QID that needs a pshell script to fix (such as Spectre/Meltdown, Cached Logon enabled, Sweet32, WinVerify, Weak Service Perms, Unquoted Service Paths, etc. We then target recurring nightly PM jobs that run the appropriate scripts to fix them. GPOs in Windows can do this, but we also have systems in DMZ, etc, that are unmanaged by GPOs.
Here's a dynamic tag for VMs that have the Spectre/Meltdown vuln. We target this tag with the appropriate nightly job to fix them:
<?xml version="1.0" encoding="UTF-8"?>
<TAG_CRITERIA>
<TRACKING_METHOD>QAGENT</TRACKING_METHOD>
<DETECTION>
<QID_LIST>
<QID>91426</QID>
<QID>91462</QID>
</QID_LIST>
</DETECTION>
<OPERATING_SYSTEM>
<SEARCH_TYPE>CONTAINING</SEARCH_TYPE>
<SEARCH_TERM>Windows Server</SEARCH_TERM>
</OPERATING_SYSTEM>
<SYSTEM_INFORMATION>
<SEARCH_TYPE>CONTAINING</SEARCH_TYPE>
<SEARCH_TERM>VMware</SEARCH_TERM>
<SEARCH_TERM>Virtual Machine</SEARCH_TERM>
<SEARCH_TERM>Hyper-V</SEARCH_TERM>
<SEARCH_TERM>Xen</SEARCH_TERM>
<SEARCH_TERM>QEMU</SEARCH_TERM>
<SEARCH_TERM>VirtualBox</SEARCH_TERM>
</SYSTEM_INFORMATION>
</TAG_CRITERIA>