Code Monkey home page Code Monkey logo

security-datasets's People

Contributors

ashwin-patil avatar ayman-m avatar cyb3rpandah avatar cyb3rward0g avatar dependabot[bot] avatar fryguy04 avatar jeffrey-e avatar jsecurity101 avatar jwsy avatar thomaspatzke avatar tim-scythe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

security-datasets's Issues

Issue on page /notebooks/small/windows/08_lateral_movement/SDWIN-200724174200.html

Hello,

mordor_file = "https://raw.githubusercontent.com/OTRF/mordor/master/datasets/small/windows/lateral_movement/wmi_event_subscription.pcapng"
registerMordorSQLTable(spark, mordor_file, "mordorTable")

registerMordorSQLTable call downloadMordorFile to download .tar.gz or .zip dataset fie.
But here dataset extension is pcapng.
https://github.com/hunters-forge/openhunt/blob/de241cef7cd1a385569590dfb94888e63caeef87/openhunt/mordorutils.py#L11-L19

As a result, the playbook gives error:
UnboundLocalError: local variable 'mordorJSONPath' referenced before assignment

Empire mordor-empire not working

After creating listener and executing initial access. Docker container empire-mordor does not receive callback.

Have tried to reset docker container, that didn't work.

[QUESTION] Does Mordor support ECS fields mapping

Hello Hunters,

I have an elastic cluster up and running and i was kinda interested in using Mordor's datasets in order to test rules created with signals and elastalert to display a Detection Capabilities Dashboard. My question is does the mordor project support ECS since I am mapping all of my event with it.

Thank you for your great work

AWS Build: Did not complete successfully

I got the following error when building the environment in the cloud via terraform:

aws_instance.hr001 (remote-exec): C:\Users\User>powershell Restart-Computer -Force
aws_instance.hr001: Creation complete after 6m57s [id=i-099f5c4452ff6374b]
aws_instance.helk: Still creating... [7m0s elapsed]
aws_instance.helk: Still creating... [7m10s elapsed]
aws_instance.helk: Still creating... [7m20s elapsed]
aws_instance.helk: Still creating... [7m30s elapsed]
aws_instance.helk: Still creating... [7m40s elapsed]
aws_instance.helk: Still creating... [7m50s elapsed]
aws_instance.helk: Still creating... [8m0s elapsed]
aws_instance.helk (remote-exec): [HELK-INSTALLATION-INFO] Waiting for some services to be up .....
aws_instance.helk: Still creating... [8m10s elapsed]
aws_instance.helk: Still creating... [8m20s elapsed]
aws_instance.helk: Still creating... [8m30s elapsed]
aws_instance.helk: Still creating... [8m40s elapsed]
aws_instance.helk: Still creating... [8m50s elapsed]
aws_instance.helk: Still creating... [9m0s elapsed]
aws_instance.helk: Still creating... [9m10s elapsed]


aws_instance.helk (remote-exec): ***********************************************************************************
aws_instance.helk (remote-exec): ** [HELK-INSTALLATION-INFO] HELK WAS INSTALLED SUCCESSFULLY                      **
aws_instance.helk (remote-exec): ** [HELK-INSTALLATION-INFO] USE THE FOLLOWING SETTINGS TO INTERACT WITH THE HELK **
aws_instance.helk (remote-exec): ***********************************************************************************

aws_instance.helk (remote-exec): HELK KIBANA URL: https://172.18.39.6
aws_instance.helk (remote-exec): HELK KIBANA USER: helk

aws_instance.helk (remote-exec): HELK KIBANA PASSWORD: hunting
aws_instance.helk (remote-exec): HELK SPARK MASTER UI: http://172.18.39.6:8080
aws_instance.helk (remote-exec): HELK JUPYTER SERVER URL: http://172.18.39.6/jupyter
aws_instance.helk (remote-exec): HELK JUPYTER CURRENT TOKEN: 11439eeca7d1d331f72748f62b5ad7ddc1aaf5afde66c6de
aws_instance.helk (remote-exec): HELK ZOOKEEPER: 172.18.39.6:2181
aws_instance.helk (remote-exec): HELK KSQL SERVER: 172.18.39.6:8088

