diff --git a/appknox/mapper.py b/appknox/mapper.py index ea05535..cd20088 100644 --- a/appknox/mapper.py +++ b/appknox/mapper.py @@ -66,6 +66,7 @@ def mapper_drf_api(model: type, resource: dict) -> object: "hipaa", "cwe", "mstg", + "owaspapi2023", "asvs", "gdpr", "computed_risk", diff --git a/docs/.doctrees/client.doctree b/docs/.doctrees/client.doctree index 1f7b393..041626d 100644 Binary files a/docs/.doctrees/client.doctree and b/docs/.doctrees/client.doctree differ diff --git a/docs/.doctrees/environment.pickle b/docs/.doctrees/environment.pickle index 87262f1..039bae1 100644 Binary files a/docs/.doctrees/environment.pickle and b/docs/.doctrees/environment.pickle differ diff --git a/docs/.doctrees/index.doctree b/docs/.doctrees/index.doctree index 36a2012..f2dd04c 100644 Binary files a/docs/.doctrees/index.doctree and b/docs/.doctrees/index.doctree differ diff --git a/docs/.doctrees/mapper.doctree b/docs/.doctrees/mapper.doctree index 8ec2b8a..05267ea 100644 Binary files a/docs/.doctrees/mapper.doctree and b/docs/.doctrees/mapper.doctree differ diff --git a/docs/_modules/appknox/client.html b/docs/_modules/appknox/client.html index 87e06fd..0cfb6a0 100644 --- a/docs/_modules/appknox/client.html +++ b/docs/_modules/appknox/client.html @@ -84,6 +84,7 @@

Source code for appknox.client

 
 
[docs]class Appknox(object): """ + Client to interact with API server """ def __init__( @@ -292,9 +293,7 @@

Source code for appknox.client

         whoami = self.drf_api.me().get()
         return mapper_drf_api(Whoami, whoami)
-
[docs] def paginated_data(self, response, mapper_class): - """ - """ + def paginated_data(self, response, mapper_class): initial_data = [ mapper_json_api(mapper_class, dict(data=value)) for value in response["data"] @@ -313,11 +312,9 @@

Source code for appknox.client

                 for value in resp["data"]
             ]
 
-        return initial_data
+ return initial_data -
[docs] def paginated_drf_data(self, response, mapper_class): - """ - """ + def paginated_drf_data(self, response, mapper_class): initial_data = [ mapper_drf_api(mapper_class, value) for value in response["results"] ] @@ -331,7 +328,7 @@

Source code for appknox.client

             initial_data += [
                 mapper_drf_api(mapper_class, value) for value in resp["results"]
             ]
-        return initial_data
+ return initial_data
[docs] def get_organizations(self) -> List[Organization]: """ @@ -404,10 +401,8 @@

Source code for appknox.client

         analyses = self.drf_api["v2/files/{}/analyses".format(file_id)]().get()
         return self.paginated_drf_data(analyses, Analysis)
-
[docs] @lru_cache(maxsize=1) + @lru_cache(maxsize=1) def get_vulnerabilities(self) -> List[Vulnerability]: - """ - """ total_vulnerabilities = self.drf_api["v2/vulnerabilities"]().get(limit=1)[ "count" ] # limit is 1 just to get total count @@ -415,7 +410,7 @@

Source code for appknox.client

             limit=total_vulnerabilities + 1
         )
         vulnerabilities = self.paginated_drf_data(vulnerabilities_raw, Vulnerability)
-        return vulnerabilities
+ return vulnerabilities
[docs] def get_vulnerability(self, vulnerability_id: int) -> Vulnerability: """ @@ -433,13 +428,11 @@

Source code for appknox.client

         vulnerability = self.drf_api["v2/vulnerabilities"](vulnerability_id).get()
         return mapper_drf_api(Vulnerability, vulnerability)
-
[docs] @lru_cache(maxsize=1) + @lru_cache(maxsize=1) def get_owasps(self) -> List[OWASP]: - """ - """ owasps_raw = self.drf_api["v2/owasps"]().get() owasps = self.paginated_drf_data(owasps_raw, OWASP) - return owasps
+ return owasps
[docs] def get_owasp(self, owasp_id: str) -> OWASP: """ @@ -455,13 +448,11 @@

Source code for appknox.client

         owasp = self.drf_api["v2/owasps"](owasp_id).get()
         return mapper_drf_api(OWASP, owasp)
-
[docs] @lru_cache(maxsize=1) + @lru_cache(maxsize=1) def get_pcidsses(self) -> List[PCIDSS]: - """ - """ pcidsss_raw = self.drf_api["v2/pcidsses"]().get() pcidsss = self.paginated_drf_data(pcidsss_raw, PCIDSS) - return pcidsss
+ return pcidsss
[docs] def get_pcidss(self, pcidss_id: str) -> PCIDSS: """ @@ -670,9 +661,6 @@

Source code for appknox.client

         headers: object = None,
         auth: Dict[str, str] = None,
     ):
-        """
-        Initialise APIResource object
-        """
         self.host = host
         self.headers = {**headers}
         self.headers["User-Agent"] = f"appknox-python/{__version__}"
@@ -682,37 +670,27 @@ 

Source code for appknox.client

         self.endpoint = urljoin(host, API_BASE)
 
     def __getitem__(self, resource):
-        """
-        """
         return partial(self.set_endpoint, resource)
 
     def __getattr__(self, resource):
-        """
-        """
         return partial(self.set_endpoint, resource)
 
-
[docs] def set_endpoint(self, resource, resource_id=None): - """ - """ + def set_endpoint(self, resource, resource_id=None): self.endpoint = "{}/{}".format(urljoin(self.host, API_BASE), resource) if resource_id: self.endpoint += "/{}".format(str(resource_id)) - return self
+ return self -
[docs] def get(self, **kwargs): - """ - """ + def get(self, **kwargs): resp = self.request_session.get( self.endpoint, headers=self.headers, auth=self.auth, params=kwargs, ) - return resp.json()
+ return resp.json() -
[docs] def post(self, data, content_type=None, **kwargs): - """ - """ + def post(self, data, content_type=None, **kwargs): resp = self.request_session.post( self.endpoint, headers=self.headers, @@ -720,18 +698,16 @@

Source code for appknox.client

             params=kwargs,
             data=data,
         )
