Showing posts with label security. Show all posts
Showing posts with label security. Show all posts

2012-10-15

How to set permissions for Linux personal web site

Let's suppose that we have a user account located at ~ and a web site at ~/www

We need to set the directory permissions to 755 allow every

We need to set the files to 644 (owner can r/w, everybody else can r)
    u g w
0 - 0 0 0
1 - 0 0 1
2 - 0 1 0
3 - 0 1 1
4 - 1 0 0
5 - 1 0 1
6 - 1 1 0
7 - 1 1 1
u stands for 'user', g for 'group' and w for 'world'.
These are the classic Unix file permissions.

However, if AFS is being used, we also need to provide permissions in the access control lists (ACL).

The following command gives access to the web folder to anyone:

fs sa www system:anyuser rl

The following lists the existing permissions:

fs la www

More help on AFS
"
There are seven standard AFS permissions, each referred to by one of the letters r, l, i, d, w, k and a. The lida permissions apply to directories and the rwk permissions apply to files.
Directory permissions

l (lookup)
Allows one to list the contents of a directory. It does not allow the reading of files.
i (insert)
Allows one to create new files in a directory or copy new files to a directory.
d (delete)
Allows one to remove files and sub-directories from a directory.
a (administer)
Allows one to change a directory's ACL. The owner of a directory can always change the ACL of a directory that s/he owns, along with the ACLs of any subdirectories in that directory.

File permissions

r (read)
Allows one to read the contents of file in the directory.
w (write)
Allows one to modify the contents of files in a directory and use chmod on them.
k (lock)
Allows programs to lock files in a directory.

"

2012-07-31

Poison Attacks Against Machine Learning

Poison Attacks Against Machine Learning: With AI systems becoming more common, we have to start worrying about security. A network intrusion may be all the more serious if it is a neural net that is affected. New results indicate that it may be easier than we thought to provide data to a learning program that causes it to learn the wrong things.

2012-02-15

SSH for Windows

Secure Shell (SSH) allows secure terminal console access to remote computers. It is available out-of-the-box in Linux and Mac, but it is not for Windows.

There are two free implementations available: PuTTY and Tunnelier.
(delicious ssh+windows)

Tunnelier is a more complete product, but PuTTY is simpler and works as well!

2011-12-14

Nano technology joins the battle against counterfeiting

Imagine a bill covered with microscopic holes that make it glow slightly in the light. It's tech borrowed from a butterfly, and it may soon be foiling counterfeiters around the world.

(...)

The technology was inspired by the Blue Morpho butterfly, whose brilliant blue coloration comes not from pigment but the way that tiny holes in its scales reflect light. But the tech, called Nano-Optic Technology for Enhanced Security (NOtES), is different from the Morpho butterfly's wings, and pretty much all other bio-inspired reflective optical technologies, in that it is both extraordinarily thin and functions even in dim light.

NOtES exploits an obscure area of physics to accomplish its bright and sharp display, known as plasmonics. Light waves interact with the array of nano-scale holes on a NOtES display--which are typically 100-200 nanometers in diameter--in a way that creates what are called "surface plasmons." In the words of the company, this means light "[collects] on the films surface and creates higher than expected optical outputs by creating an electromagnetic field, called surface plasmonic resonance."



Full story: Fast Company

2011-11-24

Sovereign Keys to strengthen Public Key Infrastructure

The Electronic Frontier Foundation (EFF) is proposing an extension to the current SSL chain of trust that aims to improve the security of HTTPS and other secure communication protocols.

EFF's "Sovereign Keys" (SK) specification is designed to put the control give domain owners control over the link between their domain names and their certificates after recent Certificate Authority (CA) compromises raised serious questions about the security of the entire Internet Public Key Infrastructure (PKI).

One of the main problems with the current PKI model is the lack of control over CAs and their subsidiaries. There are literally hundreds of organizations spread around the world that are allowed to issue certificates for any domain name and some of them are operated by governments that practice Internet surveillance and censorship.

Sovereign Keys was designed to solve this problem by allowing domain owners to sign CA-issued certificates with their own private keys for additional authenticity. These validated domain-certificate associations are kept on so-called timeline servers and are synchronized with mirrors that are queried by clients.

Source: Network World via ACM Tech News

2011-10-24

Researchers crack XML Encryption

German researchers have demonstrated a technique for breaking the encryption widely used to secure data in online transactions, which they say “poses a serious and truly practical security threat on all currently used implementations of XML Encryption.”

The attack is able to recover 160 bytes of plain-text message in 10 seconds and decrypt larger amounts of data at the same pace, the researchers said.

Although the attack, described in a paper delivered last week at the ACM Conference on Computer and Communications Security in Chicago, was directed against the XML Encryption standard, it exploits weaknesses in the cipher-block chaining (CBC) mode of operation that is commonly used with many cryptographic algorithms. This makes it likely it could be used against non-XML implementations as well.

Source: XML Encryption cracked, exposing real threat to online transactions

2011-05-30

History in the re-making

The National Museum of Computing has finished restoring a Tunny machine - a key part of Allied code-cracking during World War II.

BBC News - Code-cracking machine returned to life

This post is dedicated to PZL.

2008-11-26

Computer protection policy

One thing is to teach computer security; another thing is living it! Due to the recent theft, I had to practice more of what I "preach".

I redesigned my identity management policy, using a multi-tier approach, to balance usability and overall security.

I upgraded the use of data security mechanisms. Consider Windows file encryption capabilities (don't forget to backup your certificate, though). If you're using a Mac, consider FileVault. TrueCrypt is also highly recommended, for the most sensitive files.

The data backup procedures were also revised. I finally finished a batch file script, relying on Windows robocopy. The easier it is to backup, the more often you can do it. This decreases the chances of data loss. However, remember to find an alternate, safe physical location for your backup disks. They won't be of any use if they're stolen along with your computer. You can also use an on-line backup service, for less sensitive data.

Currently I'm looking at GadgetTrak or similar service, to enhance the chances of recovering a stolen computer.

In short, take good care of your computer, and prepare for worst case scenarios. It can happen to you!