Skip to content

Commit e1ddbbe

Browse files
authored
Merge pull request #191 from stefanpems/ciso-reporting
updated readme
2 parents 41e4332 + 2bbb04a commit e1ddbbe

8 files changed

Lines changed: 207 additions & 14 deletions

File tree

Logic Apps/CfS-SendPromptbookResultsByEmail/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Please refer to this article for further details and for a video on how to deplo
1818
7. Enable the Logic App (the template deploys it in disabled state).
1919

2020
## Deployment button
21-
[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fstefanpems%2Fcfs%2Frefs%2Fheads%2Fmain%2FCfS-SendPromptbookResultsByEmail%2FCfS-SendPromptbookResultsByEmail.json)
21+
[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2FSecurity-Copilot%2Frefs%2Fheads%2Fmain%2FLogic%2520Apps%2FCfS-SendPromptbookResultsByEmail%2FCfS-SendPromptbookResultsByEmail.json)
2222

2323
## Example of email customization:
2424
The following image shows:

Logic Apps/ciso-reporting/ciso-incidents-summary-man.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ SkillGroups:
2424
DisplayName: CISO - Incidents Status Summary
2525
Description: Get a summary of the incidents status in Defender
2626
DescriptionForModel : Get a summary of the incidents status in Defender.
27-
If severities are specified in the prompt (e.g. High and Medium), concatenate them as a comma separated list of double-quoted strings (like "High","Medium").
27+
If severities are specified in the prompt (e.g. High and Medium), concatenate them as a comma separated list of double-quoted strings with the first letter in uppercase (like "High","Medium").
2828
If start date and end date are not specified, consider the last 7 days.
2929
If the top number of results is not specified, consider 5 incidents titles.
3030
If csv_of_severities is not specified, consider only "High".
@@ -81,7 +81,7 @@ SkillGroups:
8181
DisplayName: CISO - True Positive Incidents Tactics and Techniques Analysis
8282
Description: Get a summary of the tactics and techniques used in the incidents that were classified as true positives
8383
DescriptionForModel : Get a summary of the tactics and techniques used in the incidents that were classified as true positives
84-
If severities are specified in the prompt (e.g. High and Medium), concatenate them as a comma separated list of double-quoted strings (like "High","Medium").
84+
If severities are specified in the prompt (e.g. High and Medium), concatenate them as a comma separated list of double-quoted strings with the first letter in uppercase (like "High","Medium").
8585
If start date and end date are not specified, consider the last 7 days.
8686
If severities is not specified, consider only "High".
8787
Inputs:

Logic Apps/ciso-reporting/ciso-posture-summary-man.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ SkillGroups:
1212
DisplayName: CISO - Recommendations by Severity
1313
Description: Get the list of the active recommendations by Severity (work in progress)
1414
DescriptionForModel : Get the list of the active recommendations by Severity
15+
If severities are specified in the prompt (e.g. High and Medium), concatenate them as a comma separated list of double-quoted strings with the first letter in uppercase (like "High","Medium").
1516
Inputs:
1617
- Name: days_back
1718
Description: The number of days to be considered in the past, starting from today
2.34 KB
Loading

Logic Apps/ciso-reporting/install-guide.md

Lines changed: 190 additions & 0 deletions
Large diffs are not rendered by default.

Logic Apps/ciso-reporting/promptbook-incident-analysis.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Prompts in the Incident Analysis promptbook
22

