@Samarth Bhadane
Welcome to the Microsoft Q&A community.
I understand your concern about the excessive scanning charges due to the current behavior of Microsoft Defender for Storage. Unfortunately, as of now, Microsoft Defender for Storage does not have a built-in feature to scan only the modified portion of a blob. It scans the entire blob whenever new data is appended.
However, there are a few strategies you can consider to optimize your scanning process and potentially reduce costs:
On-Upload Malware Scanning: This feature scans blobs automatically when they're uploaded or modified, providing near real-time detection. This might help in reducing the number of scans if the blobs are frequently modified.
On-Demand Malware Scanning: This allows you to scan existing blobs whenever necessary, making it ideal for incident response, compliance, and proactive security. You can schedule these scans during off-peak hours to manage costs better.
Automate Responses: You can set up automated responses to handle malicious files, such as moving them to a quarantine container or deleting them. This can help in managing the storage and scanning costs more effectively.
Review and Optimize Storage Practices: Consider breaking down large blobs into smaller chunks if feasible. This way, only the modified chunks will be scanned, potentially reducing the scanning overhead.
For more detailed information, you can refer to the Microsoft Defender for Storage documentation.
See also:
- https://learn.microsoft.com/en-us/azure/defender-for-cloud/introduction-malware-scanning
- https://learn.microsoft.com/en-us/azure/defender-for-cloud/on-upload-malware-scanning
- https://learn.microsoft.com/en-us/azure/defender-for-cloud/defender-for-storage-configure-malware-scan
I hope these suggestions help you optimize your Defender for Storage usage. Let me know if you have any further questions or need additional assistance.
Also if these answers your query, do click the "Upvote" and click "Accept the answer" of which might be beneficial to other community members reading this thread.