-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from FourCoreLabs/ransomware-generic
Adding System Encryption Ransomware Generic Behavior and Wallpaper Restore functionality
- Loading branch information
Showing
30 changed files
with
489 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package main | ||
|
||
/* | ||
Mock Ransomware firedrill | ||
Simulation of a ransomware | ||
- Changes wallpapers through windows registry. | ||
- Drops ransom note on desktop. | ||
- Encrypts files present on filesystem (drops sample files in a temp folder and does not destroy actual files). | ||
- Restores wallpaper after simulation | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package main | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/FourCoreLabs/firedrill/pkg/behaviours/ransom_mockencrypt" | ||
"github.com/FourCoreLabs/firedrill/pkg/behaviours/ransom_note" | ||
"github.com/FourCoreLabs/firedrill/pkg/behaviours/ransom_wallpaper" | ||
"github.com/FourCoreLabs/firedrill/pkg/sergeant" | ||
"go.uber.org/zap" | ||
) | ||
|
||
var ( | ||
version string = "0.1" | ||
) | ||
|
||
func main() { | ||
logger, _ := zap.NewProduction() | ||
|
||
behaviours := []sergeant.Runnable{ | ||
ransom_mockencrypt.NewRansomEncrypt(), | ||
ransom_note.NewRansomNote(), | ||
ransom_wallpaper.NewRansomWallpaper(), | ||
} | ||
|
||
sergeant := sergeant.NewSergeant(logger, behaviours...) | ||
if err := sergeant.Start(context.Background()); err != nil { | ||
logger.Sugar().Fatalw("execution failed", "error", err.Error()) | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This is a FourCore Test TXT File |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This is a FourCore Test TXT File |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.