Skip to content

Commit

Permalink
updated the connector
Browse files Browse the repository at this point in the history
  • Loading branch information
Raghul V authored and Raghul V committed Dec 23, 2024
1 parent ae36096 commit b7a996d
Show file tree
Hide file tree
Showing 13 changed files with 844 additions and 395 deletions.
3 changes: 3 additions & 0 deletions stix_shifter_modules/securonix/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions stix_shifter_modules/securonix/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions stix_shifter_modules/securonix/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions stix_shifter_modules/securonix/.idea/securonix.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions stix_shifter_modules/securonix/entry_point.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
from stix_shifter_utils.utils.base_entry_point import BaseEntryPoint


class EntryPoint(BaseEntryPoint):
class EntryPoint ( BaseEntryPoint ) :

def __init__(self, connection={}, configuration={}, options={}):
super().__init__(connection, configuration, options)
self.set_async(True)
def __init__ ( self , connection={} , configuration={} , options={} ) :
super ( ).__init__ ( connection , configuration , options )
self.set_async ( True )

if connection:
self.setup_transmission_basic(connection, configuration)
if connection :
self.setup_transmission_basic ( connection , configuration )

self.add_dialect('default', default=True)
self.add_dialect ( 'default' , default = True )

def get_translated_queries(self, data, query, options={}):
def get_translated_queries ( self , data , query , options={} ) :
# This returns the raw query, bypassing the STIX parsing
return [query]
return [ query ]
Original file line number Diff line number Diff line change
@@ -1,17 +1,61 @@
{
"x-oca-event": {
"fields": {
"action": ["action"],
"description": ["description"],
"category": ["category"],
"severity": ["severity"],
"created": ["eventtime"],
"user_ref.account_login": ["username"]
"x-oca-event": {
"fields": {
"action": ["action"],
"description": ["description"],
"category": ["category"],
"severity": ["severity"],
"created": ["eventtime"],
"user_ref.account_login" : ["username"],
"timeline_by_month": ["timeline_by_month"],
"rg_timezoneoffset": ["rg_timezoneoffset"],
"resourcegroupname": ["resourcegroupname"],
"eventid": ["eventid"],
"ipaddress": ["ipaddress"],
"week": ["week"],
"year": ["year"],
"accountresourcekey": ["accountresourcekey"],
"resourcehostname": ["resourcehostname"],
"sourceprocessname": ["sourceprocessname"],
"rg_functionality": ["rg_functionality"],
"userid": ["userid"],
"customfield2": ["customfield2"],
"dayofmonth": ["dayofmonth"],
"jobid": ["jobid"],
"resourcegroupid": ["resourcegroupid"],
"datetime": ["datetime"],
"timeline_by_hour": ["timeline_by_hour"],
"collectiontimestamp": ["collectiontimestamp"],
"hour": ["hour"],
"accountname": ["accountname"],
"tenantid": ["tenantid"],
"id": ["id"],
"rg_resourcetypeid": ["rg_resourcetypeid"],
"_indexed_at_tdt": ["_indexed_at_tdt"],
"timeline_by_minute": ["timeline_by_minute"],
"routekey": ["routekey"],
"collectionmethod": ["collectionmethod"],
"receivedtime": ["receivedtime"],
"publishedtime": ["publishedtime"],
"categorizedtime": ["categorizedtime"],
"jobstarttime": ["jobstarttime"],
"dayofyear": ["dayofyear"],
"minute": ["minute"],
"categoryseverity": ["categoryseverity"],
"rg_vendor": ["rg_vendor"],
"month": ["month"],
"version": ["version"],
"timeline": ["timeline"],
"dayofweek": ["dayofweek"],
"timeline_by_week": ["timeline_by_week"],
"tenantname": ["tenantname"],
"resourcename": ["resourcename"],
"ingestionnodeid": ["ingestionnodeid"]
}
},
"ipv4-addr": {
"fields": {
"value": ["sourceip", "destinationip"]
}
}
},
"ipv4-addr": {
"fields": {
"value": ["sourceip", "destinationip"]
}
}
}
Loading

0 comments on commit b7a996d

Please sign in to comment.