I currently have a workflow called “Enrich File Hash with Microsoft Teams” which I further expanded to add looping so I can add more hashes instead of just 1.
What this workflow does is: It scans the given hash on VirusTotal using the API and generates a summary based on the output.
So I would write" !enrich-hash xyz zyx" on MS-Teams and it would try to scan “xyz” and “zyx” on virustotal.
Now my question is I have a .csv file on excel that has around 200 hashes and I want to be able to somehow append this .csv file as the trigger parameter like this “!enrich-hash hashes.csv”. What would I need to add to my workflow to make this work? I have been searching for a while but unfortunately no succes.
I don’t know how you can use the URL to fetch the CSV natively from the teams plugin.
You could script it to grab the URL using python. So your trigger sends the message and the URL.. The URL is pathed to a python step which fetches your CSV, then you can do whatever you like once you have it in ICON.
You can manually drag a CSV into ICON to kick it off if it isn’t something you do often. I have a few snippets that I do this with for internal data processing.
The CSV file would be a list of hashes that we have been provided or have obtained by other means. We would then add the hashes to Defender’s block list, search to see if the hash has been seen, etc.
I tried using that plugin but it seems to only grab part of the file. The rest looks like it is SharePoint scripting garbage. Having used the plugin to grab other items successfully and digging through the code that is returned, I am seeing issues with authentication mentioned so at this point, SharePoint is preventing me from being able to do this.
Time to figure out another solution. I will look into what you mentioned in another reply, the only problem is that I do not have enough licenses for everyone in my team to log in. That is a me problem though.
The PnP module could be used, but I have not figured out how to get modules other than the default Powershell modules to load for workflows. I have not found any information on Discuss or help in the documentation. I figure it can be done, just not sure how.