Comments (3)
Hi @dominictory,
We indeed change the notification message as it was rather unusable within the platform.
Previously you only add the entity type and the name of the entity in the notification even in case of Description modification for example.
For your case you can do:
{
"type": "message",
"attachments": [
{
"contentType": "application/json",
"content": {
"alertSubject": "<%=data[0].instance.name%>",
"alertOperation": "<%=content[0].events[0].operation%>",
"alertDescription": "<%=data[0].instance.description%>",
"alertPlatformUrl": "https://10.254.202.12/dashboard/id/<%=content[0].events[0].instance_id%>"
}
}
]
}
It produces:
{
"type": "message",
"attachments": [
{
"contentType": "application/json",
"content": {
"alertSubject": "Test for webhook",
"alertOperation": "create",
"alertDescription": "",
"alertPlatformUrl": "https://octi/dashboard/id/report--7cd8e1ac-d272-544b-aecb-57dfa8653462"
}
}
]
}
This will work for any SDO, if you want relationships or observables you will have to use a different attribute from your instance based on what you want to display.
In addition, and as part of our future milestones, we will improve the documentation on this part.
from opencti.
Within the data[0].instance you should have access to any piece of information regarding your current entity. You can use
<%-JSON.stringify(data[0].instance)%>
to display all the information you can access
from opencti.
Hi @dominictory,
We indeed change the notification message as it was rather unusable within the platform. Previously you only add the entity type and the name of the entity in the notification even in case of Description modification for example.
For your case you can do:
{ "type": "message", "attachments": [ { "contentType": "application/json", "content": { "alertSubject": "<%=data[0].instance.name%>", "alertOperation": "<%=content[0].events[0].operation%>", "alertDescription": "<%=data[0].instance.description%>", "alertPlatformUrl": "https://10.254.202.12/dashboard/id/<%=content[0].events[0].instance_id%>" } } ] }
It produces:
{ "type": "message", "attachments": [ { "contentType": "application/json", "content": { "alertSubject": "Test for webhook", "alertOperation": "create", "alertDescription": "", "alertPlatformUrl": "https://octi/dashboard/id/report--7cd8e1ac-d272-544b-aecb-57dfa8653462" } } ] }
This will work for any SDO, if you want relationships or observables you will have to use a different attribute from your instance based on what you want to display.
In addition, and as part of our future milestones, we will improve the documentation on this part.
Thanks Kedae! One final piece for me is including external references in the alert, how would I display this?
from opencti.
Related Issues (20)
- Platform hangs, lots of HTTP call interceptor fail errors HOT 3
- Artifact cannot be delete from trash if the referenced file is missing on S3
- Not possible to update a relation between a relation and an attack pattern HOT 1
- File indexing is not working when one file is missing on S3
- add support language korean into i18n code HOT 1
- Guidance Needed for Upgrading OpenCTI from Version 5.7.4 to Version 6.1.11 Using Docker HOT 3
- Mandatory External references are still on error when filled on creation form
- Inconsistency in sharing inferred relations Post-Bug Fix
- Support of "KEV" field for vulnerability entity
- Newly created marking definitions are not propagated to access control checks
- Error at max shareable marking migration if version < 6.0
- Ability to create a workspace & View entities contained in workspace
- Create an entity in Draft & Self Validate the Workspace
- Edit an entity in draft & implement peer validation
- Does OpenCTI store MITRE ATT&CK procedures
- Investigations Missing Related Infrastructure
- [EPIC]CSV mapper Improvement
- Form Validation Behavior Discrepancy
- [CSV Mapper] Add ability to ingest multiple types of objects and associated relationships in one file
- Taxii current_state_cursor Bug
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencti.