Skip to content

Commit

Permalink
demisto/faker3:1.0.0.1976220 | 0-100 | PR batch #1/1 (#38165)
Browse files Browse the repository at this point in the history
* Updated docker image to demisto/faker3:1.0.0.1976220. PR batch #1/1

* Updated docker image to demisto/netutils:1.0.0.118055. PR batch #1/1 (#38166)

Co-authored-by: root <root@1e2de18e0cc3>

* Add RN

---------
Co-authored-by: root <root@1e2de18e0cc3>
Co-authored-by: Aaron <4101535@gmail.com>
Co-authored-by: azonenfeld <117573492+aaron1535@users.noreply.github.com>
  • Loading branch information
4 people authored Jan 21, 2025
1 parent ca743ff commit 18944fb
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -477,13 +477,13 @@ def update_parameters():
max_num_of_incidents = int(params.get('max_num_of_incidents', '10'))
frequency = int(params.get('frequency')) if params.get('frequency') else None
global INCIDENTS_PER_MINUTE
if INCIDENTS_PER_MINUTE != incidents_per_minute:
if incidents_per_minute != INCIDENTS_PER_MINUTE:
INCIDENTS_PER_MINUTE = incidents_per_minute
global MAX_NUM_OF_INCIDENTS
if MAX_NUM_OF_INCIDENTS != max_num_of_incidents:
if max_num_of_incidents != MAX_NUM_OF_INCIDENTS:
MAX_NUM_OF_INCIDENTS = max_num_of_incidents
global FREQUENCY
if FREQUENCY != frequency:
if frequency != FREQUENCY:
FREQUENCY = frequency


Expand Down Expand Up @@ -526,7 +526,7 @@ def create_content():
for _ in range(INDICATORS_PER_INCIDENT):
ipv4, url, domain = fake.ipv4_public(), fake.url(), fake.domain_name() # pylint: disable=no-member
sha1, sha256, md5 = fake.sha1(), fake.sha256(), fake.md5() # pylint: disable=no-member
details += ipv4 + ' ' + url + ' ' + domain + ' ' + sha1 + ' ' + sha256 + ' ' + md5 + '\n'
details += str(ipv4) + ' ' + str(url) + ' ' + str(domain) + ' ' + str(sha1) + ' ' + str(sha256) + ' ' + str(md5) + '\n'

emails = [fake.email() for _ in range(INDICATORS_PER_INCIDENT)] # pylint: disable=no-member
details += ' '.join(emails)
Expand Down Expand Up @@ -564,7 +564,7 @@ def create_email():
bcc = [fake.email() for _ in range(random.randint(0, 2))] # pylint: disable=no-member
the_time = datetime.now()
received = 'from ' + fake.hostname() + ' (' + fake.ipv4_public() # pylint: disable=no-member
received += ')\r\n' + 'by ' + fake.domain_word() + '.' # pylint: disable=no-member
received += ')' + 'by ' + fake.domain_word() + '.' # pylint: disable=no-member
received += fake.free_email_domain() + ' with ' # pylint: disable=no-member
received += EMAIL_PROTOCOLS[random.randint(0, len(EMAIL_PROTOCOLS) - 1)]
received += '; ' + the_time.strftime('%c')
Expand All @@ -573,7 +573,7 @@ def create_email():
msg['From'] = sender
msg['Reply-To'] = sender
msg['To'] = recipient
msg['Message-ID'] = fake.uuid4() # pylint: disable=no-member
msg['Message-ID'] = str(fake.uuid4()) # pylint: disable=no-member
msg['CC'] = ', '.join(cc) if cc else ''
msg['BCC'] = ', '.join(bcc) if bcc else ''
msg['User-Agent'] = fake.user_agent() # pylint: disable=no-member
Expand Down Expand Up @@ -718,7 +718,7 @@ def demo_ip_command():
outputPaths['ip']: standard_ip_output
}

title = 'OnboardingIntegration IP Reputation - {}'.format(ip)
title = f'OnboardingIntegration IP Reputation - {ip}'
human_readable = tableToMarkdown(title, dbotscore_output)

demisto.results({
Expand Down Expand Up @@ -766,7 +766,7 @@ def demo_url_command():
outputPaths['url']: standard_url_output
}

title = 'OnboardingIntegration URL Reputation - {}'.format(url)
title = f'OnboardingIntegration URL Reputation - {url}'
human_readable = tableToMarkdown(title, dbotscore_output)

demisto.results({
Expand Down Expand Up @@ -814,7 +814,7 @@ def demo_domain_command():
outputPaths['domain']: standard_domain_output
}

title = 'OnboardingIntegration Domain Reputation - {}'.format(domain)
title = f'OnboardingIntegration Domain Reputation - {domain}'
human_readable = tableToMarkdown(title, dbotscore_output)

demisto.results({
Expand Down Expand Up @@ -863,7 +863,7 @@ def demo_file_command():
outputPaths['file']: standard_file_output
}

title = 'OnboardingIntegration File Reputation - {}'.format(file)
title = f'OnboardingIntegration File Reputation - {file}'
human_readable = tableToMarkdown(title, dbotscore_output)

demisto.results({
Expand Down Expand Up @@ -911,7 +911,7 @@ def demo_email_command():
outputPaths['email']: standard_email_output
}

title = 'OnboardingIntegration Email Reputation - {}'.format(email)
title = f'OnboardingIntegration Email Reputation - {email}'
human_readable = tableToMarkdown(title, dbotscore_output)

demisto.results({
Expand Down Expand Up @@ -940,7 +940,7 @@ def main():
try:
if demisto.command() == 'test-module':
demisto.results('ok')
elif demisto.command() in COMMANDS.keys():
elif demisto.command() in COMMANDS:
COMMANDS[demisto.command()]()
except Exception as e:
return_error(str(e))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ script:
- contextPath: DBotScore.Indicator
description: The indicator that was tested
type: String
dockerimage: demisto/faker3:1.0.0.86604
dockerimage: demisto/faker3:1.0.0.1976220
isfetch: true
subtype: python3
tests:
Expand Down
6 changes: 6 additions & 0 deletions Packs/OnboardingIntegration/ReleaseNotes/1_1_7.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### OnboardingIntegration

- Updated the Docker image to: *demisto/faker3:1.0.0.1976220*.
2 changes: 1 addition & 1 deletion Packs/OnboardingIntegration/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "OnboardingIntegration",
"description": "Creates mock email incidents using one of two randomly selected HTML templates. Textual content is randomly generated and defined to include some text (100 random words) and the following data (at least 5 of each data type): IP addresses, URLs, SHA-1 hashes, SHA-256 hashes, MD5 hashes, email addresses, domain names.",
"support": "xsoar",
"currentVersion": "1.1.6",
"currentVersion": "1.1.7",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down

0 comments on commit 18944fb

Please sign in to comment.