3-
This is the sample series of prompts for creating the promptbook dedicated to automating the Security Incident Management status analysis:
3+
This promptbook, containing a (sample) series of prompts for reporting the high-level status of the Security Incident Management process for the current organization, has been designed to be invoked from the [CfS-SendPromptbookResultsByEmail](https://github.com/Azure/Security-Copilot/tree/main/Logic%20Apps/CfS-SendPromptbookResultsByEmail) Logic App and requires the [CISO Incidents Summary](https://github.com/Azure/Security-Copilot/blob/main/Logic%20Apps/ciso-reporting/ciso-incidents-summary-man.yaml) Custom Plugin as a prerequisite.
44

55
## Prompt 1
66
```
7-
/CisoIncidentsStatusSummary Consider the top <TOP_INCIDENTS_NUMBER> most occurring incidents with severity <SEVERITIES> in the period of <TIME_FRAME>.
7+
/CisoIncidentsStatusSummary Consider the top <TOP_INCIDENTS_NUMBER> most occurring incidents in the period of <TIME_FRAME>. For the input parameter named "csv_of_severities" specify the following word or words, each surrounded by double quotes, with only the first letter in uppercase and, if more than one, separated by commas: <SEVERITIES> .
88
Respond by applying ALL these 4 indications to this specific response only:
99
1. Start the response with the following first sentence: "This is the list of Incidents with severity <SEVERITIES> created in the requested period ". Then add, within round brackets, exactly the first day and the last day considered for <TIME_FRAME>, as used for invoking the CisoIncidentsStatusSummary skill; use the long date format.
1010
2. Do not return a table: return the results in paragraphs instead; highlight the incident title and write as bulleted list the numbers by status. Do not write classifications where the number is zero. Write in bold underlined the incident classified as true positive.
@@ -14,7 +14,7 @@ Respond by applying ALL these 4 indications to this specific response only:
1414

1515
## Prompt 2
1616
```
17-
/CisoTruePositiveIncidentsTTAnalysis Consider only the incidents occurred <TIME_FRAME> with severity <SEVERITIES>.
17+
/CisoTruePositiveIncidentsTTAnalysis Consider only the incidents occurred <TIME_FRAME>. For the input parameter named "csv_of_severities" specify the following word or words, each surrounded by double quotes, with only the first letter in uppercase and, if more than one, separated by commas: <SEVERITIES> .
1818
Respond by applying BOTH these 2 indications to this specific response only:
1919
1. Start the response with the following first sentence: "These are the MITRE Tactics and Techniques for the Incidents closed as 'True Positives' in the requested period ". Then add, within round brackets, exactly the first day and the last day considered for <TIME_FRAME>, as used for invoking the CisoTruePositiveIncidentsTTAnalysis skill; use the long date format.
2020
2. Do not return a table: return the results in paragraphs instead; highlight the incident title and write in a bullet the the number of occurrences, in a second bullet the list of tactics and in a third bullet the list of techniques.
@@ -95,7 +95,7 @@ Call the CisoGetUsersStatus skill of the CisoIncidentsSummaryApiHelper plugin. P
9595
---
9696

9797
# Parameters for the Logic App that invoke the Incident Analysis promptbook and sends the results by email
98-
(Logic App template: https://github.com/stefanpems/cfs/tree/main/CfS-SendPromptbookResultsByEmail)
98+
(Logic App template: https://github.com/Azure/Security-Copilot/tree/main/Logic%20Apps/CfS-SendPromptbookResultsByEmail)
9999

100100

101101
## Paramters related to the responses of the promptbook

Logic Apps/ciso-reporting/promptbook-posture-analysis.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Prompts in the Incident Analysis promptbook
22

3-
This is the sample series of prompts for creating the promptbook dedicated to automating the Security Posture status analysis:
3+
This promptbook, containing a (sample) series of prompts for reporting the high-level status of the security Posture for the current organization, has been designed to be invoked from the [CfS-SendPromptbookResultsByEmail](https://github.com/Azure/Security-Copilot/tree/main/Logic%20Apps/CfS-SendPromptbookResultsByEmail) Logic App and requires the [CISO Posture Summary](https://github.com/Azure/Security-Copilot/blob/main/Logic%20Apps/ciso-reporting/ciso-posture-summary-man.yaml) Custom Plugin as a prerequisite.
4+
5+
NOTE: This promptbook is in a very preliminary draft state. Not only are these prompts not optimized in terms of compute capacity consumption, but it is also very incomplete. Please refer to [this article](https://www.linkedin.com/pulse/periodic-reporting-security-managers-cisos-using-stefano-pescosolido-fm80f/) for further details on how this promptbook should be improved.
46

57
## Prompt 1
68
```
@@ -14,14 +16,14 @@ Which threats should I focus on based on their exposure scores? For each returne
1416

1517
## Prompt 3
1618
```
17-
/CisoRecommendationsBySeverity List the top recurring 10 Recommendations created in the last <NUMBER_OF_DAYS> days with severity <SEVERITIES>
19+
/CisoRecommendationsBySeverity List the top <NUMBER_OF_RECOMMENDATIONS> active Recommendations created in the last <NUMBER_OF_DAYS> days. For the input parameter named "csv_of_severities" specify the following word or words, each surrounded by double quotes, with only the first letter in uppercase and, if more than one, separated by commas: <SEVERITIES>
1820
```
1921

2022

2123
---
2224

2325
# Parameters for the Logic App that invoke the Posture Analysis promptbook and sends the results by email
24-
(Logic App template: https://github.com/stefanpems/cfs/tree/main/CfS-SendPromptbookResultsByEmail)
26+
(Logic App template: https://github.com/Azure/Security-Copilot/tree/main/Logic%20Apps/CfS-SendPromptbookResultsByEmail)
2527

2628

2729
## Paramters related to the responses of the promptbook
@@ -37,9 +39,8 @@ Indexes of the prompts whose responses should not be included in the delivered e
3739
### Value for the Logic App Paramter 'ReplacePromptsInOutput'
3840
Text to be used for replacing the prompts in the delivered email.
3941
NOTE: It may include words and numbers that should be consistent with the values specified for the input parameters of the promptbook.
40-
(Leave empty)
4142
```
42-
[]
43+
["List the global threats that should be prioritized based on their exposure score and the vulnerabilities present in my environment.","List the recommendations for better coverage in our SIEM (Microsoft Sentinel) against the most impactful threats. Also, show the recommendations for better utilization of our collected logs.","List the top 10 high and medium severity recommendations based on the number of impacted resources in my cloud PaaS environments in Azure, AWS, and GCP."]
4344
```
4445

4546

@@ -49,7 +50,7 @@ NOTE: It may include words and numbers that should be consistent with the values
4950
### Value for the Logic App Paramter 'HtmlBodyHeader'
5051
(Shades of **green**)
5152
```
52-
<!DOCTYPE html><html><style>.notification-table-header {padding: 10px;width: auto;border-top: none;background: #0078D4;font-size: 11.0pt;color: white;font-weight: bold;margin-left: 10px;text-align: left;border: none;border-bottom: solid white 1.5pt;} .notification-table-text {padding: 10px;margin-left: 5px;width: 70%;text-align: left;border: none;border-bottom: solid white 1.5pt;background: #FAFAFA;font-size: 12.0pt;height: 20.05pt;} .notification-card-footer span {font-size: 12.0pt;color: #000000;} .notification-card-footer p {vertical-align: baseline;} .notification-body {margin: 0 auto;text-align: center;width: 650px;border: 1px black;border-collapse: collapse;background-color: #CCE4F6;} </style> <body style="background-color: #dfdfdf;"><table style="width:100%;"><tr><td style="padding:0;"><div align="center"><table class="notification-body"><tr style="border: 1px grey; border-top:none;"><td><p style='font-size:5.0pt;'><span>&nbsp;</span></p><table style='width:590px;margin:0 auto;border-collapse:collapse;'><tr class="notification-card-footer"><td><p style='text-align:left; font-size:12.0pt;'><b>***EMAILTITLE***</b></p></td></tr>
53+
<!DOCTYPE html><html><style>.notification-table-header {padding: 10px;width: auto;border-top: none;background: #3B7D23;font-size: 11.0pt;color: white;font-weight: bold;margin-left: 10px;text-align: left;border: none;border-bottom: solid white 1.5pt;} .notification-table-text {padding: 10px;margin-left: 5px;width: 70%;text-align: left;border: none;border-bottom: solid white 1.5pt;background: #FAFAFA;font-size: 12.0pt;height: 20.05pt;} .notification-card-footer span {font-size: 12.0pt;color: #000000;} .notification-card-footer p {vertical-align: baseline;} .notification-body {margin: 0 auto;text-align: center;width: 650px;border: 1px black;border-collapse: collapse;background-color: #B4E5A3;} </style> <body style="background-color: #dfdfdf;"><table style="width:100%;"><tr><td style="padding:0;"><div align="center"><table class="notification-body"><tr style="border: 1px grey; border-top:none;"><td><p style='font-size:5.0pt;'><span>&nbsp;</span></p><table style='width:590px;margin:0 auto;border-collapse:collapse;
5354
```
5455

5556
### Value for the Logic App Paramter 'HtmlBodyRow'
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
Please refer to:
2-
https://www.linkedin.com/pulse/periodic-reporting-security-managers-cisos-using-stefano-pescosolido-fm80f/
2+
* [Description](https://www.linkedin.com/pulse/periodic-reporting-security-managers-cisos-using-stefano-pescosolido-fm80f/)
3+
* [Install Guide](https://github.com/Azure/Security-Copilot/blob/main/Logic%20Apps/ciso-reporting/install-guide.md)

0 commit comments

Comments
 (0)