Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified CTI example #5

Merged
merged 76 commits into from
Jun 29, 2023
Merged
Show file tree
Hide file tree
Changes from 66 commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
c0521c4
add CTI
SullivanDaly Jun 13, 2023
ef7d41e
add queries + readme
SullivanDaly Jun 14, 2023
4375300
change README
SullivanDaly Jun 14, 2023
04228aa
Deal with DS_Store
SullivanDaly Jun 14, 2023
1ead499
add queries
SullivanDaly Jun 16, 2023
3b9ceb6
add queries
SullivanDaly Jun 16, 2023
d47ed94
add comments
SullivanDaly Jun 16, 2023
41bf41f
pre_review
SullivanDaly Jun 23, 2023
6a5ece5
Changing name + last changes
SullivanDaly Jun 26, 2023
66415b1
test
SullivanDaly Jun 26, 2023
68ea73f
Update cyber-threat-intelligence/examples/07-external-reference.tql
SullivanDaly Jun 27, 2023
fca6d2a
Update cyber-threat-intelligence/examples/06-uses-chain.tql
SullivanDaly Jun 27, 2023
41bd7ee
Update cyber-threat-intelligence/examples/06-uses-chain.tql
SullivanDaly Jun 27, 2023
a711ae8
Update README.md
SullivanDaly Jun 27, 2023
ee8fd1f
Update cyber-threat-intelligence/README.md
SullivanDaly Jun 27, 2023
8f40115
Update cyber-threat-intelligence/README.md
SullivanDaly Jun 27, 2023
473def0
Update cyber-threat-intelligence/README.md
SullivanDaly Jun 27, 2023
91854dc
Update cyber-threat-intelligence/README.md
SullivanDaly Jun 27, 2023
73bc0be
Update cyber-threat-intelligence/README.md
SullivanDaly Jun 27, 2023
f45873a
Update cyber-threat-intelligence/README.md
SullivanDaly Jun 27, 2023
a17fbee
Update cyber-threat-intelligence/README.md
SullivanDaly Jun 27, 2023
c5f5ceb
Update cyber-threat-intelligence/examples/01-list-id_unknown.tql
SullivanDaly Jun 27, 2023
5ff2aba
Update cyber-threat-intelligence/examples/01-list-id_unknown.tql
SullivanDaly Jun 27, 2023
bebaa0f
Update cyber-threat-intelligence/examples/01-list-id_unknown.tql
SullivanDaly Jun 27, 2023
88a7ea5
Update cyber-threat-intelligence/examples/02-list-identity.tql
SullivanDaly Jun 27, 2023
76afee7
Update cyber-threat-intelligence/examples/exercise-solutions.tql
SullivanDaly Jun 27, 2023
dade32c
Update cyber-threat-intelligence/examples/02-list-identity.tql
SullivanDaly Jun 27, 2023
4305349
Update cyber-threat-intelligence/examples/03-create-malware.tql
SullivanDaly Jun 27, 2023
c35c353
Update cyber-threat-intelligence/examples/03-create-malware.tql
SullivanDaly Jun 27, 2023
dfdf7a2
Update cyber-threat-intelligence/examples/03-create-malware.tql
SullivanDaly Jun 27, 2023
ecb26f1
Update cyber-threat-intelligence/examples/03-create-malware.tql
SullivanDaly Jun 27, 2023
f2e4dee
Update cyber-threat-intelligence/examples/04-assign-target.tql
SullivanDaly Jun 27, 2023
1f481e4
correct pull/5#discussion_r1242207737
SullivanDaly Jun 27, 2023
ac067c0
correct pull/5#discussion_r1242256662
SullivanDaly Jun 27, 2023
679997f
correct pull/5#discussion_r1242263337
SullivanDaly Jun 27, 2023
066c85d
correct pull/5#discussion_r1242289469
SullivanDaly Jun 27, 2023
cd5e85d
correct pull/5#discussion_r1242292367
SullivanDaly Jun 27, 2023
93a25ea
Change 08 example + provide solution
SullivanDaly Jun 28, 2023
bad77d5
add comments for context
SullivanDaly Jun 29, 2023
4b3ed97
Second batch
SullivanDaly Jun 29, 2023
b123389
Update cyber-threat-intelligence/examples/01-list-id_unknown.tql
SullivanDaly Jun 29, 2023
08335e7
Update cyber-threat-intelligence/examples/01-list-id_unknown.tql
SullivanDaly Jun 29, 2023
40f8020
Update cyber-threat-intelligence/examples/01-list-id_unknown.tql
SullivanDaly Jun 29, 2023
1a45e90
Update cyber-threat-intelligence/examples/08-check-intrusion-set.tql
SullivanDaly Jun 29, 2023
ee11658
Update cyber-threat-intelligence/examples/08-check-intrusion-set.tql
SullivanDaly Jun 29, 2023
a636645
Update cyber-threat-intelligence/examples/01-list-id_unknown.tql
SullivanDaly Jun 29, 2023
c816ab0
Update cyber-threat-intelligence/examples/08-check-intrusion-set.tql
SullivanDaly Jun 29, 2023
d00adb6
Update cyber-threat-intelligence/examples/02-list-identity.tql
SullivanDaly Jun 29, 2023
08d0fc2
Update cyber-threat-intelligence/examples/02-list-identity.tql
SullivanDaly Jun 29, 2023
5c18848
Update cyber-threat-intelligence/examples/02-list-identity.tql
SullivanDaly Jun 29, 2023
31801f2
Update cyber-threat-intelligence/examples/exercise-solutions.tql
SullivanDaly Jun 29, 2023
9eed94f
Update cyber-threat-intelligence/examples/03-create-malware.tql
SullivanDaly Jun 29, 2023
caca29f
Update cyber-threat-intelligence/examples/04-assign-target.tql
SullivanDaly Jun 29, 2023
7dc9009
Update cyber-threat-intelligence/examples/03-create-malware.tql
SullivanDaly Jun 29, 2023
f73d9bb
Update cyber-threat-intelligence/examples/06-uses-chain.tql
SullivanDaly Jun 29, 2023
b837d11
Update cyber-threat-intelligence/examples/06-uses-chain.tql
SullivanDaly Jun 29, 2023
24489f8
Update cyber-threat-intelligence/examples/06-uses-chain.tql
SullivanDaly Jun 29, 2023
a82c6d6
Solve pull/5#discussion_r1246543600
SullivanDaly Jun 29, 2023
f8fd821
solve pull/5#discussion_r1246542883
SullivanDaly Jun 29, 2023
1abb127
solve pull/5#discussion_r1246513402
SullivanDaly Jun 29, 2023
950f4e5
solve pull/5#discussion_r1246528945
SullivanDaly Jun 29, 2023
bcb2401
resolve pull/5#discussion_r1246528945
SullivanDaly Jun 29, 2023
99c5731
solve pull/5#discussion_r1246529654
SullivanDaly Jun 29, 2023
20dfe34
solve issue
SullivanDaly Jun 29, 2023
c9d28bb
solve pull/5#discussion_r1246532768
SullivanDaly Jun 29, 2023
f320502
solve bis
SullivanDaly Jun 29, 2023
8a103fe
Update cyber-threat-intelligence/examples/05-infered-uses.tql
SullivanDaly Jun 29, 2023
6422652
Update cyber-threat-intelligence/examples/07-external-reference.tql
SullivanDaly Jun 29, 2023
a09de0e
rename
SullivanDaly Jun 29, 2023
4608937
change style
SullivanDaly Jun 29, 2023
02ee9da
change Style
SullivanDaly Jun 29, 2023
e0e5399
resolve https://github.com/vaticle/typedb-examples/pull/5#discussion_…
SullivanDaly Jun 29, 2023
7aa922f
solve https://github.com/vaticle/typedb-examples/pull/5#discussion_r1…
SullivanDaly Jun 29, 2023
c7abbdb
solve https://github.com/vaticle/typedb-examples/pull/5#discussion_r1…
SullivanDaly Jun 29, 2023
6525a38
de-doubling
SullivanDaly Jun 29, 2023
2fd911c
Merge branch 'master' into master
james-whiteside Jun 29, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/.DS_Store
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ For users with some experience. Learn more complex features while assuming knowl
Learn how to use TypeDB as the database for an identity and access management (IAM) system. Uses a flexible data model
to automate permission inheritance and policy enforcement at the schema level using rule-inference.

