Domain Detective

API Reference

Class

ThreatIntelAnalysis

Namespace DomainDetective
Assembly DomainDetective
Implements

Queries threat intelligence services for reputation data.

Inheritance

  • Object
  • ThreatIntelAnalysis

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

public ThreatIntelAnalysis(HttpClient client = null) #

Initializes a new instance of ThreatIntelAnalysis.

Parameters

client System.Net.Http.HttpClient = null optionalposition: 0
Optional HTTP client used for requests.

Methods

public async Task Analyze(String domainName, String googleApiKey, String phishTankApiKey, String virusTotalApiKey, InternalLogger logger, CancellationToken ct = null) #
Returns: Task

Queries all enabled reputation services.

Parameters

domainName System.String requiredposition: 0
googleApiKey System.String requiredposition: 1
phishTankApiKey System.String requiredposition: 2
virusTotalApiKey System.String requiredposition: 3
logger DomainDetective.InternalLogger requiredposition: 4
ct System.Threading.CancellationToken = null optionalposition: 5

Properties

public String Subject { get; set; } #

Gets or sets the subject value.

public Func<String, Task<String>> GoogleSafeBrowsingOverride { get; set; } #

Override Safe Browsing query.

public Func<String, Task<String>> PhishTankOverride { get; set; } #

Override PhishTank query.

public Func<String, Task<String>> VirusTotalOverride { get; set; } #

Override VirusTotal query returning JSON.

public Func<String, Task<VirusTotalObject>> VirusTotalObjectOverride { get; set; } #

Override VirusTotal query returning a model.

public List<ThreatIntelFinding> Listings { get; } #

Results returned from the consulted sources.

public Nullable<Int32> RiskScore { get; set; } #

Risk score returned by the reputation service.

public String FailureReason { get; set; } #

If feed queries fail, explains why.

public Nullable<Int32> CompositeScore { get; set; } #

Composite risk score (0-100) normalized across providers.

public String Severity { get; set; } #

Severity derived from CompositeScore.

public Nullable<Double> Confidence { get; set; } #

Confidence level (0.0-1.0) based on corroborating sources.

public Boolean EnableUrlHaus { get; set; } #

Gets or sets the enable url haus value.

public Boolean EnableOpenPhish { get; set; } #

Gets or sets the enable open phish value.

public TimeSpan CacheTtl { get; set; } #

Gets or sets the cache ttl value.

public Int32 WeightGoogleSafeBrowsing { get; set; } #

Gets or sets the weight google safe browsing value.

public Int32 WeightPhishTank { get; set; } #

Gets or sets the weight phish tank value.

public Int32 WeightUrlHaus { get; set; } #

Gets or sets the weight url haus value.

public Int32 WeightOpenPhish { get; set; } #

Gets or sets the weight open phish value.

public Int32 WeightVirusTotalListed { get; set; } #

Gets or sets the weight virus total listed value.

public Int32 WeightVirusTotalReputation { get; set; } #

Gets or sets the weight virus total reputation value.

public TimeSpan FreshWindow { get; set; } #

Gets or sets the fresh window value.

public TimeSpan RecentWindow { get; set; } #

Gets or sets the recent window value.

public TimeSpan MediumWindow { get; set; } #

Gets or sets the medium window value.

public TimeSpan StaleWindow { get; set; } #

Gets or sets the stale window value.

public Double UnknownRecencyFactor { get; set; } #

Gets or sets the unknown recency factor value.

public Func<String, Task<String>> OpenPhishOverride { get; set; } #

Override for OpenPhish JSON/CSV checks (for tests). Returns provider JSON.

public virtual List<Assessment> Assessments { get; } #

Gets the assessments value.

public IReadOnlyList<RecommendationAdvice> Recommendations { get; } #

Represents the recommendations value.

{{ include "footer" }}