pypi.org
Open in
urlscan Pro
2a04:4e42:200::223
Public Scan
URL:
https://pypi.org/project/cofense-triage/
Submission: On June 07 via manual from US — Scanned from DE
Submission: On June 07 via manual from US — Scanned from DE
Form analysis
3 forms found in the DOM/search/
<form class="search-form search-form--primary" action="/search/" role="search">
<label for="search" class="sr-only">PyPI durchsuchen</label>
<input id="search" class="search-form__search" type="text" name="q" placeholder="Projekte suchen" value="" autocomplete="off" autocapitalize="off" spellcheck="false" data-controller="search-focus"
data-action="keydown@window->search-focus#focusSearchField" data-search-focus-target="searchField">
<button type="submit" class="search-form__button">
<i class="fa fa-search" aria-hidden="true"></i>
<span class="sr-only">Suche</span>
</button>
</form>
/search/
<form class="search-form search-form--fullwidth" action="/search/" role="search">
<label for="mobile-search" class="sr-only">PyPI durchsuchen</label>
<input id="mobile-search" class="search-form__search" type="text" name="q" placeholder="Projekte suchen" value="" autocomplete="off" autocapitalize="off" spellcheck="false">
<button type="submit" class="search-form__button">
<i class="fa fa-search" aria-hidden="true"></i>
<span class="sr-only">Suche</span>
</button>
</form>
/locale/
<form action="/locale/">
<ul>
<li>
<button name="locale_id" value="en" type="submit"> English </button>
</li>
<li>
<button name="locale_id" value="es" type="submit"> español </button>
</li>
<li>
<button name="locale_id" value="fr" type="submit"> français </button>
</li>
<li>
<button name="locale_id" value="ja" type="submit"> 日本語 </button>
</li>
<li>
<button name="locale_id" value="pt_BR" type="submit"> português (Brasil) </button>
</li>
<li>
<button name="locale_id" value="uk" type="submit"> українська </button>
</li>
<li>
<button name="locale_id" value="el" type="submit"> Ελληνικά </button>
</li>
<li>
<button class="language-switcher__selected" name="locale_id" value="de" type="submit"> Deutsch </button>
</li>
<li>
<button name="locale_id" value="zh_Hans" type="submit"> 中文 (简体) </button>
</li>
<li>
<button name="locale_id" value="zh_Hant" type="submit"> 中文 (繁體) </button>
</li>
<li>
<button name="locale_id" value="ru" type="submit"> русский </button>
</li>
<li>
<button name="locale_id" value="he" type="submit"> עברית </button>
</li>
<li>
<button name="locale_id" value="eo" type="submit"> Esperanto </button>
</li>
</ul>
</form>
Text Content
Zum Hauptinhalt springen Zur mobilen Version wechseln Warnung Einige Funktionen sind möglicherweise ohne JavaScript nicht nutzbar. Bitte versuchen Sie es mit aktiviertem JavaScript, falls Probleme auftreten. PyPI durchsuchen Suche * Hilfe * Sponsoren * Einloggen * Registrieren Menü * Hilfe * Sponsoren * Einloggen * Registrieren PyPI durchsuchen Suche COFENSE-TRIAGE 0.1 pip install cofense-triage PIP Anweisungen kopieren Neueste Version Veröffentlicht am: 8. März 2021 Python interface to the Cofense Triage API V2 NAVIGATION * Projekt-Beschreibung * Veröffentlichungs-Historie * Dateien zum Herunterladen VERIFIED DETAILS These details have been verified by PyPI BETREUER CofenseIT elebow UNVERIFIED DETAILS These details have not been verified by PyPI PROJEKT-LINKS * Homepage GITHUB STATISTICS * Sterne: 1 * Forks: 1 * Open issues: 0 * Open PRs: 0 Besuchen Sie Libraries.io oder benutzen Sie unseren öffentlichen Datensatz auf Google BigQuery, um Statistiken für dieses Projekt zu sehen META Lizenz: MIT License (MIT) Autor: Eddie Lebow Betreuer: Cofense, Inc. KATEGORIEN * Development Status * 5 - Production/Stable * Intended Audience * Developers * Information Technology * System Administrators * License * OSI Approved :: MIT License * Operating System * OS Independent * Programming Language * Python Bloomberg is a Visionary sponsor of the Python Software Foundation. PSF Sponsor · Served ethically * Projekt-Beschreibung * Projekt-Details * Veröffentlichungs-Historie * Dateien zum Herunterladen PROJEKT-BESCHREIBUNG COFENSE TRIAGE SDK FOR PYTHON This package provides a object-oriented Python interface to the Triage API V2. For more information about Cofense Triage, see https://cofense.com. Refer to your Triage API documentation for details about the data schema. This package works with Triage 1.20 and later. INSTALLATION This package is available on PyPI. python -m pip install cofense_triage USAGE INITIALIZATION First, instantiate a Triage object. client_id and client_secret values are provided in the Triage web interface under API V2 Applications. api_version must be 2 for now, and is present to ease future upgrades. from cofense_triage import Triage triage = Triage( host="https://triage.example.com", api_version=2, client_id="client_id_here", client_secret="client_secret_here", ) FETCHING DATA You can fetch resources by calling methods named following the get_resourcename() pattern. for report in triage.get_reports(): print(report) for threat_indicator in triage.get_threat_indicators(): print(threat_indicator) All get_* methods return iterators, which are evaluated lazily—Requests for subsequent pages of results are made automatically when needed. You can force all results to be fetched immediately by casting the iterator to a list. list(triage.get_reporters()) The Triage class provides some convenience functions for common requests. See cofense_triage/triage.py for more. reports = triage.get_processed_reports() reports = triage.get_processed_reports_since("2020-01-01") reports = triage.get_processed_reports_by_reporter("j.random@cofense.com") operators = triage.get_operators_by_email("j.random@cofense.com") You can also pass generic filter conditions into the base get_* methods or the convenience methods. Filter conditions are represented by a dict or list of dicts, where each dict contains attr (attribute name), val (value), and optionally op (comparison operation, defaults to eq). See the Triage API documentation for supported attributes and operations, as well as composition logic. triage.get_reporters( {"attr": "email", "op": "not_end", "val": "example.com"} ) triage.get_reporters( [ {"attr": "reports_count", "op": "gt", "val": "0"}, {"attr": "email", "op": "not_end", "val": "example.com"} ] ) CREATION Use methods named following the create_resourcename() pattern to create records. These methods take a single argument, which is a dict or list of dicts describing the record(s) to be created. triage.create_rules( { "name": "Great_New_Rule", "priority": 3, "scope": "Email", "rule_context": "Phishing Tactic", "content": "YARA code here", "time_to_live": "1 year" } ) UPDATING Update records by assigning new values to fields. Call commit() to send the update request to Triage. rule = next(triage.get_rules({"attr": "name", "val": "Great_New_Rule"})) rule.priority = 2 rule.commit() DELETION Delete records by calling delete() followed by commit(). rule = next(triage.get_rules({"attr": "name", "val": "Great_New_Rule"})) rule.delete() rule.commit() EXAMPLES Find all rules with "Credential" in the name and set the priority to 4. for rule in triage.get_rules({"attr": "name", "val": "Credential", "op": "cont"}): rule.priority = 4 rule.commit() Build a CSV of reporters from the last week, sorted by number of reports. import datetime import itertools import csv reports = triage.get_reports( [ { "attr": "created_at", "op": "gt", "val": datetime.datetime.now() - datetime.timedelta(days=7), } ] ) grouped_reports = itertools.groupby(reports, key=lambda report: report.reporter.email) results = [ { "address": reporter_address, "num_reports": len(list(reports)), } for reporter_address, reports in grouped_reports ] with open("reporters_last_week.csv", "w", newline="") as f: csv_writer = csv.DictWriter(f, fieldnames=results[0].keys()) csv_writer.writeheader() csv_writer.writerows(results) LICENSE This software is licensed under the MIT License, included in the file LICENSE. PROJEKT-DETAILS VERIFIED DETAILS These details have been verified by PyPI BETREUER CofenseIT elebow UNVERIFIED DETAILS These details have not been verified by PyPI PROJEKT-LINKS * Homepage GITHUB STATISTICS * Sterne: 1 * Forks: 1 * Open issues: 0 * Open PRs: 0 Besuchen Sie Libraries.io oder benutzen Sie unseren öffentlichen Datensatz auf Google BigQuery, um Statistiken für dieses Projekt zu sehen META Lizenz: MIT License (MIT) Autor: Eddie Lebow Betreuer: Cofense, Inc. KATEGORIEN * Development Status * 5 - Production/Stable * Intended Audience * Developers * Information Technology * System Administrators * License * OSI Approved :: MIT License * Operating System * OS Independent * Programming Language * Python VERÖFFENTLICHUNGS-HISTORIE VERÖFFENTLICHUNGS-BENACHRICHTIGUNGEN | RSS-FEED Diese Version 0.1 8. März 2021 DATEIEN ZUM HERUNTERLADEN Laden Sie die Datei für Ihre Plattform herunter. Wenn Sie nicht sicher sind, was Sie auswählen sollen, lesen Sie Installation von Paketen. QUELLE DISTRIBUTION cofense_triage-0.1.tar.gz (13.0 kB view hashes) Uploaded 8. März 2021 Source GEBAUTE DISTRIBUTIONEN cofense_triage-0.1.0-py3-none-any.whl (18.4 kB view hashes) Uploaded 8. März 2021 Python 3 cofense_triage-0.1-py3-none-any.whl (18.5 kB view hashes) Uploaded 8. März 2021 Python 3 Schließen HASH-CODES FÜR COFENSE_TRIAGE-0.1.TAR.GZ Hash-Codes für cofense_triage-0.1.tar.gz Algorithmus Hashwert SHA256 d2a6e289f4a66241393fe6befab7d6a4aea88e4ccca9e092d7bdbce6fb232a7b Kopieren MD5 3324b4ace43fa68433dfc5679176cbf3 Kopieren BLAKE2b-256 30f9a08a88cedc64fc79089800f67ac60f06e0ca13c2fbe62fd58dd4ca612e12 Kopieren Schließen Schließen HASH-CODES FÜR COFENSE_TRIAGE-0.1.0-PY3-NONE-ANY.WHL Hash-Codes für cofense_triage-0.1.0-py3-none-any.whl Algorithmus Hashwert SHA256 8bfd0c860780dfc2d887300e38c3997d2e78ce62a2aa42531565cbb328afca35 Kopieren MD5 87345a4d4d948e3cdd582bab2d323828 Kopieren BLAKE2b-256 76ef523bd0053d91658051ce366d32d7559ec19e4920c37e967701ef0bdcad12 Kopieren Schließen Schließen HASH-CODES FÜR COFENSE_TRIAGE-0.1-PY3-NONE-ANY.WHL Hash-Codes für cofense_triage-0.1-py3-none-any.whl Algorithmus Hashwert SHA256 a8df562ec29a7d1f464dbb4c954780f59f8adaceedd88fc974c0174e958cf543 Kopieren MD5 9c9f16cdd4474b6c3f73ef1dd8087442 Kopieren BLAKE2b-256 09330f40214c7e4173ba533faec682b424854acb07a0f3210ea7e1d806629ada Kopieren Schließen HILFE * Installieren von Paketen * Hochladen von Paketen * Bedienungsanleitung * Project name retention * Häufige Fragen ÜBER PYPI * PyPI Blog * Infrastruktur Übersicht * Statistiken * Logos und Markenzeichen * Unsere Sponsoren MITWIRKEN BEI PYPI * Fehler und Rückmeldungen * Mitwirken auf GitHub * PyPI übersetzen * Sponsor PyPI * Entwicklungs-Anerkennungen PYPI VERWENDEN * Verhaltensrichtlinien * Sicherheitsproblem melden * Datenschutz * Nutzungsbedingungen * Richtlinie zur akzeptablen Nutzung -------------------------------------------------------------------------------- Status: All Systems Operational Entwickelt und gepflegt von der Python-Community, für die Python-Community. Spenden Sie noch heute! "PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation. © 2024 Python Software Foundation Sitemap Zur Desktop-Version wechseln * English * español * français * 日本語 * português (Brasil) * українська * Ελληνικά * Deutsch * 中文 (简体) * 中文 (繁體) * русский * עברית * Esperanto Supported by AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Microsoft PSF Sponsor Pingdom Monitoring Sentry Error logging StatusPage Status page