Blog 2: Automate Asset Deletion from Inventory in Qualys (Cloud Agent module)


Introduction:

Qualys is an award-winning cloud security and compliance solution. It helps businesses simplify IT security operations and lower the cost of compliance by delivering critical security intelligence on demand and automates the full spectrum of auditing, compliance and protection for Internet perimeter systems, internal networks, and web applications.

I'm using Qualys since a year & observed some problems in doing manual activity, which needs solutions to improve routine process, to save efforts & time. Due to some business reasons I didn't build the tool but I'm sharing the entire idea with design & flow of automation.  

Problem Statement:

As per business requirement, due to multiple factors, like formatting system, hardware fail or software fail, employee left the job, etc. factors, we need to remove asset record from inventory.

Daily we get mails from Desktop team to remove stale entries from inventory.

we daily copy the asset-name or NetBIOS name,

search in Qualys portal,

if asset found we take delete action & we acknowledge to the desktop team.

if asset not found we acknowledge to the desktop team

This is daily routine task & we get at least minimum 10 different mails with different senders.

So the difficulty is, to open each mail, while working on focussed task & this mails used to divert our mind from current ongoing task.

And we’ve to open portal, delete asset, close the window, and inform the team about execution.

Picture 1.1

Picture 1.2

Solution:

The objective is the automate this deletion activity to save time, efforts & to stay away from distractions.

Develop automation bot, which will continuously monitor the mail with keyword in requested mail subject or body.

Once it detects expected mail, automation bot will:

create array of asset(s) from given list,

carry that hostname(s) to Qualys portal via API,

validate asset name(s) by searching it in inventory,

once it found searched assets in result, it’ll notify us,

then, portal will request for asset deletion &

then, it’ll delete it.

Once asset gets deleted, bot will respond deletion status on mail for acknowledgement.

Before deploying into production, we’ve to perform testing to check accuracy of bot operation.

Sharing below, flow of Automation bot lifecycle.

 

Picture 1.3
 

This is how entire automation flow for bot application can be built & will execute.

Technology Requirements:

1. Outlook

2. Outlook API (for integration)

3. Python

4. Qualys

5. Qualys API (for integration)

Comments

Popular posts from this blog

Blog 3: Qualys & Morning Dashboard Reporting

Blog 6: CNAP by TRAI: A Game-Changer for India’s Fight Against Cyber Crime & Phone-Based Fraud

๐Ÿ“ฃ ๐‚๐ฒ๐›๐ž๐ซ๐ฌ๐ž๐œ๐ฎ๐ซ๐ข๐ญ๐ฒ ๐€๐ฅ๐ž๐ซ๐ญ: 35 ๐‚๐ฒ๐›๐ž๐ซ ๐’๐œ๐š๐ฆ๐ฌ ๐‘๐ž๐ฉ๐จ๐ซ๐ญ๐ž๐ ๐ข๐ง ๐š ๐’๐ข๐ง๐ ๐ฅ๐ž ๐ƒ๐š๐ฒ — ๐š๐ง๐ ๐“๐ก๐š๐ญ’๐ฌ ๐‰๐ฎ๐ฌ๐ญ ๐ญ๐ก๐ž ๐“๐ข๐ฉ ๐จ๐Ÿ ๐ญ๐ก๐ž ๐ˆ๐œ๐ž๐›๐ž๐ซ๐