r/GalaxyS7 • u/neomancr • Jan 24 '17
Neomancr's KNOX Mega Guide. What is KNOX? How to get started and other basics.
WHAT IS KNOX?
Knox is a hardware/software security platform that improves upon the security of Android featuring technology originally patented by the NSA. It has become the standard security platform for native Android from Lollipop onward and powers the “Android for Work” platform. It's quickly usurping Blackberry's last bit of market share as the de-facto mobile security standard used by employees of companies and government officials around the world.
Knox offers solutions to the security issues that are inherent to mobile devices. This includes potential data theft or intrusion from either device theft or loss, direct/remote unauthorized access, data mis-management, and any Android vulnerabilities that might compromise your data--even before they have been found and patched.
Furthermore Knox on Galaxy devices provides the fullest range of Knox features and protection that the platform provides. It utilizes a series of concentric layers of defense which includes: a hardware e-fuse that is tripped if the device detects tampering, device mapper verity which verifies the integrity of the boot chain to prevent circumvention, hardware accelerated Department of Defense grade 256-bit AES cipher algorithm encryption with virtually zero performance impact, and a full range of mobile device management admin tools including an API and an SDK to allow for more customization and extensibility.
Popular security apps such as Disconnect Pro and Adhell use these APIs to manage your device firewall to block trackers and ads. A special private mode also exists on Galaxy devices where data can be stored on a separate encryption layer and then there's My Knox.
MY Knox (Deprecated, Secure folder took its place and the same things apply except sans the extra launcher work space and MDM.)
My Knox allows you to set up an entirely separate, independent, and fully-functional Android workspace inside a Knox container. Apps from the Knox workspace can run simultaneously as apps on your core workspace but function as if they are on their own separate hardware. This model has numerous advantages among which are:
As opposed to utilizing separate partitions which results in cramped storage, data in Knox containers share the same storage space.
Whenever possible anything that is identical between Knox containers only uses up the resources of one instance recycled between encryption layers. This allows you to have two Android workspaces running at once and even with every app duplicated and it would still only take up the resources of one. Only what isn't in common between each workspace will use up any additional resources.
Having each Knox container share the same storage space prevents brute force decryption since each encryption layer itself cannot be specifically targeted, only the storage space as a whole. Each encryption layer then serves as a smoke screen for the others.The Knox workspace is also protected from general Android vulnerabilities by using your core android workspace itself as a firewall. Even if your core workspace is compromised, there would be no way to gain access to your Knox containers. Any attempt to modify or otherwise tamper with the root of your device to gain access will trip the e-fuse and/or cause the DM Verity to fail and will render your Knox containers permanently inaccessible and force your device to be wiped.
HOW TO INSTALL MY KNOX:
You will need an app called My Knox. This app will validate the free Knox license that was included with your device and allow you to set up and configure your secondary Knox workspace. You may have already activated your license prior by going through the Disconnect Pro or Adhell setup process. Lets take a second here to appreciate the fact that we get to play with intelligence-grade tech on the same device we use for YouTube and VR Porn! This license also gives you access to the Knox portal which we'll cover in a later article.
Visit the Galaxy App store. Search for "My Knox" and install the app.
Run the app, allow the permissions and confirm the terms. You'll be required to register an email address for remote device management and also to be used for cloud backup features.
You can easily get started by selecting apps you currently have in your core Android workspace to be installed into your Knox workspace. You don't have to decide to do this now, you can do it later. You could also just use the Play Store from within your Knox workspace to download and install apps directly.
Set up your lock type and time out time which will determine how often you'll be asked to unlock your Knox workspace. I personally prefer to have it ask once every time I wake the device. This allows me to use apps from each workspace just as easily.
Now finish by tapping SETUP. It will take a bit of time to complete.
Now that we have everything set up the default mode we're presented with is referred to as FOLDER MODE.
FOLDER MODE:
This setting allows apps installed in the Knox workspace to be accessible seamlessly as if they are apps in your core workspace. You can even place shortcuts to them on your home screen by tapping and holding on any icon in the My Knox folder and dragging it to the ADD TO HOME option above. Shortcuts to apps in your Knox workspace are easily distinguished by the small lock badge in the bottom right corner. The same thing applies to apps themselves when launched.
LAUNCHER MODE:
By tapping MORE in the top right of your My Knox folder and tapping settings you can switch to what's called LAUNCHER MODE. This option eliminates the My Knox folder and presents you with an entirely separate launcher complete with a home screen. The advantage to this setup is that it features full shortcut support for apps such as file explorers that create shortcuts to files and folders. However, in order to launch apps between each workspace you'll have to take the extra step to switch between launchers.
Switching between and closing recent apps from both workspaces is still seamless across both workspaces regardless of which mode you decide to go with.
KNOX CONTAINER ACROBATICS:
Your Knox workspace and your core workspace are completely isolated from each other besides a few exceptions. They each have their own data connections, their own storage space, and data from each workspace are only accessible by apps from within the same workspace. This will take some getting used to at first but it will get easier if we cover a few examples and workarounds:
The clipboard feature only works one way: from the core workspace into the Knox workspace but not the other way around. This is pretty air tight. I've had to go as far as to email clipboard contents to myself from one workspace to the other.
Apps from each workspace only have access to and the ability to write data into the Knox container they are running from. There are a few apps that can be used as bridges such as the native Gallery, File Explorer apps and a few others. If you need to easily pass data back and forth simply open one of these apps, find and select your data, tap MORE and tap either MOVE TO PERSONAL MODE or MOVE TO KNOX MODE. The file will stay in the same folder but shift encryption layers automatically creating the same folder in the same relative directory location if one doesn't already exist.
The screen shot command doesn't work* in the Knox workspace. Any screen recording from the core workspace will record a black screen whenever it tries to capture anything from the Knox workspace. There is a work around using the built-in game mode feature. Just install Game Tuner and set any app you'd like to capture to be treated as a game in the Game Tuner settings menu. Then use the screen capture and video record feature built into the game tools floating bubble.
Each workspace has its own data connection. Any firewall or VPN will only apply to its own workspace. This can be used in a lot of cool ways which we will cover in later articles but one useful trick I can quickly mention now is to use the Knox workspace to bypass firewall apps like Disconnect Pro or AdHell.
As I've mentioned before identical processes between both workspaces are recycled and only use the resources of one instance. They basically straddle between both workspaces. This allows the two workspaces to be extremely resource efficient. You'll notice if you run the same resource monitor from both workspaces that common processes between both workspaces such as Android System report identical resource usage. This allows for some really useful resource optimization tricks that I will be covering in later articles in this series.
WRAP UP:
Welcome to the future. It's amazing that we've reached a point where technology that used to be carefully guarded and sequestered we now carry around in our pockets. Imagine stumbling across a gadget like this in an abandoned laboratory just a few years ago. It would have blown our minds.
CHASER:
As we become ever more saturated by threats against our privacy, tools like this allow us to take cover from the always seemingly incoming digital storm of surveillance and identity theft. It will only become more important for each of us in the future as our personal lives and our online presence only become more intertangled.
It's common in a lot of tribal traditions across the world to have a different name you would give to an outsider than you are known as by your tribe. It was known even before modern times that knowing even just one's name gives you power over them. Think of the data you keep on your device and what others can do with that if you were ever targeted. But by taking advantage of the tools we have we can all be more free, safe and at ease.
P. S.
This is a work in process so I will continue to modify and add to this and other articles in this series as I learn more.
It'd also be helpful if you respond with more questions.
I'll be following up with performance optimization, security tricks, and more coming soon. I write guides like these about stuff I find cool in hopes that if others knew more about it they'd find it useful too. Please remember to UPVOTE if you found it helpful.
it was just brought to my attention that some people have managed to get screen shots to work. It looks like My Knox 4.0 added support for that. Am I really the only one it still doesn't work for?
P. S.
I started a Twitter.
All the cool kids follow me @neomancr
I'll return the favor
/u/Exelero88 started a telegram chat.