aws_instance.helk (remote-exec): IT IS HUNTING SEASON!!!!!


aws_instance.helk: Creation complete after 9m16s [id=i-09fc7e775f4e13969]

Error: error executing "/tmp/terraform_1314486142.sh": Process exited with status 5

I was able to RDP to the windows boxes and use them properly, but something must have not completed successfully. Would you mind providing a few steps to troubleshoot the build when it does not install properly. Like where to look and what logs to check. thank you!

% ERROR: Failed to produce message (11500 bytes): Local: Unknown topic

Estoy siguiendo el tutorial (https://mordordatasets.com/consume/kafka.html) pero a la hora de meter los .json en Elastic a través de kafkacat no funciona.

I'm following the tutorial (https://mordordatasets.com/consume/kafka.html) but when it comes to put the .json in Elastic through kafkaca it doesn't work.

root@ubuntu:/tmp/kafkacat# ./kafkacat -b ip:9092 -t winlogbeat -P -l empire_dcsync_dcerpc_drsuapi_DsGetNCChanges_2020-09-21185829.json

% ERROR: Failed to produce message (11500 bytes): Local: Unknown topic

root@ubuntu:/tmp/kafkacat# ./kafkacat -L -b ip:9092

% ERROR: Failed to acquire metadata: Local: Timed out

An Error Occured while loading the archive

Ola

I encounter some error on the data sets while extracting the content each.

I try to extract Empire DCsync for testing but failed to extract

Please see the screen shot of the error.

Screen Shot 2020-09-02 at 10 56 09 PM

But the other files like the Day1 of APT29 is extractable.

Benign datasets missing

Hi,

The title page mentions that the project contributes malicious and benign datasets. However, all datasets in the datasets/ folder appear to be malicious. Are any benign datasets included and am I just missing them? Otherwise the title page should perhaps be updated.

Modor-Elastic shipper inputs issues

The following exceptions while passing a JSON dataset, submitting a PR shortly :

Problem with the inputs argument:
ayman@iMac mordor % scripts/data-shippers/Mordor-Elastic.py --url http://192.168.20.50:9200 inputs datasets/large/apt29/day1/apt29_evals_day1_manual_2020-05-01225525.json
Initializing Elasticsearch connection and index...
Calulating total file size...
N/A% (0 of 2) | | Elapsed Time: 0:00:00 ETA: --:--:--Traceback (most recent call last):
File "/Volumes/Data/Coding/mordor/scripts/data-shippers/Mordor-Elastic.py", line 69, in
total_size = sum([
File "/Volumes/Data/Coding/mordor/scripts/data-shippers/Mordor-Elastic.py", line 72, in
for member in tarfile.open(path).getmembers() if member.isfile()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tarfile.py", line 1611, in open
return func(name, "r", fileobj, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tarfile.py", line 1675, in gzopen
fileobj = GzipFile(name, mode + "b", compresslevel, fileobj)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/gzip.py", line 173, in init
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'inputs'
I submitted PR #40 to fix this issue

Shipping a JSON file:
ayman@iMac mordor % scripts/data-shippers/Mordor-Elastic.py --url http://192.168.20.50:9200 inputs datasets/large/apt29/day1/apt29_evals_day1_manual_2020-05-01225525.json
Initializing Elasticsearch connection and index...
Calulating total file size...
N/A% (0 of 1) | | Elapsed Time: 0:00:00 ETA: --:--:--Traceback (most recent call last):
File "/Volumes/Data/Coding/mordor/scripts/data-shippers/Mordor-Elastic.py", line 69, in
total_size = sum([
File "/Volumes/Data/Coding/mordor/scripts/data-shippers/Mordor-Elastic.py", line 72, in
for member in tarfile.open(path).getmembers() if member.isfile()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tarfile.py", line 1616, in open
raise ReadError("file could not be opened successfully")
tarfile.ReadError: file could not be opened successfully
_tar -zcvf the json file fixed my issue, may submit another PR to handle different input file formats when I have a chance

Unable to ship mordor logs to HELK

I went through the walkthrough for installing HELK and when I try to ingest the JSON files using the data-shipper script, I get an error saying that it is unable to open the JSON file. I was able to get it to work by instead passing the script with a tar.gz data set and it will show as complete, but when I go to Kibana to look at the discover tab it shows no logs. Also, when I look at the elasticsearch indices management tab, it shows the winlogbeat-mordor and the number of events parsed, but its health status is yellow.

[SD-ART-T1003.002-01] Registry dump of SAM, creds, and secrets - SimuLand Request

Source: https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1003.002/T1003.002.md#atomic-test-1---registry-dump-of-sam-creds-and-secrets

Atomic Test #1 - Registry dump of SAM, creds, and secrets

Local SAM (SAM & System), cached credentials (System & Security) and LSA secrets (System & Security) can be enumerated via three registry keys. Then processed locally using https://github.com/Neohapsis/creddump7

Upon successful execution of this test, you will find three files named, sam, system and security in the %temp% directory.

Supported Platforms: Windows
Attack Commands: Run with command_prompt! Elevation Required (e.g. root or admin)

reg save HKLM\sam %temp%\sam
reg save HKLM\system %temp%\system
reg save HKLM\security %temp%\security

Cleanup Commands:

del %temp%\sam >nul 2> nul
del %temp%\system >nul 2> nul
del %temp%\security >nul 2> nul

Tasks:

  • Create an issue in SimuLand GitHub Repo with a request to run this atomic test
  • Start collaboration with contributors to SimuLand and make sure someone is assigned to the creation of the environment.
  • Close ticket and move it to done once the issue is create in the other project and someone is assigned to it

[Question] "Does Mordor support ECS fields mapping" for winlogbeat 7.x?

addition following closed issue #26

Currently the recorded data is winlogbeat data of version 6.7 which does not follow the ECS field mappings of current version 7+ (7.8 to be specific..) is there a way to get the recorded datasets for winlogbeat 7+ mapping? or just raw windows logs events?

thanks 👍

Using Mordor

Hey - thanks for this great project! I have to say, I don't fully understand it...I see it provides JSON log files that were created after running attacks, but how should I use this information as an defender? I read the README and the introductory blog post but I still don't understand.

[Cloud] AWS Shire - Define main components

Deployment type:

  • Pre-Built AMI's
  • Terraform
  • AWS

This will allow end users to utilize least amount of resources.

Deliverable:

  • Documentation of each component and why they were selected
  • Design

Mordor AWS Error - Region Message

Im in Europe and I tried to run latest AWS setup, and I got the following error:

aws_instance.hr001 (remote-exec): C:\Users\User>powershell Restart-Computer -Force
aws_instance.hr001: Creation complete after 6m50s [id=i-0f6b7de902d27a413]

Error: error executing "/tmp/terraform_425406088.sh": Process exited with status 5

Error: Error launching source instance: PendingVerification: Your request for accessing resources in this region is being validated, and you will not be able to launch additional resources in this region until the validation is complete. We will notify you by email once your request has been validated. While normally resolved within minutes, please allow up to 4 hours for this process to complete. If the issue still persists, please let us know by writing to [email protected] for further assistance.
	status code: 400, request id: 2ca526e8-3587-4200-9670-c709ffa11bc5

  on main.tf line 246, in resource "aws_instance" "helk":
 246: resource "aws_instance" "helk" {

is there a way to dynamically chose regions rather than only use US-WEST?

Shipping Mordor logs to HELK

root@ttp:/home/pfctpot/mordor/scripts/data-shippers# python3 Mordor-Elastic.py --url http://localhost:9200 inputs apt29_evals_day1_manual_2020-05-01225525.json
Initializing Elasticsearch connection and index...
Traceback (most recent call last):
  File "Mordor-Elastic.py", line 41, in <module>
    "index.mapping.total_fields.limit": 2000
  File "/usr/local/lib/python3.7/dist-packages/elasticsearch/client/utils.py", line 168, in _wrapped
    return func(*args, params=params, headers=headers, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/elasticsearch/client/indices.py", line 124, in create
    "PUT", _make_path(index), params=params, headers=headers, body=body
  File "/usr/local/lib/python3.7/dist-packages/elasticsearch/transport.py", line 415, in perform_request
    raise e
  File "/usr/local/lib/python3.7/dist-packages/elasticsearch/transport.py", line 388, in perform_request
    timeout=timeout,
  File "/usr/local/lib/python3.7/dist-packages/elasticsearch/connection/http_urllib3.py", line 275, in perform_request
    self._raise_error(response.status, raw_data)
  File "/usr/local/lib/python3.7/dist-packages/elasticsearch/connection/base.py", line 331, in _raise_error
    status_code, error_message, additional_info
elasticsearch.exceptions.RequestError: RequestError(400, 'resource_already_exists_exception', 'index [winlogbeat-mordor/QsS91DnYSw6SeqSQUNG8JQ] already exists')

File Type/Link mismatch for two datasets

I found some mismatches between the reported file type and the actual file type.

Problem

An inconsistency in the file type and the link for two dataset metadata files

Detect/Reproduce

You can detect the mismatches with this grep command grep -A1 -r "^- type: Host" | grep -B1 network

Here's the output of this command:

datasets/atomic/_metadata/SDWIN-190319021158.yaml:- type: Host
datasets/atomic/_metadata/SDWIN-190319021158.yaml-  link: https://raw.githubusercontent.com/OTRF/Security-Datasets/master/datasets/atomic/windows/discovery/network/empire_shell_samr_EnumDomainUsers.zip
--
datasets/atomic/_metadata/SDWIN-200806031938.yaml:- type: Host
datasets/atomic/_metadata/SDWIN-200806031938.yaml-  link: https://raw.githubusercontent.com/OTRF/Security-Datasets/master/datasets/atomic/windows/lateral_movement/network/covenant_sharpsc_stop_dcerpc_smb_svcctl.zip

Updating, Removing, Adding GPOs

What is the process to perform this dynamically?

For example:

I would like to enable firewalls on every endpoint to replicate scenarios like this where the FW needs to be enabled:

https://twitter.com/HunterPlaybook/status/1166090088461361154

At the moment, this GPO is enabled: https://github.com/Cyb3rWard0g/mordor/tree/ca93d617f5b5a791cb7a67666a272dbf98602ea5/environment/shire/aws/scripts/DC/GPOBackup/disable_windows_defender_firewall

Can this be done dynamically? Thank you in advance.

simple way to upload documents to ES

Hello guys.

We with @AverageS used another way to upload index to our Demo Dashboard.
Would be great if you will add it to your docs.

Here is it:

  1. Go to small_datasets directory:
cd ./small_datasets
  1. Untar all files to this directory:
find . -name '*.tar.gz' -exec tar -xzf {} \;
  1. Upload it using python script:
import elasticsearch
import json
import os

es_url = "http://<es_ip/domain>:<es_port>"
es_user = ""
es_pass = ""
index_name = ""
_doc_type = ""

es = elasticsearch.Elasticsearch([es_url],http_auth=(es_user, es_pass))

for i in os.listdir():
  if not i.endswith(".json"):
      continue
    with open(i) as f:
      test = []
      for line in f.readlines():
        test.append(json.loads(line))

    for x in test:
      res = es.index(index=index_name, doc_type=_doc_type,body=x)
      print(res['result'])

Audit policy configuration

Hello!

Great project! I was wondering if you could dump somewhere in the documentation how the audit policy for the DC and also on clients are configured.
It would help a bunch to have this information.

Best,
\f

Possible to convert .evtx log files with Mordor-WinEvents.ps1?

Hello Roberto,

First thank you for building Mordor and providing scripts which we can use to build our own datasets! I was able to use the Mordor-WinEvents.ps1 successfully with the native Windows logs but I also wonder if this script could be also used to convert some pre-recorded .evtx files into .json. For example this one:
https://github.com/sbousseaden/EVTX-ATTACK-SAMPLES/raw/master/Persistence/persistence_security_dcshadow_4742.evtx

Is this possible at the moment? I was not able to figure out how.

Thanks! Ludek

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.