stegSecure is a software that intercepts new user files upon download, scans the images for LSB-steganography, and santizes them of hidden information if they are found to be steganographic.
stegSecure implements the Sample Pairs steganalysis algorithm, which returns a probability that a given image is steganographic (Dumitrescu 2002). stegSecure sanitizes the image if this probability is >50%.
**This version of stegSecure must be run on the Linux OS **
Clone the following git repository with git clone https://github.com/standardrhyme/stegsecure.
Change the current directory into the recently cloned stegsecure folder. Start stegSecure with sudo go run main.go [MOUNTPATH].
Download an image from an Internet browser. stegSecure will automatically intercept, scan, and sanitize the file if needed.
In a separate Terminal, run sudo umount MOUNTPATH.
[MOUNTPATH]
Specifies the directory to mount over. This should be your Downloads folder, but can be any directory. If unspecified, it will default to the testdir/Downloads folder within the respository.
Sample output when a steganographic (samplestego.png) and non-steganographic (samplesmaller.png) image are downloaded:
The LSB values of the steganographic image on top are all switched to 0, rendering the cleaned image below

type FS struct {
Debug func(msg interface{})
conn *fuse.Conn
mountpoint string
binddir string
rootInum Inum
root fs.Node
nodes map[Inum]*NodeAttr
notifiers map[Inum]*func(Node)
nextInum Inum
notifier func(Node)
nextPassInum Inum
passNodes map[Inum]*NodeAttr
}
type Node interface {
fs.Node
FS() *FS
Inum() Inum
Name() string
SetName(newName string)
Parent() *Dir
SetParent(newDir *Dir)
GetNode() (*NodeAttr, error)
GetRelPath() string
GetRealPath() string
Passthrough() bool
}
type NodeAttr struct {
fs *FS
attr fuse.Attr
}
type Dir struct {
fs *FS
inum Inum
name string
parent *Dir
children map[string]Node
passthrough bool
}
type File struct {
fs *FS
inum Inum
name string
parent *Dir
data []byte
cleaned bool
passthrough bool
}
type FileHandle struct {
*File
passthroughHandle *os.File
}0: Successful1: Incorrect command line input format2: External package function error
FUSE was used to build our virtual file interception feature.