### Cyber threat intelligence
### [Cyber threat intelligence](https://github.com/vaticle/typedb-examples/tree/master/cyber-threat-intelligence)

COMING SOON!
Learn how to use TypeDB in a cyber threat intelligence (CTI) context in order to identify threats using powerful queries and rule-inference.

## Advanced

Expand Down
41 changes: 41 additions & 0 deletions cyber-threat-intelligence/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Cyber threat intelligence

## Introduction

In this demo, you'll learn how to use TypeDB as the database in a cyber threat intelligence context. We'll cover
some basic operations like listing identities and their subtypes with the help of type-inference.
We will then move on to some more advanced examples that take advantage of rules.
We'll see how we can automate threat discovery at the schema level with the creation of a new rule.

## Required knowledge

This demo assumes knowledge of:

- TypeDB's transaction system.
- All basic TypeQL syntax elements.
- TypeDB Studio's interface.

For more information, please see our [documentation](https://docs.vaticle.com/docs/general/introduction).

General knowledge of STIX2.1 would be a plus.


## Getting started

Start your TypeDB server and open TypeDB Studio. Make sure you are on a `schema-write` transaction and run the following
TypeQL file:

```define-schema.tql```

Then switch to a `data-write` transaction and run the following:

```insert-data.tql```

Remember to click on the green tick after running each of these scripts to commit the changes to the database.

## Running the examples

To get started, try running the examples. They are intended to be run once each and in order, so be aware that running
them more than once or out of order might generate data errors. If anything goes wrong, you can run the
`insert-data.tql` script again to reset everything. All the examples use `data` sessions, but you'll have to switch
between `read` and `write` transactions depending on the queries in the example, and remember to commit after writes.
Loading