Skip to content

Commit b6d43f7

Browse files
authored
Merge pull request #37 from passivetotal/trackers
v2.5.4 - trackers, project alerts and more
2 parents 9a63802 + 00ecaaf commit b6d43f7

28 files changed

+2960
-434
lines changed

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
# Changelog
22

3+
## v2.5.4
4+
5+
#### Enhancements
6+
7+
- Removed strict checking on tracker type to permit querying by arbitrary tracker types. Updated list
8+
of common trackers. Added searchType param to docs to reflect API's capability of returning either
9+
hostnames or addresses.
10+
- New methods to search trackers in the `analyzer` module, including `tracker_references` property on
11+
`Hostname` and `IPAddress` objects to find other sites referencing the focus host in their tracker
12+
values.
13+
- New `analyzer.Tracker` top-level entity with `observations_by_ip` and `observations_by_hostname`
14+
properties to find other hosts with the same tracker type and value.
15+
- New `filter_fn` method on all RecordList objects enables filtering a list by an arbitrary function.
16+
Helps reduce code duplication and enables more advanced filtering.
17+
- Monitoring API endpoint support in the core library, and new `alerts` property on
18+
project artifacts to easily retrieve the list of new alerts for an artifact in a project.
19+
Handles pagination automatically and returns results in new analyzer objects to enable
20+
standard filtering and data representation (i.e. `as_dict` and `as_df`).
21+
- Small change to the `get_object` method to tolerate passing it objects that are already
22+
`analyzer.Hostname` or `analyzer.IPAddress` objects.
23+
- New `is_ip` and `is_hostname` methods on both `Hostname` and `IPAddress` objects to simplify
24+
code that operates against a list of hosts that may include objects of both types.
25+
- New methods on Tracker search results and Hostpair results to exclude records with hostnames,
26+
domains or tlds in a given list. This helps refine results to focus on "foreign" sites and enables direct
27+
application of proven phishing site detection use cases.
28+
29+
30+
31+
#### Bug Fixes
32+
33+
- Fixed incorrect constant reference in trackers API (by removing strict checking on
34+
tracker type).
35+
- Fixed broken `age` property on Articles that was also causing `as_df` and `as_dict` to fail.
36+
Likely caused by missing time zone info in dates returned from the API.
37+
38+
39+
340
## v2.5.3
441

542
#### Enhancements

docs/analyzer.rst

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ No other configuration is required to begin using the analyzer module, but you
3232
should review the module reference to become aware of configuration options that
3333
would normally be set in specific API calls.
3434

35-
Module Reference
36-
----------------
37-
.. automodule:: passivetotal.analyzer
38-
:members:
39-
4035

4136
Hostname Analysis
4237
-----------------
@@ -77,6 +72,11 @@ IP Analysis
7772
:inherited-members:
7873
7974
75+
Module Reference
76+
----------------
77+
.. automodule:: passivetotal.analyzer
78+
:members:
79+
8080
8181
Summary Data
8282
------------
@@ -343,6 +343,19 @@ Trackers Record Lists
343343
:members:
344344
:inherited-members:
345345
346+
.. autoclass:: passivetotal.analyzer.trackers.TrackerSearchResults
347+
:members:
348+
:inherited-members:
349+
350+
.. autoclass:: passivetotal.analyzer.trackers.TrackerSearchRecords
351+
:members:
352+
:inherited-members:
353+
354+
.. autoclass:: passivetotal.analyzer.trackers.Tracker
355+
:members:
356+
:inherited-members:
357+
358+
346359
Whois Record Lists
347360
^^^^^^^^^^^^^^^^^^
348361
.. autoclass:: passivetotal.analyzer.whois.WhoisRecords

examples/README.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/host_pair_sentinel.py

Lines changed: 0 additions & 41 deletions
This file was deleted.

examples/keyword_search.py

Lines changed: 0 additions & 107 deletions
This file was deleted.

0 commit comments

Comments
 (0)