A comprehensive Python tool that analyzes actual credit consumption patterns in Trend Vision One environments through direct API usage statistics, investigation activity, and feature utilization analysis.
Unlike basic configuration checkers, this analyzer provides real insight into credit consumption by examining:
- π Search Activity: Direct analysis of data lake query volumes and patterns
- π Investigation Workload: Alert investigation activity and impact analysis
- π‘οΈ CREM Utilization: Comprehensive cyber risk exposure management usage
- π₯ͺ Sandbox Usage: Precise quota tracking and submission analysis
- π΅οΈ OAT Activity: Active threat detection and analysis patterns
- π Sensor Statistics: Data ingestion volumes affecting search costs
- Not a billing calculator: Provides usage insights, not exact credit calculations
- Assessment tool: Helps identify high-credit areas for optimization
- Requires API access: Needs Trend Vision One API key with appropriate permissions
- Consult official sources: Always verify with Trend Vision One console and account manager
- Python 3.7+
- Trend Vision One API Key
requestslibrary:pip install requests
# Interactive mode (prompts for API key)
python main.py
# Specify API key and region
python main.py -t YOUR_API_KEY -r EU
# Full analysis with verbose logging
python main.py -t YOUR_API_KEY -a -v -o detailed_analysis.log
# Export findings to JSON for further analysis
python main.py -t YOUR_API_KEY --export_json credit_analysis.jsonYour API key needs these permissions for comprehensive analysis:
| Permission | Module | Purpose |
|---|---|---|
| Search β View, filter, and search | Search Statistics | Direct credit usage tracking |
| Workbench β View, filter, and search | Investigation Analysis | Alert activity patterns |
| Reports β View | CREM Analysis | Risk management usage |
| Endpoint Inventory β View | License Analysis | Pro-tier feature allocation |
| Datalake Pipeline β View, filter, and search | Pipeline Analysis | Data ingestion tracking |
| Observed Attack Techniques β View, filter, and search | OAT Analysis | Threat detection activity |
| Sandbox Analysis β View, filter, and search | Sandbox Usage | File/URL analysis tracking |
| Option | Description | Example |
|---|---|---|
-t, --token |
API key (prompted if not provided) | -t abc123... |
-r, --region |
Vision One region (US/EU/SG/JP/AU/IN/UAE) | -r EU |
-a, --all_endpoints |
Analyze ALL endpoints (vs sample) |
-a |
--sample-size N |
Custom endpoint sample size | --sample-size 100 |
-v, --verbose |
Enable detailed debugging | -v |
--dry-run |
Show what would be called (demo mode) | --dry-run |
-o FILE |
Log output to file | -o analysis.log |
--export_json FILE |
Export findings to JSON | --export_json results.json |
- Direct credit correlation: Actual search query volumes
- Sensor activity tracking: Data ingestion patterns
- Time-based analysis: 24h, 7d, 30d patterns
- Product breakdown: Activity by Vision One component
- Alert investigation volume: Major credit consumer
- Impact scope analysis: Multi-entity investigations
- Severity patterns: High-priority alert trends
- Investigation status tracking: Active vs completed analysis
β οΈ Credit allocation required (post-Nov 1, 2024)- High-risk device/user analysis: Risk scoring patterns
- Account compromise detection: Identity threat analysis
- Attack surface discovery: Application/asset visibility
- Quota utilization: Daily submission tracking
- Credit efficiency: Analyzed vs exempted files
- Usage patterns: Submission frequency analysis
- Detection activity: MITRE tactic/technique coverage
- Endpoint coverage: Analysis scope tracking
- Risk level distribution: Detection severity patterns
- Pro license allocation: Credit-consuming tier analysis
- Feature utilization: Advanced capabilities usage
- Compliance coverage: Enterprise vs Pro features
- Datalake pipeline status: Data ingestion tracking
- OAT pipeline analysis: Threat detection data flow
============================================================
===== SEARCH & DATA USAGE STATISTICS ANALYSIS =====
============================================================
[POTENTIAL CREDIT IMPACT] Search Statistics: Activity volume (7d): 15,847 total activities
-> Recommendation: High search activity volumes directly correlate to credit consumption...
[POTENTIAL CREDIT IMPACT] Search Statistics: Sensor activity (7d): 1,245/1,456 active sensors (85.5%)
-> Recommendation: Active sensors generate telemetry data that fills the data lake...
============================================================
===== WORKBENCH ALERT INVESTIGATION ANALYSIS =====
============================================================
[POTENTIAL CREDIT IMPACT] Workbench Analysis: Found 89 workbench alerts in the last 30 days
-> Recommendation: Each alert investigation involves data lake searches and analysis...
[POTENTIAL CREDIT IMPACT] Workbench Analysis: 23 high/critical severity alerts requiring investigation
-> Recommendation: High-severity alerts typically require more extensive investigation...
Run the comprehensive test suite:
python test_analyzer.pyTests cover:
- β Dry-run functionality
- β Command-line options
- β JSON export
- β Output logging
- β Error handling
main.py: Complete analyzer (~1400+ lines)test_analyzer.py: Comprehensive test suiteCLAUDE.md: Development guidance for Claude CodeV3_API_ANALYSIS.md: Complete v3.0 API analysis reference
- Direct Usage Analysis: Search statistics, investigation tracking
- Enhanced CREM: Comprehensive risk management analysis
- Real Credit Insights: Actual usage patterns vs configuration inference
[POTENTIAL CREDIT IMPACT]: Features/usage consuming credits[CONFIGURATION DETAIL]: Informational findings[API ERROR]: API access or permission issues
- High search volumes β Higher data lake credit usage
- Active investigations β More search queries and analysis
- CREM feature usage β Dedicated credit pool consumption (post-Nov 2024)
- Pro-tier licensing β Premium feature credit allocation
- Read-only analysis: No configuration changes made
- API key security: Prompted interactively if not provided
- Regional compliance: Supports all Vision One regions
- Local processing: All analysis performed locally
For precise credit calculations and billing:
- Vision One Console: Credit usage dashboard
- Official Documentation: Trend Micro credit allocation guides
- Account Manager: Billing and optimization consultation
This tool is designed for Vision One administrators and security teams. For issues or enhancements:
- Review
V3_API_ANALYSIS.mdfor available API improvements - Check
CLAUDE.mdfor development guidance - Ensure test suite passes with
python test_analyzer.py
Provided as-is for assessment purposes. Refer to Trend Micro's official documentation for production deployment guidance.
π― Bottom Line: This tool helps you understand where your Vision One credits are being consumed so you can optimize usage, right-size deployments, and make informed decisions about feature allocation.