Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Version 4.0.3
* Fix - problem loading some inputs on Windows system. [Issue #8](https://github.com/splunk/splunk-add-on-microsoft-azure/issues/8) and [Issue #12](https://github.com/splunk/splunk-add-on-microsoft-azure/issues/12)
* Added `name` parameter to the `[id]` stanza in `default/app.conf`
* Bumped `splunktaucclib` to version `6.0.6` to address potential credential corruption issues
* Fix - errant newline in `eventtypes.conf` for `azure_vuln` stanza. [Issue #19](https://github.com/splunk/splunk-add-on-microsoft-azure/issues/19)
* Fix - nextLink parameter is different for consumption input causing limited results. [Issue #20](https://github.com/splunk/splunk-add-on-microsoft-azure/issues/20)
* Increase REST request timeout to 60 seconds

# Version 4.0.2
* Bug fix - Problem creating new AAD Audit Input - [Issue #3](https://github.com/splunk/splunk-add-on-microsoft-azure/issues/3)
* Bug fix - Azure AD User and Group pagination issue
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This add-on is built with Splunk's [UCC Generator](https://github.com/splunk/add

Example:

ucc-gen --ta-version=4.0.2
ucc-gen --ta-version=4.0.3

The add-on will be built in an `output` directory in the root of the repository.

Expand Down
2 changes: 1 addition & 1 deletion globalConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"meta": {
"name": "TA-MS-AAD",
"displayName": "Splunk Add-on for Microsoft Azure",
"version": "4.0.2",
"version": "4.0.3",
"apiVersion": "3.0.0",
"restRoot": "TA_MS_AAD",
"schemaVersion": "0.0.3"
Expand Down
2 changes: 1 addition & 1 deletion package/app.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"id": {
"group": null,
"name": "TA-MS-AAD",
"version": "4.0.2"
"version": "4.0.3"
},
"author": [
{
Expand Down
2 changes: 1 addition & 1 deletion package/bin/azure_consumption.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def get_start_date(helper, check_point_key):
start_date = helper.get_arg("start_date")
if (start_date not in [None,'']):
d = dateutil.parser.parse(start_date)
helper.log_debug("_Splunk_ input_name=%s Getting start date. input_name=%s Start date in stanza: %s" % (input_name, start_date))
helper.log_debug("_Splunk_ input_name=%s Getting start date. input_name=%s Start date in stanza: %s" % (input_name, input_name, start_date))
return d.strftime('%Y-%m-%d')
else:
# If there was no start date specified, default to 90 day ago
Expand Down
1 change: 0 additions & 1 deletion package/bin/import_declare_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

'''
import os
import pwd
import sys

import warnings
Expand Down
13 changes: 9 additions & 4 deletions package/bin/ta_azure_utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from requests.packages.urllib3.util.retry import Retry
import six

TIMEOUT = 5 #seconds
TIMEOUT = 60 #seconds

def handle_nextLink(helper=None, response=None, session=None):
if '@odata.nextLink' in response:
Expand Down Expand Up @@ -74,14 +74,19 @@ def get_items(helper, access_token, url, items=[]):
response_json = json.loads(r.content)
items += response_json['value']

nextLink = None
if '@odata.nextLink' in response_json:
nextLink = response_json['@odata.nextLink']

if 'nextLink' in response_json:
nextLink = response_json['nextLink']

if nextLink:
# This should never happen, but just in case...
if not is_https(nextLink):
raise ValueError("nextLink scheme is not HTTPS. nextLink URL: %s" % nextLink)

helper.log_debug("_Splunk_ nextLink URL (@odata.nextLink): %s" % nextLink)
helper.log_debug("_Splunk_ nextLink URL: %s" % nextLink)
get_items(helper, access_token, nextLink, items)

except Exception as e:
Expand Down Expand Up @@ -123,11 +128,11 @@ def get_items_batch_session(helper=None, url=None, session=None):

return response_json

def post_items_batch_session(helper=None, url=None, headers=None, data=None, session=None):
def post_items_batch_session(helper=None, url=None, headers=None, data=None, session=None, verify=False):

t0 = time.time()
try:
r = requests_retry_session(session=session).post(url=url, headers=headers, data=data, timeout=TIMEOUT)
r = requests_retry_session(session=session).post(url=url, headers=headers, data=data, timeout=TIMEOUT, verify=verify)
r.raise_for_status()
response_json = None
response_json = json.loads(r.content)
Expand Down
2 changes: 2 additions & 0 deletions package/default/app.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ reload.ta_ms_aad_account = simple
reload.ta_ms_aad_settings = simple
reload.passwords = simple

[id]
name = TA-MS-AAD

This file was deleted.

18 changes: 0 additions & 18 deletions package/default/data/ui/panels/aad_audit_changes_made_by_users.xml

This file was deleted.

37 changes: 0 additions & 37 deletions package/default/data/ui/panels/aad_audit_top_activities.xml

This file was deleted.

18 changes: 0 additions & 18 deletions package/default/data/ui/panels/aad_signin_failed_signins.xml

This file was deleted.

37 changes: 0 additions & 37 deletions package/default/data/ui/panels/aad_signin_login_status.xml

This file was deleted.

36 changes: 0 additions & 36 deletions package/default/data/ui/panels/aad_signin_logins_by_geography.xml

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions package/default/data/ui/views/configuration.xml

This file was deleted.

4 changes: 0 additions & 4 deletions package/default/data/ui/views/inputs.xml

This file was deleted.

3 changes: 1 addition & 2 deletions package/default/eventtypes.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,4 @@ search = sourcetype="azure:vm:stop"
search = sourcetype="m365:group:member:add"

[azure_vuln]
search = (sourcetype=azure:resourcegraph type="microsoft.security/assessments/subAssessments" "properties.additionalData.assessedResourceType"=ServerVulnerability
properties.additionalData.cve{}.title=*)
search = (sourcetype=azure:resourcegraph type="microsoft.security/assessments/subAssessments" "properties.additionalData.assessedResourceType"=ServerVulnerability properties.additionalData.cve{}.title=*)
2 changes: 1 addition & 1 deletion package/lib/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
splunktaucclib>=4.1.0
splunktaucclib>=6.0.6
python-dateutil>=2.8.2
six>=1.16.0