-        return resp.json()
+ return resp.json() -
[docs] def direct_get(self, url, **kwargs): - """ - """ + def direct_get(self, url, **kwargs): resp = self.request_session.get( url, headers=self.headers, auth=self.auth, params=kwargs, ) - return resp.json()
+ return resp.json()
[docs] def direct_get_http_response(self, url: str, **kwargs) -> "Response": """ diff --git a/docs/_modules/appknox/mapper.html b/docs/_modules/appknox/mapper.html index 90dd90a..5eb72d7 100644 --- a/docs/_modules/appknox/mapper.html +++ b/docs/_modules/appknox/mapper.html @@ -1,29 +1,16 @@ - + - + - - + + appknox.mapper — appknox-python 3.0.0 documentation - - - - - - - - + + + + + @@ -32,8 +19,7 @@ - - +
@@ -48,23 +34,25 @@

Source code for appknox.mapper

 
 from collections import namedtuple
 from dataclasses import dataclass
+import datetime
+import typing
+
 
 
[docs]def mapper_json_api(model: type, resource: dict) -> object: - """ + """ Returns an obj of type `model` from dictified JSON `resource` for JSON APIs """ attr = dict() for field in model._fields: - if field == 'id': - attr[field] = resource['data']['id'] + if field == "id": + attr[field] = resource["data"]["id"] else: - attr[field] = resource['data']['attributes'][ - field.replace('_', '-')] + attr[field] = resource["data"]["attributes"][field.replace("_", "-")] return model(**attr)
[docs]def mapper_drf_api(model: type, resource: dict) -> object: - """ + """ Returns an obj of type `model` from dictified JSON `resource` for DRF APIs """ accepted_params = {k: resource[k] for k in model._fields} @@ -72,73 +60,85 @@

Source code for appknox.mapper

 
 
 User = namedtuple(
-    'User',
-    ['id', 'email', 'first_name', 'lang', 'last_name', 'username']
+    "User", ["id", "email", "first_name", "lang", "last_name", "username"]
 )
 
-Whoami = namedtuple(
-    'Whoami',
-    ['id', 'email', 'username', 'default_organization']
-)
+Whoami = namedtuple("Whoami", ["id", "email", "username", "default_organization"])
 
-Organization = namedtuple(
-    'Organization',
-    ['id', 'name']
-)
+Organization = namedtuple("Organization", ["id", "name"])
 
 Project = namedtuple(
-    'Project',
-    ['id', 'created_on', 'file_count', 'package_name', 'platform',
-     'updated_on']
+    "Project",
+    ["id", "created_on", "file_count", "package_name", "platform", "updated_on"],
 )
 
 File = namedtuple(
-    'File',
-    ['id', 'name', 'version', 'version_code', 'static_scan_progress', 'profile']
+    "File", ["id", "name", "version", "version_code", "static_scan_progress", "profile"]
 )
 
 Submission = namedtuple(
-    'Submission',
-    ['id', 'status', 'file', 'package_name', 'created_on', 'reason']
+    "Submission", ["id", "status", "file", "package_name", "created_on", "reason"]
 )
 
 Analysis = namedtuple(
-    'Analysis',
-    ['id', 'risk', 'status', 'cvss_base', 'cvss_vector', 'cvss_version',
-     'cvss_metrics_humanized', 'findings', 'updated_on', 'vulnerability',
-     'owasp', 'pcidss', 'hipaa', 'cwe', 'mstg', 'asvs', 'gdpr', 'computed_risk', 'overridden_risk']
+    "Analysis",
+    [
+        "id",
+        "risk",
+        "status",
+        "cvss_base",
+        "cvss_vector",
+        "cvss_version",
+        "cvss_metrics_humanized",
+        "findings",
+        "updated_on",
+        "vulnerability",
+        "owasp",
+        "pcidss",
+        "hipaa",
+        "cwe",
+        "mstg",
+        "owaspapi2023",
+        "asvs",
+        "gdpr",
+        "computed_risk",
+        "overridden_risk",
+    ],
 )
 
 Vulnerability = namedtuple(
-    'Vulnerability',
-    ['id', 'name', 'description', 'intro', 'related_to',
-     'business_implication', 'compliant', 'non_compliant', 'types']
+    "Vulnerability",
+    [
+        "id",
+        "name",
+        "description",
+        "intro",
+        "related_to",
+        "business_implication",
+        "compliant",
+        "non_compliant",
+        "types",
+    ],
 )
 
-OWASP = namedtuple(
-    'OWASP',
-    ['id', 'code', 'title', 'description', 'year']
-)
+OWASP = namedtuple("OWASP", ["id", "code", "title", "description", "year"])
 
-PCIDSS = namedtuple(
-    'PCIDSS',
-    ['id', 'code', 'title', 'description']
-)
+PCIDSS = namedtuple("PCIDSS", ["id", "code", "title", "description"])
 
-PersonalToken = namedtuple(
-    'AccessToken',
-    ['name', 'key']
-)
+PersonalToken = namedtuple("AccessToken", ["name", "key"])
 
 ReportPreferenceMapper = {
-    'show_pcidss': 'pcidss',
-    'show_hipaa': 'hipaa',
-    'show_gdpr': 'gdpr'}
+    "show_pcidss": "pcidss",
+    "show_hipaa": "hipaa",
+    "show_gdpr": "gdpr",
+}
+
 
 
[docs]@dataclass class ProfileReportPreferenceConfig: value: bool
+
[docs]@dataclass class ProfileReportPreference: show_gdpr: ProfileReportPreferenceConfig @@ -148,9 +148,86 @@

Source code for appknox.mapper

     @classmethod
     def from_json(cls, data):
         return cls(
-            show_gdpr=ProfileReportPreferenceConfig(value=data['show_gdpr']['value']),
-            show_hipaa=ProfileReportPreferenceConfig(value=data['show_hipaa']['value']),
-            show_pcidss=ProfileReportPreferenceConfig(value=data['show_pcidss']['value'])
+            show_gdpr=ProfileReportPreferenceConfig(value=data["show_gdpr"]["value"]),
+            show_hipaa=ProfileReportPreferenceConfig(value=data["show_hipaa"]["value"]),
+            show_pcidss=ProfileReportPreferenceConfig(
+                value=data["show_pcidss"]["value"]
+            ),
+        )
+ + +
[docs]@dataclass +class InheritedPreference: + _fields = ["value", "is_inherited"] + + value: bool + is_inherited: bool + + @classmethod + def from_json(cls, data: typing.Dict[str, bool]) -> "InheritedPreference": + return cls(value=data["value"], is_inherited=data["is_inherited"])
+ + +
[docs]@dataclass +class ReportPreference: + _fields = [ + "show_api_scan", + "show_manual_scan", + "show_static_scan", + "show_dynamic_scan", + "show_ignored_analyses", + "show_hipaa", + "show_pcidss", + ] + + show_api_scan: bool + show_manual_scan: bool + show_static_scan: bool + show_dynamic_scan: bool + show_ignored_analyses: bool + show_hipaa: InheritedPreference + show_pcidss: InheritedPreference + + @classmethod + def from_json(cls, data: typing.Dict[str, typing.Any]) -> "ReportPreference": + return cls( + show_api_scan=data["show_api_scan"], + show_manual_scan=data["show_manual_scan"], + show_static_scan=data["show_static_scan"], + show_dynamic_scan=data["show_dynamic_scan"], + show_ignored_analyses=data["show_ignored_analyses"], + show_hipaa=InheritedPreference.from_json(data["show_hipaa"]), + show_pcidss=InheritedPreference.from_json(data["show_pcidss"]), + )
+ + +
[docs]@dataclass +class Report: + _fields = [ + "id", + "language", + "generated_on", + "progress", + "rating", + "preferences", + ] + + id: int + language: str + generated_on: datetime.datetime + progress: int + rating: str + preferences: ReportPreference + + @classmethod + def from_json(cls, data: typing.Dict[str, typing.Any]) -> "Report": + return cls( + id=data["id"], + language=data["language"], + generated_on=data["generated_on"], + progress=data["progress"], + rating=data["rating"], + preferences=ReportPreference.from_json(data["preferences"]), )
@@ -211,15 +288,15 @@

Related Topics

- + @@ -236,8 +313,8 @@

Quick search

©2017, XYSec Labs Pte. Ltd.. | - Powered by Sphinx 1.6.2 - & Alabaster 0.7.12 + Powered by Sphinx 6.1.3 + & Alabaster 0.7.13
diff --git a/docs/_sources/index.rst.txt b/docs/_sources/index.rst.txt index 05dd58b..6adf7de 100644 --- a/docs/_sources/index.rst.txt +++ b/docs/_sources/index.rst.txt @@ -165,16 +165,16 @@ Get the analyses for this new file: .. code-block:: python - >>> client.get_analyses(6)[:3] - [Analysis(id=267, risk=2, status=3, cvss_base=6.8, - findings=[{'title': None, 'description': 'Unprotected service: com.appknox.mfva.ExportedService'}], - updated_on='2017-06-27 08:28:35.166608+00:00', vulnerability_id=1), - Analysis(id=235, risk=3, status=3, cvss_base=7.3, - findings=[{'title': None, 'description': 'pathPrefix=/'}], - updated_on='2017-06-27 08:28:35.240543+00:00', vulnerability_id=2), - Analysis(id=236, risk=3, status=3, cvss_base=7.7, - findings=[{'title': None, 'description': 'Debug enabled within the app'}], - updated_on='2017-06-27 08:28:35.296126+00:00', vulnerability_id=3)] + + >>> client.get_analyses(1)[3] + [Analysis(id=7, risk=0, status=3, cvss_base=0.0, cvss_vector='', cvss_version=3, cvss_metrics_humanized=[], + findings=[], updated_on='2023-10-20T07:00:28.201515Z', vulnerability=7, owasp=['M3_2016'], pcidss=['4_1'], hipaa=['164_312_e_1'], cwe=['CWE_296'], mstg=['MSTG_3_2', 'MSTG_3_3', 'MSTG_3_3'], owaspapi2023=[], asvs=[], gdpr=['gdpr_25', 'gdpr_32'], computed_risk=0, overridden_risk=None), + Analysis(id=8, risk=0, status=3, cvss_base=0.0, cvss_vector='', cvss_version=3, cvss_metrics_humanized=[], + findings=[], updated_on='2023-10-20T07:00:28.525211Z', vulnerability=8, owasp=['M3_2016'], pcidss=['4_1'], hipaa=['164_312_e_1'], cwe=['CWE_297'], mstg=['MSTG_5_3'], owaspapi2023=[], asvs=[], gdpr=['gdpr_25', 'gdpr_32'], computed_risk=0, overridden_risk=None), + Analysis(id=9, risk=0, status=3, cvss_base=0.0, cvss_vector='', cvss_version=3, cvss_metrics_humanized=[], + findings=[], updated_on='2023-10-20T07:00:28.857579Z', vulnerability=9, owasp=['M3_2016'], pcidss=[], hipaa=[], cwe=['CWE_749'], mstg=['MSTG_6_6'], owaspapi2023=[], asvs=[], gdpr=['gdpr_25', 'gdpr_32'], computed_risk=0, overridden_risk=None)] + + Note the ``vulnerability_id`` for ``Analysis(id=235)``. To get details about this vulnerability: diff --git a/docs/_static/pygments.css b/docs/_static/pygments.css index 691aeb8..0d49244 100644 --- a/docs/_static/pygments.css +++ b/docs/_static/pygments.css @@ -17,6 +17,7 @@ span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: .highlight .cs { color: #408090; background-color: #fff0f0 } /* Comment.Special */ .highlight .gd { color: #A00000 } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ .highlight .gr { color: #FF0000 } /* Generic.Error */ .highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ .highlight .gi { color: #00A000 } /* Generic.Inserted */ diff --git a/docs/genindex.html b/docs/genindex.html index 13a77ae..f7536ed 100644 --- a/docs/genindex.html +++ b/docs/genindex.html @@ -145,8 +145,6 @@

D

@@ -362,10 +354,6 @@

P

  • (appknox.mapper.Submission attribute)
  • -
  • paginated_data() (appknox.client.Appknox method) -
  • -
  • paginated_drf_data() (appknox.client.Appknox method) -
  • pcidss (appknox.mapper.Analysis attribute)
  • PCIDSS (class in appknox.mapper) @@ -377,8 +365,6 @@

    P

  • platform (appknox.mapper.Project attribute)
  • poll_for_file_from_submission_id() (appknox.client.Appknox method) -
  • -
  • post() (appknox.client.ApiResource method)
  • profile (appknox.mapper.File attribute)
  • @@ -418,8 +404,6 @@

    R

    S

      -
    • set_endpoint() (appknox.client.ApiResource method) -
    • static_scan_progress (appknox.mapper.File attribute)
    • status (appknox.mapper.Analysis attribute) diff --git a/docs/index.html b/docs/index.html index 473ff2a..8028a00 100644 --- a/docs/index.html +++ b/docs/index.html @@ -147,16 +147,13 @@

      Quickstart
      >>> client.get_analyses(6)[:3]
      -[Analysis(id=267, risk=2, status=3, cvss_base=6.8,
      -    findings=[{'title': None, 'description': 'Unprotected service: com.appknox.mfva.ExportedService'}],
      -    updated_on='2017-06-27 08:28:35.166608+00:00', vulnerability_id=1),
      -Analysis(id=235, risk=3, status=3, cvss_base=7.3,
      -    findings=[{'title': None, 'description': 'pathPrefix=/'}],
      -    updated_on='2017-06-27 08:28:35.240543+00:00', vulnerability_id=2),
      -Analysis(id=236, risk=3, status=3, cvss_base=7.7,
      -    findings=[{'title': None, 'description': 'Debug enabled within the app'}],
      -    updated_on='2017-06-27 08:28:35.296126+00:00', vulnerability_id=3)]
      +
      >>> client.get_analyses(1)[3]
      +[Analysis(id=7, risk=0, status=3, cvss_base=0.0, cvss_vector='', cvss_version=3, cvss_metrics_humanized=[],
      +    findings=[], updated_on='2023-10-20T07:00:28.201515Z', vulnerability=7, owasp=['M3_2016'], pcidss=['4_1'], hipaa=['164_312_e_1'], cwe=['CWE_296'], mstg=['MSTG_3_2', 'MSTG_3_3', 'MSTG_3_3'], owaspapi2023=[], asvs=[], gdpr=['gdpr_25', 'gdpr_32'], computed_risk=0, overridden_risk=None),
      +Analysis(id=8, risk=0, status=3, cvss_base=0.0, cvss_vector='', cvss_version=3, cvss_metrics_humanized=[],
      +    findings=[], updated_on='2023-10-20T07:00:28.525211Z', vulnerability=8, owasp=['M3_2016'], pcidss=['4_1'], hipaa=['164_312_e_1'], cwe=['CWE_297'], mstg=['MSTG_5_3'], owaspapi2023=[], asvs=[], gdpr=['gdpr_25', 'gdpr_32'], computed_risk=0, overridden_risk=None),
      +Analysis(id=9, risk=0, status=3, cvss_base=0.0, cvss_vector='', cvss_version=3, cvss_metrics_humanized=[],
      +    findings=[], updated_on='2023-10-20T07:00:28.857579Z', vulnerability=9, owasp=['M3_2016'], pcidss=[], hipaa=[], cwe=['CWE_749'], mstg=['MSTG_6_6'], owaspapi2023=[], asvs=[], gdpr=['gdpr_25', 'gdpr_32'], computed_risk=0, overridden_risk=None)]
       

      Note the vulnerability_id for Analysis(id=235). To get details about this vulnerability:

      diff --git a/docs/mapper.html b/docs/mapper.html index 197c69b..8439b8d 100644 --- a/docs/mapper.html +++ b/docs/mapper.html @@ -35,17 +35,17 @@

      appknox.mapper

      -class appknox.mapper.Analysis(id, risk, status, cvss_base, cvss_vector, cvss_version, cvss_metrics_humanized, findings, updated_on, vulnerability, owasp, pcidss, hipaa, cwe, mstg, asvs, gdpr, computed_risk, overridden_risk)
      +class appknox.mapper.Analysis(id, risk, status, cvss_base, cvss_vector, cvss_version, cvss_metrics_humanized, findings, updated_on, vulnerability, owasp, pcidss, hipaa, cwe, mstg, owaspapi2023, asvs, gdpr, computed_risk, overridden_risk)
      asvs
      -

      Alias for field number 15

      +

      Alias for field number 16

      computed_risk
      -

      Alias for field number 17

      +

      Alias for field number 18

      @@ -87,7 +87,7 @@
      gdpr
      -

      Alias for field number 16

      +

      Alias for field number 17

      @@ -111,7 +111,7 @@
      overridden_risk
      -

      Alias for field number 18

      +

      Alias for field number 19

      @@ -120,6 +120,12 @@

      Alias for field number 10

      +
      +
      +owaspapi2023
      +

      Alias for field number 15

      +
      +
      pcidss
      diff --git a/docs/objects.inv b/docs/objects.inv index 15deba7..aa4a8bd 100644 Binary files a/docs/objects.inv and b/docs/objects.inv differ diff --git a/docs/searchindex.js b/docs/searchindex.js index 5f24e77..7b91041 100644 --- a/docs/searchindex.js +++ b/docs/searchindex.js @@ -1 +1 @@ -Search.setIndex({"docnames": ["client", "index", "mapper"], "filenames": ["client.rst", "index.rst", "mapper.rst"], "titles": ["appknox.client", "appknox-python", "appknox.mapper"], "terms": {"class": [0, 1, 2], "apiresourc": [0, 1], "request_sess": 0, "object": [0, 1, 2], "host": [0, 1], "str": [0, 2], "http": [0, 1], "api": [0, 1, 2], "com": [0, 1], "header": 0, "none": [0, 1], "auth": 0, "dict": [0, 2], "sourc": [0, 2], "direct_get": 0, "url": 0, "kwarg": 0, "direct_get_http_respons": 0, "respons": [0, 1], "return": [0, 1, 2], "raw": 0, "from": [0, 2], "given": [0, 1], "absolut": [0, 1], "get": 0, "post": 0, "data": 0, "content_typ": [0, 1], "set_endpoint": 0, "resourc": [0, 2], "resource_id": 0, "usernam": [0, 1, 2], "password": [0, 1], "user_id": 0, "int": [0, 2], "organization_id": [0, 1], "token": [0, 1], "access_token": [0, 1], "log_level": 0, "20": 0, "http_proxi": 0, "https_proxi": 0, "insecur": 0, "bool": [0, 2], "fals": [0, 1], "create_report": [0, 1], "file_id": [0, 1], "report": [0, 2], "creat": 0, "id": [0, 1, 2], "The": [0, 1], "can": [0, 1], "us": [0, 1], "download": 0, "differ": 0, "format": [0, 1], "download_report_data": [0, 1], "byte": 0, "resppns": 0, "bodi": [0, 1], "generate_access_token": 0, "gener": [0, 1], "person": [0, 1], "access": [0, 1], "get_analys": [0, 1], "list": 0, "analysi": [0, 2], "analys": [0, 1], "file": [0, 2], "paramet": 0, "get_fil": [0, 1], "fetch": 0, "param": 0, "project_id": [0, 1], "version_cod": [0, 1, 2], "project": [0, 2], "get_last_fil": 0, "latest": [0, 1], "get_organization_id": 0, "organ": [0, 2], "exist": 0, "otherwis": 0, "first": 0, "entri": 0, "get_organ": [0, 1], "current": 0, "authent": [0, 1], "user": [0, 1, 2], "get_owasp": 0, "owasp_id": 0, "owasp": [0, 1, 2], "get_pcidss": 0, "pcidss_id": 0, "pcidss": [0, 1, 2], "get_profile_report_prefer": 0, "profile_id": 0, "profilereportprefer": [0, 1, 2], "profil": [0, 2], "prefer": [0, 1, 2], "get_project": [0, 1], "platform": [0, 1, 2], "package_nam": [0, 1, 2], "search": [0, 1], "get_summary_csv_report_url": [0, 1], "report_id": [0, 1], "summari": 0, "csv": 0, "get_summary_excel_report_url": [0, 1], "excel": 0, "get_unselected_report_prefer": 0, "unselect": 0, "item": 0, "get_us": 0, "get_vulner": [0, 1], "vulner": [0, 2], "vulnerability_id": [0, 1], "get_whoami": 0, "whoami": [0, 1, 2], "show": 0, "session": 0, "info": 0, "list_report": [0, 1], "login": [0, 1], "otp": [0, 1], "server": 0, "One": 0, "time": 0, "account": [0, 1], "ha": [0, 1], "mfa": 0, "enabl": [0, 1], "paginated_drf_data": 0, "mapper_class": 0, "poll_for_file_from_submission_id": 0, "submission_id": 0, "submiss": [0, 1, 2], "keep": 0, "check": 0, "its": [0, 1], "statu": [0, 1, 2], "instanc": 0, "when": [0, 1], "": [0, 1], "avail": [0, 1], "scan": [0, 1], "recent_upload": [0, 1], "detail": 0, "recent": 0, "upload": 0, "rescan": 0, "start": [0, 1], "filed_id": 0, "revoke_access_token": 0, "revok": 0, "switch_organ": [0, 1], "switch": 0, "upload_fil": [0, 1], "file_data": [0, 1], "packag": [0, 1], "content": [0, 1], "write_data_to_fil": 0, "output_file_path": 0, "write": 0, "ani": [0, 1], "locat": 0, "document": 1, "version": [1, 2], "3": [1, 2], "x": 1, "provid": 1, "command": 1, "line": 1, "interfac": 1, "wrapper": 1, "i": 1, "via": 1, "pypi": 1, "It": 1, "offici": 1, "support": 1, "5": [1, 2], "6": [1, 2], "pip": 1, "an": [1, 2], "easi": 1, "thi": 1, "interact": 1, "scanner": 1, "obtain": 1, "two": 1, "wai": 1, "1": [1, 2], "import": 1, "personal_access_token": 1, "api_host": 1, "dashboard": 1, "set": 1, "develop": 1, "2": [1, 2], "credenti": 1, "recommend": 1, "013370": 1, "requir": 1, "onli": 1, "multi": 1, "factor": 1, "To": 1, "exampl": 1, "name": [1, 2], "myorgan": 1, "all": 1, "result": 1, "ar": 1, "respect": 1, "attribut": 1, "which": 1, "default": 1, "created_on": [1, 2], "2017": 1, "06": 1, "23": 1, "07": 1, "19": 1, "26": 1, "720829": 1, "00": 1, "file_count": [1, 2], "org": 1, "goatdroid": 1, "fourgoat": 1, "0": [1, 2], "updated_on": [1, 2], "55": 1, "456744": 1, "4": [1, 2], "27": 1, "08": 1, "54": 1, "486226": 1, "mfva": 1, "637432": 1, "For": 1, "within": 1, "static_scan_progress": [1, 2], "100": 1, "new": 1, "267": 1, "risk": [1, 2], "cvss_base": [1, 2], "8": [1, 2], "find": [1, 2], "titl": [1, 2], "descript": [1, 2], "unprotect": 1, "servic": 1, "exportedservic": 1, "28": 1, "35": 1, "166608": 1, "235": 1, "7": [1, 2], "pathprefix": 1, "240543": 1, "236": 1, "debug": 1, "296126": 1, "note": 1, "about": 1, "improp": 1, "permiss": 1, "A": 1, "wa": 1, "allow": 1, "other": 1, "devic": 1, "mai": 1, "contain": 1, "sensit": 1, "inform": 1, "therefor": 1, "should": 1, "share": 1, "intro": [1, 2], "contentprovid": 1, "mechan": 1, "manag": 1, "applic": 1, "control": 1, "carefulli": 1, "implement": 1, "prohibit": 1, "unauthor": 1, "binary_data": 1, "f": 1, "open": 1, "home": 1, "apk": 1, "mfva_1": 1, "rb": 1, "read": 1, "11469": 1, "15506": 1, "2019": 1, "05": 1, "06t16": 1, "04": 1, "50": 1, "094503z": 1, "reason": [1, 2], "15438": 1, "11405": 1, "02t17": 1, "36": 1, "38": 1, "374191z": 1, "15437": 1, "11404": 1, "29": 1, "245553z": 1, "15436": 1, "11403": 1, "33": 1, "399803z": 1, "under": 1, "same": 1, "onc": 1, "been": 1, "chang": 1, "true": 1, "95": 1, "105": 1, "languag": [1, 2], "en": 1, "generated_on": [1, 2], "2023": 1, "01": 1, "24t06": 1, "37": 1, "565031z": 1, "progress": [1, 2], "rate": [1, 2], "21": 1, "62": 1, "reportprefer": [1, 2], "show_api_scan": [1, 2], "show_manual_scan": [1, 2], "show_static_scan": [1, 2], "show_dynamic_scan": [1, 2], "show_ignored_analys": [1, 2], "show_hipaa": [1, 2], "inheritedprefer": [1, 2], "valu": [1, 2], "is_inherit": [1, 2], "show_pcidss": [1, 2], "94": 1, "110": 1, "25t11": 1, "52": 1, "253614z": 1, "76": 1, "v2": 1, "summary_csv_download": 1, "sig": 1, "eyj1c2vyx2lkijoylcj1c2vybmftzsi6injhamfuin0": 1, "1pkeru": 1, "u4qf1eq3qjdfrcf33nvczilzmi4jznlcr4sdqaw2_im": 1, "70abocqy8": 1, "lm75it4e41wr7orkyhabzx6a9lo_tdtzk": 1, "summary_excel_download": 1, "1pketf": 1, "skth0btbf6iwt8tfbzyszt2ymxnt2cjratkzf_kzwl": 1, "1nf1z": 1, "lu6v7emdtnbk0nkkcfh0clrdthbra1dibbvfu": 1, "full": 1, "b": 1, "pk": 1, "x03": 1, "x04": 1, "x14": 1, "x00": 1, "x08": 1, "x008": 1, "x9d": 1, "x86": 1, "xd8": 1, "x01": 1, "x07": 1, "x13": 1, "xml": 1, "xad": 1, "x93": 1, "xcbn": 1, "xc3": 1, "x10e": 1, "xf7": 1, "xfd": 1, "n": 1, "xc4": 1, "xb62": 1, "tu": 1, "x15": 1, "x8b": 1, "x96m": 1, "x16": 1, "xe9": 1, "x07p": 1, "x18": 1, "xc7": 1, "x103i": 1, "xbf": 1, "xb6": 1, "x93h": 1, "xd2": 1, "x94n": 1, "x8c": 1, "xcc": 1, "xdc": 1, "truncat": 1, "1pkezl": 1, "rr8iyficpv19ik0gybx7cai": 1, "qcswkcoeecfybucuo_w": 1, "d0i": 1, "azrv5iufy1mhginuxcqw41zghiuc1dksgsfgg8i": 1, "namespac": 1, "code": [1, 2], "test": 1, "case": 1, "type": [1, 2], "sever": 1, "overrid": 1, "cvss": 1, "score": 1, "noncompli": 1, "compliant": [1, 2], "solut": 1, "busi": 1, "implic": 1, "mapper": 1, "personaltoken": [1, 2], "profilereportpreferenceconfig": [1, 2], "mapper_drf_api": [1, 2], "mapper_json_api": [1, 2], "index": 1, "modul": 1, "page": 1, "cvss_vector": 2, "cvss_version": 2, "cvss_metrics_human": 2, "hipaa": 2, "cwe": 2, "mstg": 2, "asv": 2, "gdpr": 2, "computed_risk": 2, "overridden_risk": 2, "alia": 2, "field": 2, "number": 2, "15": 2, "17": 2, "13": 2, "16": 2, "12": 2, "14": 2, "18": 2, "10": 2, "11": 2, "9": 2, "year": 2, "accesstoken": 2, "show_gdpr": 2, "datetim": 2, "email": 2, "first_nam": 2, "lang": 2, "last_nam": 2, "related_to": 2, "business_impl": 2, "non_compli": 2, "default_organ": 2, "model": 2, "obj": 2, "dictifi": 2, "json": 2, "drf": 2, "paginated_data": 0, "perform": 0, "request": 0}, "objects": {"appknox": [[0, 0, 0, "-", "client"], [2, 0, 0, "-", "mapper"]], "appknox.client": [[0, 1, 1, "", "ApiResource"], [0, 1, 1, "", "Appknox"]], "appknox.client.ApiResource": [[0, 2, 1, "", "direct_get"], [0, 2, 1, "", "direct_get_http_response"], [0, 2, 1, "", "get"], [0, 2, 1, "", "post"], [0, 2, 1, "", "set_endpoint"]], "appknox.client.Appknox": [[0, 2, 1, "", "create_report"], [0, 2, 1, "", "download_report_data"], [0, 2, 1, "", "generate_access_token"], [0, 2, 1, "", "get_analyses"], [0, 2, 1, "", "get_file"], [0, 2, 1, "", "get_files"], [0, 2, 1, "", "get_last_file"], [0, 2, 1, "", "get_organization_id"], [0, 2, 1, "", "get_organizations"], [0, 2, 1, "", "get_owasp"], [0, 2, 1, "", "get_owasps"], [0, 2, 1, "", "get_pcidss"], [0, 2, 1, "", "get_pcidsses"], [0, 2, 1, "", "get_profile_report_preference"], [0, 2, 1, "", "get_project"], [0, 2, 1, "", "get_projects"], [0, 2, 1, "", "get_summary_csv_report_url"], [0, 2, 1, "", "get_summary_excel_report_url"], [0, 2, 1, "", "get_unselected_report_preference"], [0, 2, 1, "", "get_user"], [0, 2, 1, "", "get_vulnerabilities"], [0, 2, 1, "", "get_vulnerability"], [0, 2, 1, "", "get_whoami"], [0, 2, 1, "", "list_reports"], [0, 2, 1, "", "login"], [0, 2, 1, "", "paginated_data"], [0, 2, 1, "", "paginated_drf_data"], [0, 2, 1, "", "poll_for_file_from_submission_id"], [0, 2, 1, "", "recent_uploads"], [0, 2, 1, "", "rescan"], [0, 2, 1, "", "revoke_access_token"], [0, 2, 1, "", "switch_organization"], [0, 2, 1, "", "upload_file"], [0, 2, 1, "", "write_data_to_file"]], "appknox.mapper": [[2, 1, 1, "", "Analysis"], [2, 1, 1, "", "File"], [2, 1, 1, "", "InheritedPreference"], [2, 1, 1, "", "OWASP"], [2, 1, 1, "", "Organization"], [2, 1, 1, "", "PCIDSS"], [2, 3, 1, "", "PersonalToken"], [2, 1, 1, "", "ProfileReportPreference"], [2, 1, 1, "", "ProfileReportPreferenceConfig"], [2, 1, 1, "", "Project"], [2, 1, 1, "", "Report"], [2, 1, 1, "", "ReportPreference"], [2, 1, 1, "", "Submission"], [2, 1, 1, "", "User"], [2, 1, 1, "", "Vulnerability"], [2, 1, 1, "", "Whoami"], [2, 4, 1, "", "mapper_drf_api"], [2, 4, 1, "", "mapper_json_api"]], "appknox.mapper.Analysis": [[2, 3, 1, "", "asvs"], [2, 3, 1, "", "computed_risk"], [2, 3, 1, "", "cvss_base"], [2, 3, 1, "", "cvss_metrics_humanized"], [2, 3, 1, "", "cvss_vector"], [2, 3, 1, "", "cvss_version"], [2, 3, 1, "", "cwe"], [2, 3, 1, "", "findings"], [2, 3, 1, "", "gdpr"], [2, 3, 1, "", "hipaa"], [2, 3, 1, "", "id"], [2, 3, 1, "", "mstg"], [2, 3, 1, "", "overridden_risk"], [2, 3, 1, "", "owasp"], [2, 3, 1, "", "pcidss"], [2, 3, 1, "", "risk"], [2, 3, 1, "", "status"], [2, 3, 1, "", "updated_on"], [2, 3, 1, "", "vulnerability"]], "appknox.mapper.File": [[2, 3, 1, "", "id"], [2, 3, 1, "", "name"], [2, 3, 1, "", "profile"], [2, 3, 1, "", "static_scan_progress"], [2, 3, 1, "", "version"], [2, 3, 1, "", "version_code"]], "appknox.mapper.OWASP": [[2, 3, 1, "", "code"], [2, 3, 1, "", "description"], [2, 3, 1, "", "id"], [2, 3, 1, "", "title"], [2, 3, 1, "", "year"]], "appknox.mapper.Organization": [[2, 3, 1, "", "id"], [2, 3, 1, "", "name"]], "appknox.mapper.PCIDSS": [[2, 3, 1, "", "code"], [2, 3, 1, "", "description"], [2, 3, 1, "", "id"], [2, 3, 1, "", "title"]], "appknox.mapper.Project": [[2, 3, 1, "", "created_on"], [2, 3, 1, "", "file_count"], [2, 3, 1, "", "id"], [2, 3, 1, "", "package_name"], [2, 3, 1, "", "platform"], [2, 3, 1, "", "updated_on"]], "appknox.mapper.Submission": [[2, 3, 1, "", "created_on"], [2, 3, 1, "", "file"], [2, 3, 1, "", "id"], [2, 3, 1, "", "package_name"], [2, 3, 1, "", "reason"], [2, 3, 1, "", "status"]], "appknox.mapper.User": [[2, 3, 1, "", "email"], [2, 3, 1, "", "first_name"], [2, 3, 1, "", "id"], [2, 3, 1, "", "lang"], [2, 3, 1, "", "last_name"], [2, 3, 1, "", "username"]], "appknox.mapper.Vulnerability": [[2, 3, 1, "", "business_implication"], [2, 3, 1, "", "compliant"], [2, 3, 1, "", "description"], [2, 3, 1, "", "id"], [2, 3, 1, "", "intro"], [2, 3, 1, "", "name"], [2, 3, 1, "", "non_compliant"], [2, 3, 1, "", "related_to"], [2, 3, 1, "", "types"]], "appknox.mapper.Whoami": [[2, 3, 1, "", "default_organization"], [2, 3, 1, "", "email"], [2, 3, 1, "", "id"], [2, 3, 1, "", "username"]]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:method", "3": "py:attribute", "4": "py:function"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "method", "Python method"], "3": ["py", "attribute", "Python attribute"], "4": ["py", "function", "Python function"]}, "titleterms": {"appknox": [0, 1, 2], "client": [0, 1], "python": 1, "quickstart": 1, "instal": 1, "creat": 1, "instanc": 1, "get": 1, "organ": 1, "list": 1, "project": 1, "file": 1, "analysi": 1, "vulner": 1, "detail": 1, "upload": 1, "app": 1, "recent": 1, "rescan": 1, "switch": 1, "report": 1, "summari": 1, "csv": 1, "url": 1, "excel": 1, "download": 1, "data": 1, "from": 1, "complet": 1, "refer": 1, "indic": 1, "tabl": 1, "mapper": 2}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.viewcode": 1, "sphinx": 57}, "alltitles": {"appknox-python": [[1, "appknox-python"]], "Quickstart": [[1, "quickstart"]], "Install:": [[1, "install"]], "Creating client instance:": [[1, "creating-client-instance"]], "Get organizations list:": [[1, "get-organizations-list"]], "Get projects list:": [[1, "get-projects-list"]], "Get files list:": [[1, "get-files-list"]], "Get analysis list:": [[1, "get-analysis-list"]], "Get vulnerability details:": [[1, "get-vulnerability-details"]], "Upload app:": [[1, "upload-app"]], "Recent Uploads:": [[1, "recent-uploads"]], "Rescan:": [[1, "rescan"]], "Switch organization:": [[1, "switch-organization"]], "List Reports:": [[1, "list-reports"]], "Create Report:": [[1, "create-report"]], "Get Report Summary CSV URL:": [[1, "get-report-summary-csv-url"]], "Get Report Summary Excel URL": [[1, "get-report-summary-excel-url"]], "Download Report Data from URL": [[1, "download-report-data-from-url"]], "Complete Reference": [[1, "complete-reference"]], "Indices and tables": [[1, "indices-and-tables"]], "appknox.mapper": [[2, "module-appknox.mapper"]], "appknox.client": [[0, "module-appknox.client"]]}, "indexentries": {"apiresource (class in appknox.client)": [[0, "appknox.client.ApiResource"]], "appknox (class in appknox.client)": [[0, "appknox.client.Appknox"]], "appknox.client": [[0, "module-appknox.client"]], "create_report() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.create_report"]], "direct_get() (appknox.client.apiresource method)": [[0, "appknox.client.ApiResource.direct_get"]], "direct_get_http_response() (appknox.client.apiresource method)": [[0, "appknox.client.ApiResource.direct_get_http_response"]], "download_report_data() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.download_report_data"]], "generate_access_token() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.generate_access_token"]], "get() (appknox.client.apiresource method)": [[0, "appknox.client.ApiResource.get"]], "get_analyses() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_analyses"]], "get_file() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_file"]], "get_files() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_files"]], "get_last_file() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_last_file"]], "get_organization_id() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_organization_id"]], "get_organizations() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_organizations"]], "get_owasp() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_owasp"]], "get_owasps() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_owasps"]], "get_pcidss() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_pcidss"]], "get_pcidsses() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_pcidsses"]], "get_profile_report_preference() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_profile_report_preference"]], "get_project() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_project"]], "get_projects() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_projects"]], "get_summary_csv_report_url() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_summary_csv_report_url"]], "get_summary_excel_report_url() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_summary_excel_report_url"]], "get_unselected_report_preference() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_unselected_report_preference"]], "get_user() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_user"]], "get_vulnerabilities() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_vulnerabilities"]], "get_vulnerability() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_vulnerability"]], "get_whoami() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_whoami"]], "list_reports() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.list_reports"]], "login() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.login"]], "module": [[0, "module-appknox.client"]], "paginated_data() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.paginated_data"]], "paginated_drf_data() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.paginated_drf_data"]], "poll_for_file_from_submission_id() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.poll_for_file_from_submission_id"]], "post() (appknox.client.apiresource method)": [[0, "appknox.client.ApiResource.post"]], "recent_uploads() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.recent_uploads"]], "rescan() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.rescan"]], "revoke_access_token() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.revoke_access_token"]], "set_endpoint() (appknox.client.apiresource method)": [[0, "appknox.client.ApiResource.set_endpoint"]], "switch_organization() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.switch_organization"]], "upload_file() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.upload_file"]], "write_data_to_file() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.write_data_to_file"]]}}) \ No newline at end of file +Search.setIndex({"docnames": ["client", "index", "mapper"], "filenames": ["client.rst", "index.rst", "mapper.rst"], "titles": ["appknox.client", "appknox-python", "appknox.mapper"], "terms": {"class": [0, 1, 2], "apiresourc": [0, 1], "request_sess": 0, "object": [0, 1, 2], "host": [0, 1], "str": [0, 2], "http": [0, 1], "api": [0, 1, 2], "com": [0, 1], "header": 0, "none": [0, 1], "auth": 0, "dict": [0, 2], "sourc": [0, 2], "direct_get": [], "url": 0, "kwarg": 0, "direct_get_http_respons": 0, "respons": [0, 1], "return": [0, 1, 2], "raw": 0, "from": [0, 2], "given": [0, 1], "absolut": [0, 1], "get": 0, "post": [], "data": 0, "content_typ": 1, "set_endpoint": [], "resourc": 2, "resource_id": [], "usernam": [0, 1, 2], "password": [0, 1], "user_id": 0, "int": [0, 2], "organization_id": [0, 1], "token": [0, 1], "access_token": [0, 1], "log_level": 0, "20": 0, "http_proxi": 0, "https_proxi": 0, "insecur": 0, "bool": [0, 2], "fals": [0, 1], "create_report": [0, 1], "file_id": [0, 1], "report": [0, 2], "creat": 0, "id": [0, 1, 2], "The": [0, 1], "can": [0, 1], "us": [0, 1], "download": 0, "differ": 0, "format": [0, 1], "download_report_data": [0, 1], "byte": 0, "resppns": 0, "bodi": [0, 1], "generate_access_token": 0, "gener": [0, 1], "person": [0, 1], "access": [0, 1], "get_analys": [0, 1], "list": 0, "analysi": [0, 2], "analys": [0, 1], "file": [0, 2], "paramet": 0, "get_fil": [0, 1], "fetch": 0, "param": 0, "project_id": [0, 1], "version_cod": [0, 1, 2], "project": [0, 2], "get_last_fil": 0, "latest": [0, 1], "get_organization_id": 0, "organ": [0, 2], "exist": 0, "otherwis": 0, "first": 0, "entri": 0, "get_organ": [0, 1], "current": 0, "authent": [0, 1], "user": [0, 1, 2], "get_owasp": 0, "owasp_id": 0, "owasp": [0, 1, 2], "get_pcidss": 0, "pcidss_id": 0, "pcidss": [0, 1, 2], "get_profile_report_prefer": 0, "profile_id": 0, "profilereportprefer": [0, 1, 2], "profil": [0, 2], "prefer": [0, 1, 2], "get_project": [0, 1], "platform": [0, 1, 2], "package_nam": [0, 1, 2], "search": [0, 1], "get_summary_csv_report_url": [0, 1], "report_id": [0, 1], "summari": 0, "csv": 0, "get_summary_excel_report_url": [0, 1], "excel": 0, "get_unselected_report_prefer": 0, "unselect": 0, "item": 0, "get_us": 0, "get_vulner": [0, 1], "vulner": [0, 2], "vulnerability_id": [0, 1], "get_whoami": 0, "whoami": [0, 1, 2], "show": 0, "session": 0, "info": 0, "list_report": [0, 1], "login": [0, 1], "otp": [0, 1], "server": 0, "One": 0, "time": 0, "account": [0, 1], "ha": [0, 1], "mfa": 0, "enabl": 0, "paginated_drf_data": [], "mapper_class": [], "poll_for_file_from_submission_id": 0, "submission_id": 0, "submiss": [0, 1, 2], "keep": 0, "check": 0, "its": [0, 1], "statu": [0, 1, 2], "instanc": 0, "when": [0, 1], "": [0, 1], "avail": [0, 1], "scan": [0, 1], "recent_upload": [0, 1], "detail": 0, "recent": 0, "upload": 0, "rescan": 0, "start": [0, 1], "filed_id": 0, "revoke_access_token": 0, "revok": 0, "switch_organ": [0, 1], "switch": 0, "upload_fil": [0, 1], "file_data": [0, 1], "packag": [0, 1], "content": [0, 1], "write_data_to_fil": 0, "output_file_path": 0, "write": 0, "ani": [0, 1], "locat": 0, "document": 1, "version": [1, 2], "3": [1, 2], "x": 1, "provid": 1, "command": 1, "line": 1, "interfac": 1, "wrapper": 1, "i": 1, "via": 1, "pypi": 1, "It": 1, "offici": 1, "support": 1, "5": [1, 2], "6": [1, 2], "pip": 1, "an": [1, 2], "easi": 1, "thi": 1, "interact": [0, 1], "scanner": 1, "obtain": 1, "two": 1, "wai": 1, "1": [1, 2], "import": 1, "personal_access_token": 1, "api_host": 1, "dashboard": 1, "set": 1, "develop": 1, "2": [1, 2], "credenti": 1, "recommend": 1, "013370": 1, "requir": 1, "onli": 1, "multi": 1, "factor": 1, "To": 1, "exampl": 1, "name": [1, 2], "myorgan": 1, "all": 1, "result": 1, "ar": 1, "respect": 1, "attribut": 1, "which": 1, "default": 1, "created_on": [1, 2], "2017": 1, "06": 1, "23": 1, "07": 1, "19": [1, 2], "26": 1, "720829": 1, "00": 1, "file_count": [1, 2], "org": 1, "goatdroid": 1, "fourgoat": 1, "0": [1, 2], "updated_on": [1, 2], "55": 1, "456744": 1, "4": [1, 2], "27": 1, "08": 1, "54": 1, "486226": 1, "mfva": 1, "637432": 1, "For": 1, "within": 1, "static_scan_progress": [1, 2], "100": 1, "new": 1, "267": [], "risk": [1, 2], "cvss_base": [1, 2], "8": [1, 2], "find": [1, 2], "titl": 2, "descript": [1, 2], "unprotect": [], "servic": [], "exportedservic": [], "28": 1, "35": 1, "166608": [], "235": 1, "7": [1, 2], "pathprefix": [], "240543": [], "236": [], "debug": [], "296126": [], "note": 1, "about": 1, "improp": 1, "permiss": 1, "A": 1, "wa": 1, "allow": 1, "other": 1, "devic": 1, "mai": 1, "contain": 1, "sensit": 1, "inform": 1, "therefor": 1, "should": 1, "share": 1, "intro": [1, 2], "contentprovid": 1, "mechan": 1, "manag": 1, "applic": 1, "control": 1, "carefulli": 1, "implement": 1, "prohibit": 1, "unauthor": 1, "binary_data": 1, "f": 1, "open": 1, "home": 1, "apk": 1, "mfva_1": 1, "rb": 1, "read": 1, "11469": 1, "15506": 1, "2019": 1, "05": 1, "06t16": 1, "04": 1, "50": 1, "094503z": 1, "reason": [1, 2], "15438": 1, "11405": 1, "02t17": 1, "36": 1, "38": 1, "374191z": 1, "15437": 1, "11404": 1, "29": 1, "245553z": 1, "15436": 1, "11403": 1, "33": 1, "399803z": 1, "under": 1, "same": 1, "onc": 1, "been": 1, "chang": 1, "true": 1, "95": 1, "105": 1, "languag": [1, 2], "en": 1, "generated_on": [1, 2], "2023": 1, "01": 1, "24t06": 1, "37": 1, "565031z": 1, "progress": [1, 2], "rate": [1, 2], "21": 1, "62": 1, "reportprefer": [1, 2], "show_api_scan": [1, 2], "show_manual_scan": [1, 2], "show_static_scan": [1, 2], "show_dynamic_scan": [1, 2], "show_ignored_analys": [1, 2], "show_hipaa": [1, 2], "inheritedprefer": [1, 2], "valu": [1, 2], "is_inherit": [1, 2], "show_pcidss": [1, 2], "94": 1, "110": 1, "25t11": 1, "52": 1, "253614z": 1, "76": 1, "v2": 1, "summary_csv_download": 1, "sig": 1, "eyj1c2vyx2lkijoylcj1c2vybmftzsi6injhamfuin0": 1, "1pkeru": 1, "u4qf1eq3qjdfrcf33nvczilzmi4jznlcr4sdqaw2_im": 1, "70abocqy8": 1, "lm75it4e41wr7orkyhabzx6a9lo_tdtzk": 1, "summary_excel_download": 1, "1pketf": 1, "skth0btbf6iwt8tfbzyszt2ymxnt2cjratkzf_kzwl": 1, "1nf1z": 1, "lu6v7emdtnbk0nkkcfh0clrdthbra1dibbvfu": 1, "full": 1, "b": 1, "pk": 1, "x03": 1, "x04": 1, "x14": 1, "x00": 1, "x08": 1, "x008": 1, "x9d": 1, "x86": 1, "xd8": 1, "x01": 1, "x07": 1, "x13": 1, "xml": 1, "xad": 1, "x93": 1, "xcbn": 1, "xc3": 1, "x10e": 1, "xf7": 1, "xfd": 1, "n": 1, "xc4": 1, "xb62": 1, "tu": 1, "x15": 1, "x8b": 1, "x96m": 1, "x16": 1, "xe9": 1, "x07p": 1, "x18": 1, "xc7": 1, "x103i": 1, "xbf": 1, "xb6": 1, "x93h": 1, "xd2": 1, "x94n": 1, "x8c": 1, "xcc": 1, "xdc": 1, "truncat": 1, "1pkezl": 1, "rr8iyficpv19ik0gybx7cai": 1, "qcswkcoeecfybucuo_w": 1, "d0i": 1, "azrv5iufy1mhginuxcqw41zghiuc1dksgsfgg8i": 1, "namespac": 1, "code": [1, 2], "test": 1, "case": 1, "type": [1, 2], "sever": 1, "overrid": 1, "cvss": 1, "score": 1, "noncompli": 1, "compliant": [1, 2], "solut": 1, "busi": 1, "implic": 1, "mapper": 1, "personaltoken": [1, 2], "profilereportpreferenceconfig": [1, 2], "mapper_drf_api": [1, 2], "mapper_json_api": [1, 2], "index": 1, "modul": 1, "page": 1, "cvss_vector": [1, 2], "cvss_version": [1, 2], "cvss_metrics_human": [1, 2], "hipaa": [1, 2], "cwe": [1, 2], "mstg": [1, 2], "asv": [1, 2], "gdpr": [1, 2], "computed_risk": [1, 2], "overridden_risk": [1, 2], "alia": 2, "field": 2, "number": 2, "15": 2, "17": 2, "13": 2, "16": 2, "12": 2, "14": 2, "18": 2, "10": [1, 2], "11": 2, "9": [1, 2], "year": 2, "accesstoken": 2, "show_gdpr": 2, "datetim": 2, "email": 2, "first_nam": 2, "lang": 2, "last_nam": 2, "related_to": 2, "business_impl": 2, "non_compli": 2, "default_organ": 2, "model": 2, "obj": 2, "dictifi": 2, "json": 2, "drf": 2, "paginated_data": [], "perform": 0, "request": 0, "20t07": 1, "201515z": 1, "m3_2016": 1, "4_1": 1, "164_312_e_1": 1, "cwe_296": 1, "mstg_3_2": 1, "mstg_3_3": 1, "owaspapi2023": [1, 2], "gdpr_25": 1, "gdpr_32": 1, "525211z": 1, "cwe_297": 1, "mstg_5_3": 1, "857579z": 1, "cwe_749": 1, "mstg_6_6": 1}, "objects": {"appknox": [[0, 0, 0, "-", "client"], [2, 0, 0, "-", "mapper"]], "appknox.client": [[0, 1, 1, "", "ApiResource"], [0, 1, 1, "", "Appknox"]], "appknox.client.ApiResource": [[0, 2, 1, "", "direct_get_http_response"]], "appknox.client.Appknox": [[0, 2, 1, "", "create_report"], [0, 2, 1, "", "download_report_data"], [0, 2, 1, "", "generate_access_token"], [0, 2, 1, "", "get_analyses"], [0, 2, 1, "", "get_file"], [0, 2, 1, "", "get_files"], [0, 2, 1, "", "get_last_file"], [0, 2, 1, "", "get_organization_id"], [0, 2, 1, "", "get_organizations"], [0, 2, 1, "", "get_owasp"], [0, 2, 1, "", "get_pcidss"], [0, 2, 1, "", "get_profile_report_preference"], [0, 2, 1, "", "get_project"], [0, 2, 1, "", "get_projects"], [0, 2, 1, "", "get_summary_csv_report_url"], [0, 2, 1, "", "get_summary_excel_report_url"], [0, 2, 1, "", "get_unselected_report_preference"], [0, 2, 1, "", "get_user"], [0, 2, 1, "", "get_vulnerability"], [0, 2, 1, "", "get_whoami"], [0, 2, 1, "", "list_reports"], [0, 2, 1, "", "login"], [0, 2, 1, "", "poll_for_file_from_submission_id"], [0, 2, 1, "", "recent_uploads"], [0, 2, 1, "", "rescan"], [0, 2, 1, "", "revoke_access_token"], [0, 2, 1, "", "switch_organization"], [0, 2, 1, "", "upload_file"], [0, 2, 1, "", "write_data_to_file"]], "appknox.mapper": [[2, 1, 1, "", "Analysis"], [2, 1, 1, "", "File"], [2, 1, 1, "", "InheritedPreference"], [2, 1, 1, "", "OWASP"], [2, 1, 1, "", "Organization"], [2, 1, 1, "", "PCIDSS"], [2, 3, 1, "", "PersonalToken"], [2, 1, 1, "", "ProfileReportPreference"], [2, 1, 1, "", "ProfileReportPreferenceConfig"], [2, 1, 1, "", "Project"], [2, 1, 1, "", "Report"], [2, 1, 1, "", "ReportPreference"], [2, 1, 1, "", "Submission"], [2, 1, 1, "", "User"], [2, 1, 1, "", "Vulnerability"], [2, 1, 1, "", "Whoami"], [2, 4, 1, "", "mapper_drf_api"], [2, 4, 1, "", "mapper_json_api"]], "appknox.mapper.Analysis": [[2, 3, 1, "", "asvs"], [2, 3, 1, "", "computed_risk"], [2, 3, 1, "", "cvss_base"], [2, 3, 1, "", "cvss_metrics_humanized"], [2, 3, 1, "", "cvss_vector"], [2, 3, 1, "", "cvss_version"], [2, 3, 1, "", "cwe"], [2, 3, 1, "", "findings"], [2, 3, 1, "", "gdpr"], [2, 3, 1, "", "hipaa"], [2, 3, 1, "", "id"], [2, 3, 1, "", "mstg"], [2, 3, 1, "", "overridden_risk"], [2, 3, 1, "", "owasp"], [2, 3, 1, "", "owaspapi2023"], [2, 3, 1, "", "pcidss"], [2, 3, 1, "", "risk"], [2, 3, 1, "", "status"], [2, 3, 1, "", "updated_on"], [2, 3, 1, "", "vulnerability"]], "appknox.mapper.File": [[2, 3, 1, "", "id"], [2, 3, 1, "", "name"], [2, 3, 1, "", "profile"], [2, 3, 1, "", "static_scan_progress"], [2, 3, 1, "", "version"], [2, 3, 1, "", "version_code"]], "appknox.mapper.OWASP": [[2, 3, 1, "", "code"], [2, 3, 1, "", "description"], [2, 3, 1, "", "id"], [2, 3, 1, "", "title"], [2, 3, 1, "", "year"]], "appknox.mapper.Organization": [[2, 3, 1, "", "id"], [2, 3, 1, "", "name"]], "appknox.mapper.PCIDSS": [[2, 3, 1, "", "code"], [2, 3, 1, "", "description"], [2, 3, 1, "", "id"], [2, 3, 1, "", "title"]], "appknox.mapper.Project": [[2, 3, 1, "", "created_on"], [2, 3, 1, "", "file_count"], [2, 3, 1, "", "id"], [2, 3, 1, "", "package_name"], [2, 3, 1, "", "platform"], [2, 3, 1, "", "updated_on"]], "appknox.mapper.Submission": [[2, 3, 1, "", "created_on"], [2, 3, 1, "", "file"], [2, 3, 1, "", "id"], [2, 3, 1, "", "package_name"], [2, 3, 1, "", "reason"], [2, 3, 1, "", "status"]], "appknox.mapper.User": [[2, 3, 1, "", "email"], [2, 3, 1, "", "first_name"], [2, 3, 1, "", "id"], [2, 3, 1, "", "lang"], [2, 3, 1, "", "last_name"], [2, 3, 1, "", "username"]], "appknox.mapper.Vulnerability": [[2, 3, 1, "", "business_implication"], [2, 3, 1, "", "compliant"], [2, 3, 1, "", "description"], [2, 3, 1, "", "id"], [2, 3, 1, "", "intro"], [2, 3, 1, "", "name"], [2, 3, 1, "", "non_compliant"], [2, 3, 1, "", "related_to"], [2, 3, 1, "", "types"]], "appknox.mapper.Whoami": [[2, 3, 1, "", "default_organization"], [2, 3, 1, "", "email"], [2, 3, 1, "", "id"], [2, 3, 1, "", "username"]]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:method", "3": "py:attribute", "4": "py:function"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "method", "Python method"], "3": ["py", "attribute", "Python attribute"], "4": ["py", "function", "Python function"]}, "titleterms": {"appknox": [0, 1, 2], "client": [0, 1], "python": 1, "quickstart": 1, "instal": 1, "creat": 1, "instanc": 1, "get": 1, "organ": 1, "list": 1, "project": 1, "file": 1, "analysi": 1, "vulner": 1, "detail": 1, "upload": 1, "app": 1, "recent": 1, "rescan": 1, "switch": 1, "report": 1, "summari": 1, "csv": 1, "url": 1, "excel": 1, "download": 1, "data": 1, "from": 1, "complet": 1, "refer": 1, "indic": 1, "tabl": 1, "mapper": 2}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.viewcode": 1, "sphinx": 57}, "alltitles": {"appknox.client": [[0, "module-appknox.client"]], "appknox-python": [[1, "appknox-python"]], "Quickstart": [[1, "quickstart"]], "Install:": [[1, "install"]], "Creating client instance:": [[1, "creating-client-instance"]], "Get organizations list:": [[1, "get-organizations-list"]], "Get projects list:": [[1, "get-projects-list"]], "Get files list:": [[1, "get-files-list"]], "Get analysis list:": [[1, "get-analysis-list"]], "Get vulnerability details:": [[1, "get-vulnerability-details"]], "Upload app:": [[1, "upload-app"]], "Recent Uploads:": [[1, "recent-uploads"]], "Rescan:": [[1, "rescan"]], "Switch organization:": [[1, "switch-organization"]], "List Reports:": [[1, "list-reports"]], "Create Report:": [[1, "create-report"]], "Get Report Summary CSV URL:": [[1, "get-report-summary-csv-url"]], "Get Report Summary Excel URL": [[1, "get-report-summary-excel-url"]], "Download Report Data from URL": [[1, "download-report-data-from-url"]], "Complete Reference": [[1, "complete-reference"]], "Indices and tables": [[1, "indices-and-tables"]], "appknox.mapper": [[2, "module-appknox.mapper"]]}, "indexentries": {"apiresource (class in appknox.client)": [[0, "appknox.client.ApiResource"]], "appknox (class in appknox.client)": [[0, "appknox.client.Appknox"]], "appknox.client": [[0, "module-appknox.client"]], "create_report() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.create_report"]], "direct_get_http_response() (appknox.client.apiresource method)": [[0, "appknox.client.ApiResource.direct_get_http_response"]], "download_report_data() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.download_report_data"]], "generate_access_token() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.generate_access_token"]], "get_analyses() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_analyses"]], "get_file() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_file"]], "get_files() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_files"]], "get_last_file() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_last_file"]], "get_organization_id() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_organization_id"]], "get_organizations() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_organizations"]], "get_owasp() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_owasp"]], "get_pcidss() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_pcidss"]], "get_profile_report_preference() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_profile_report_preference"]], "get_project() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_project"]], "get_projects() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_projects"]], "get_summary_csv_report_url() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_summary_csv_report_url"]], "get_summary_excel_report_url() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_summary_excel_report_url"]], "get_unselected_report_preference() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_unselected_report_preference"]], "get_user() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_user"]], "get_vulnerability() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_vulnerability"]], "get_whoami() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.get_whoami"]], "list_reports() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.list_reports"]], "login() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.login"]], "module": [[0, "module-appknox.client"], [2, "module-appknox.mapper"]], "poll_for_file_from_submission_id() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.poll_for_file_from_submission_id"]], "recent_uploads() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.recent_uploads"]], "rescan() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.rescan"]], "revoke_access_token() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.revoke_access_token"]], "switch_organization() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.switch_organization"]], "upload_file() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.upload_file"]], "write_data_to_file() (appknox.client.appknox method)": [[0, "appknox.client.Appknox.write_data_to_file"]], "analysis (class in appknox.mapper)": [[2, "appknox.mapper.Analysis"]], "file (class in appknox.mapper)": [[2, "appknox.mapper.File"]], "inheritedpreference (class in appknox.mapper)": [[2, "appknox.mapper.InheritedPreference"]], "owasp (class in appknox.mapper)": [[2, "appknox.mapper.OWASP"]], "organization (class in appknox.mapper)": [[2, "appknox.mapper.Organization"]], "pcidss (class in appknox.mapper)": [[2, "appknox.mapper.PCIDSS"]], "personaltoken (in module appknox.mapper)": [[2, "appknox.mapper.PersonalToken"]], "profilereportpreference (class in appknox.mapper)": [[2, "appknox.mapper.ProfileReportPreference"]], "profilereportpreferenceconfig (class in appknox.mapper)": [[2, "appknox.mapper.ProfileReportPreferenceConfig"]], "project (class in appknox.mapper)": [[2, "appknox.mapper.Project"]], "report (class in appknox.mapper)": [[2, "appknox.mapper.Report"]], "reportpreference (class in appknox.mapper)": [[2, "appknox.mapper.ReportPreference"]], "submission (class in appknox.mapper)": [[2, "appknox.mapper.Submission"]], "user (class in appknox.mapper)": [[2, "appknox.mapper.User"]], "vulnerability (class in appknox.mapper)": [[2, "appknox.mapper.Vulnerability"]], "whoami (class in appknox.mapper)": [[2, "appknox.mapper.Whoami"]], "appknox.mapper": [[2, "module-appknox.mapper"]], "asvs (appknox.mapper.analysis attribute)": [[2, "appknox.mapper.Analysis.asvs"]], "business_implication (appknox.mapper.vulnerability attribute)": [[2, "appknox.mapper.Vulnerability.business_implication"]], "code (appknox.mapper.owasp attribute)": [[2, "appknox.mapper.OWASP.code"]], "code (appknox.mapper.pcidss attribute)": [[2, "appknox.mapper.PCIDSS.code"]], "compliant (appknox.mapper.vulnerability attribute)": [[2, "appknox.mapper.Vulnerability.compliant"]], "computed_risk (appknox.mapper.analysis attribute)": [[2, "appknox.mapper.Analysis.computed_risk"]], "created_on (appknox.mapper.project attribute)": [[2, "appknox.mapper.Project.created_on"]], "created_on (appknox.mapper.submission attribute)": [[2, "appknox.mapper.Submission.created_on"]], "cvss_base (appknox.mapper.analysis attribute)": [[2, "appknox.mapper.Analysis.cvss_base"]], "cvss_metrics_humanized (appknox.mapper.analysis attribute)": [[2, "appknox.mapper.Analysis.cvss_metrics_humanized"]], "cvss_vector (appknox.mapper.analysis attribute)": [[2, "appknox.mapper.Analysis.cvss_vector"]], "cvss_version (appknox.mapper.analysis attribute)": [[2, "appknox.mapper.Analysis.cvss_version"]], "cwe (appknox.mapper.analysis attribute)": [[2, "appknox.mapper.Analysis.cwe"]], "default_organization (appknox.mapper.whoami attribute)": [[2, "appknox.mapper.Whoami.default_organization"]], "description (appknox.mapper.owasp attribute)": [[2, "appknox.mapper.OWASP.description"]], "description (appknox.mapper.pcidss attribute)": [[2, "appknox.mapper.PCIDSS.description"]], "description (appknox.mapper.vulnerability attribute)": [[2, "appknox.mapper.Vulnerability.description"]], "email (appknox.mapper.user attribute)": [[2, "appknox.mapper.User.email"]], "email (appknox.mapper.whoami attribute)": [[2, "appknox.mapper.Whoami.email"]], "file (appknox.mapper.submission attribute)": [[2, "appknox.mapper.Submission.file"]], "file_count (appknox.mapper.project attribute)": [[2, "appknox.mapper.Project.file_count"]], "findings (appknox.mapper.analysis attribute)": [[2, "appknox.mapper.Analysis.findings"]], "first_name (appknox.mapper.user attribute)": [[2, "appknox.mapper.User.first_name"]], "gdpr (appknox.mapper.analysis attribute)": [[2, "appknox.mapper.Analysis.gdpr"]], "hipaa (appknox.mapper.analysis attribute)": [[2, "appknox.mapper.Analysis.hipaa"]], "id (appknox.mapper.analysis attribute)": [[2, "appknox.mapper.Analysis.id"]], "id (appknox.mapper.file attribute)": [[2, "appknox.mapper.File.id"]], "id (appknox.mapper.owasp attribute)": [[2, "appknox.mapper.OWASP.id"]], "id (appknox.mapper.organization attribute)": [[2, "appknox.mapper.Organization.id"]], "id (appknox.mapper.pcidss attribute)": [[2, "appknox.mapper.PCIDSS.id"]], "id (appknox.mapper.project attribute)": [[2, "appknox.mapper.Project.id"]], "id (appknox.mapper.submission attribute)": [[2, "appknox.mapper.Submission.id"]], "id (appknox.mapper.user attribute)": [[2, "appknox.mapper.User.id"]], "id (appknox.mapper.vulnerability attribute)": [[2, "appknox.mapper.Vulnerability.id"]], "id (appknox.mapper.whoami attribute)": [[2, "appknox.mapper.Whoami.id"]], "intro (appknox.mapper.vulnerability attribute)": [[2, "appknox.mapper.Vulnerability.intro"]], "lang (appknox.mapper.user attribute)": [[2, "appknox.mapper.User.lang"]], "last_name (appknox.mapper.user attribute)": [[2, "appknox.mapper.User.last_name"]], "mapper_drf_api() (in module appknox.mapper)": [[2, "appknox.mapper.mapper_drf_api"]], "mapper_json_api() (in module appknox.mapper)": [[2, "appknox.mapper.mapper_json_api"]], "mstg (appknox.mapper.analysis attribute)": [[2, "appknox.mapper.Analysis.mstg"]], "name (appknox.mapper.file attribute)": [[2, "appknox.mapper.File.name"]], "name (appknox.mapper.organization attribute)": [[2, "appknox.mapper.Organization.name"]], "name (appknox.mapper.vulnerability attribute)": [[2, "appknox.mapper.Vulnerability.name"]], "non_compliant (appknox.mapper.vulnerability attribute)": [[2, "appknox.mapper.Vulnerability.non_compliant"]], "overridden_risk (appknox.mapper.analysis attribute)": [[2, "appknox.mapper.Analysis.overridden_risk"]], "owasp (appknox.mapper.analysis attribute)": [[2, "appknox.mapper.Analysis.owasp"]], "owaspapi2023 (appknox.mapper.analysis attribute)": [[2, "appknox.mapper.Analysis.owaspapi2023"]], "package_name (appknox.mapper.project attribute)": [[2, "appknox.mapper.Project.package_name"]], "package_name (appknox.mapper.submission attribute)": [[2, "appknox.mapper.Submission.package_name"]], "pcidss (appknox.mapper.analysis attribute)": [[2, "appknox.mapper.Analysis.pcidss"]], "platform (appknox.mapper.project attribute)": [[2, "appknox.mapper.Project.platform"]], "profile (appknox.mapper.file attribute)": [[2, "appknox.mapper.File.profile"]], "reason (appknox.mapper.submission attribute)": [[2, "appknox.mapper.Submission.reason"]], "related_to (appknox.mapper.vulnerability attribute)": [[2, "appknox.mapper.Vulnerability.related_to"]], "risk (appknox.mapper.analysis attribute)": [[2, "appknox.mapper.Analysis.risk"]], "static_scan_progress (appknox.mapper.file attribute)": [[2, "appknox.mapper.File.static_scan_progress"]], "status (appknox.mapper.analysis attribute)": [[2, "appknox.mapper.Analysis.status"]], "status (appknox.mapper.submission attribute)": [[2, "appknox.mapper.Submission.status"]], "title (appknox.mapper.owasp attribute)": [[2, "appknox.mapper.OWASP.title"]], "title (appknox.mapper.pcidss attribute)": [[2, "appknox.mapper.PCIDSS.title"]], "types (appknox.mapper.vulnerability attribute)": [[2, "appknox.mapper.Vulnerability.types"]], "updated_on (appknox.mapper.analysis attribute)": [[2, "appknox.mapper.Analysis.updated_on"]], "updated_on (appknox.mapper.project attribute)": [[2, "appknox.mapper.Project.updated_on"]], "username (appknox.mapper.user attribute)": [[2, "appknox.mapper.User.username"]], "username (appknox.mapper.whoami attribute)": [[2, "appknox.mapper.Whoami.username"]], "version (appknox.mapper.file attribute)": [[2, "appknox.mapper.File.version"]], "version_code (appknox.mapper.file attribute)": [[2, "appknox.mapper.File.version_code"]], "vulnerability (appknox.mapper.analysis attribute)": [[2, "appknox.mapper.Analysis.vulnerability"]], "year (appknox.mapper.owasp attribute)": [[2, "appknox.mapper.OWASP.year"]]}}) \ No newline at end of file diff --git a/sphinx-docs/index.rst b/sphinx-docs/index.rst index 05dd58b..6adf7de 100644 --- a/sphinx-docs/index.rst +++ b/sphinx-docs/index.rst @@ -165,16 +165,16 @@ Get the analyses for this new file: .. code-block:: python - >>> client.get_analyses(6)[:3] - [Analysis(id=267, risk=2, status=3, cvss_base=6.8, - findings=[{'title': None, 'description': 'Unprotected service: com.appknox.mfva.ExportedService'}], - updated_on='2017-06-27 08:28:35.166608+00:00', vulnerability_id=1), - Analysis(id=235, risk=3, status=3, cvss_base=7.3, - findings=[{'title': None, 'description': 'pathPrefix=/'}], - updated_on='2017-06-27 08:28:35.240543+00:00', vulnerability_id=2), - Analysis(id=236, risk=3, status=3, cvss_base=7.7, - findings=[{'title': None, 'description': 'Debug enabled within the app'}], - updated_on='2017-06-27 08:28:35.296126+00:00', vulnerability_id=3)] + + >>> client.get_analyses(1)[3] + [Analysis(id=7, risk=0, status=3, cvss_base=0.0, cvss_vector='', cvss_version=3, cvss_metrics_humanized=[], + findings=[], updated_on='2023-10-20T07:00:28.201515Z', vulnerability=7, owasp=['M3_2016'], pcidss=['4_1'], hipaa=['164_312_e_1'], cwe=['CWE_296'], mstg=['MSTG_3_2', 'MSTG_3_3', 'MSTG_3_3'], owaspapi2023=[], asvs=[], gdpr=['gdpr_25', 'gdpr_32'], computed_risk=0, overridden_risk=None), + Analysis(id=8, risk=0, status=3, cvss_base=0.0, cvss_vector='', cvss_version=3, cvss_metrics_humanized=[], + findings=[], updated_on='2023-10-20T07:00:28.525211Z', vulnerability=8, owasp=['M3_2016'], pcidss=['4_1'], hipaa=['164_312_e_1'], cwe=['CWE_297'], mstg=['MSTG_5_3'], owaspapi2023=[], asvs=[], gdpr=['gdpr_25', 'gdpr_32'], computed_risk=0, overridden_risk=None), + Analysis(id=9, risk=0, status=3, cvss_base=0.0, cvss_vector='', cvss_version=3, cvss_metrics_humanized=[], + findings=[], updated_on='2023-10-20T07:00:28.857579Z', vulnerability=9, owasp=['M3_2016'], pcidss=[], hipaa=[], cwe=['CWE_749'], mstg=['MSTG_6_6'], owaspapi2023=[], asvs=[], gdpr=['gdpr_25', 'gdpr_32'], computed_risk=0, overridden_risk=None)] + + Note the ``vulnerability_id`` for ``Analysis(id=235)``. To get details about this vulnerability: