1

00:00:00,826  -->  00:00:05,000
Sandboxes for Linux now.
First we have AppArmor.

2

00:00:05,093  -->  00:00:08,959
AppArmor is a kind of sandbox.
It is a mandatory

3

00:00:08,960  -->  00:00:11,920
access control framework
for Linux.

4

00:00:12,146  -->  00:00:14,772
What AppArmor does is it
confines programs

5

00:00:14,773  -->  00:00:17,479
according to a set
of rules that specify

6

00:00:17,480  -->  00:00:20,680
what files a given program
can access.

7

00:00:21,080  -->  00:00:23,119
It’s available on a number
of distributions,

8

00:00:23,120  -->  00:00:27,360
including my recommended distributions,
Debian and Arch Linux.

9

00:00:27,493  -->  00:00:32,146
I do recommend using AppArmor
and it is worth learning how to use.

10

00:00:32,653  -->  00:00:36,659
AppArmor, SELinux and Grsecurity,
which are other

11

00:00:36,660  -->  00:00:39,653
security frameworks for Linux
are discussed later.

12

00:00:39,746  -->  00:00:42,183
And they are other
methods of isolating

13

00:00:42,184  -->  00:00:45,466
your Linux environment and
hardening and securing it.

14

00:00:46,213  -->  00:00:51,529
Another sandbox for Linux
is Sandfox. It runs Firefox

15

00:00:51,530  -->  00:00:55,159
and other apps in a sandbox,
limiting their access

16

00:00:55,160  -->  00:00:59,160
to the file system. And it works
under Debian, Arch, Ubuntu.

17

00:01:00,026  -->  00:01:03,613
Some Linux distributions have
the sandbox command,

18

00:01:03,666  -->  00:01:05,120
which you can see here.

19

00:01:05,493  -->  00:01:08,173
To the distribution you use, you’ll
have to see if that’s available.

20

00:01:09,066  -->  00:01:13,369
There’s also Firejail, which describes
itself as a SUID program

21

00:01:13,370  -->  00:01:15,733
that reduces the risk
of security breaches

22

00:01:15,734  -->  00:01:19,939
by restricting the running environment
of untrusted programs

23

00:01:19,940  -->  00:01:24,760
using Linux namespaces
and seccomp-bpf.

24

00:01:25,533  -->  00:01:28,173
So you can think of this as just
a lightweight sandbox.

25

00:01:29,306  -->  00:01:31,733
And that’s what it looks like.
And it’s easy to use

26

00:01:31,734  -->  00:01:37,906
than, for example, AppArmor.
You can download it from here.

27

00:01:40,733  -->  00:01:42,186
I’m going to download it
with WGET.

28

00:01:56,400  -->  00:01:59,542
And there you go, it’s installed.
That’s on Debian “jessie”.

29

00:02:00,400  -->  00:02:04,742
Firejail is very easy to use.
So let’s launch IceWeasel.

30

00:02:04,933  -->  00:02:07,633
We have to use the application
name Firefox

31

00:02:07,660  -->  00:02:09,300
because that’s what
it’s called in Debian.

32

00:02:13,760  -->  00:02:17,874
There you go. IceWeasel launched
sandboxed with Firejail.

33

00:02:19,794  -->  00:02:22,454
Firejail also has something
called the private mode,

34

00:02:22,455  -->  00:02:25,771
which is a way of hiding all the fuzz
in your home directory

35

00:02:25,931  -->  00:02:29,314
from programs running inside the sandbox,
which is a nice feature.

36

00:02:32,754  -->  00:02:39,360
There we go. And that lists
all the running sandboxes.

37

00:02:40,365  -->  00:02:42,182
For a guide on how
to fully use it,

38

00:02:42,445  -->  00:02:44,628
check out the documentation
link here.

39

00:02:45,051  -->  00:02:48,822
Also there’s a link on Firefox
sandboxing, so check that out.

40

00:02:50,080  -->  00:02:56,249
The free BSD, the TrustedBSD
system is used for sandboxing,

41

00:02:56,250  -->  00:02:59,254
which is another mandatory
access control framework,

42

00:02:59,255  -->  00:03:03,360
on Mac framework. So this is worth
looking at if you like BSD.
