Showing posts with label encryption. Show all posts
Showing posts with label encryption. Show all posts

Tuesday, March 15, 2016

Offense


In my primary blog, I recently wrote about detecting traffic over a network connection for malicious activity as well as the importance of checking log files for any unlawful activity that an intruder may have made. As anyone should know, relationships to information security (InfoSec) can be categorized in two ways: offense and defense. Obviously, one's defenses against scumbags is going to be far more in-depth than offenses however, it's important to understand the offensive measures one should at least consider when working with any network whether connected to an Internet access point or a closed circuit network (CCN). To review my previous post regarding network traffic monitoring, look for the title “Consequences” in the menu at the right.

Any time a person connects their device to any network, the assumption should be made that somewhere on that network is a device monitoring, and possibly harvesting, any information being sent across that network. The unfortunate truth of this is that it is far more common than most people would suspect. We take for granted our connections to communicate with one another that we have a secure path of communication between us and our recipient when in fact the truth is far from this. Even if a person is the sole administrator of the network, this is not a guarantee that at some point, someone has not compromised that network without us knowing it. This is why network monitoring and periodic log file checking is important. Even when we do a complete scan of the entire network and all nodes on that network, unless the person is on a CCN with no Internet connection, the possibility is always going to be there. A person would have to have complete control over a closed system to insure the security of communication between nodes and this condition is both rare and unlikely.

Lets take a look at a graphic that can help bring this point across visually to better understand what's going on. The first is the average small home network and the second is the average company network. Of course, any given network can have a variety of configuration options, these are just basic examples.



Any device on either of these networks could potentially be monitoring any and all traffic that travels from one node (device) to another. As the network administrator, it is very important to monitor the flow of traffic so that any anomalies can be mitigated such as an infected device siphoning data without the users knowledge or a device which has been compromised and is being used as part of a botnet. However, there is a significant difference between monitoring the flow of data and monitoring the “data” itself. The ultimate goals here is to insure the integrity of the network and each node on that network while also allowing for the privacy of the users depending on circumstances surrounding the network application.

In most cases with a home network, very little is done to monitor traffic across the lines and security precautions are left to each user to manage their own devices and communications. The “last mile” ISP assumes “some” responsibility such as blocking certain ports, like #25 for example, to help prevent prominent malicious activity to their subscribers and firewall software built into modems helps stop lower level malicious intruders from infecting home networks. Users on the network are left to manage security on their own devices which typically comes in the form of firewalls and security software such as Norton or McAfee. These levels of security do a pretty good job, in most cases, and for the majority of users the rest is “Plug and Pray”.

Aside from the more modern “Bring Your Own Device”(BYOD) business model, the company owns all the hardware provided and actively monitors network activity on the average business network. From the workstation to exiting the network at the modem, the company assumes full responsibility for all communications and security precautions necessary to keep the corrupt out and the network clean of malware. Companies who have their “act together” will provide technology agreements to new employees who acknowledge that there should be “NO” expectation of privacy while using company owned technology or company owned networks. This has been the standard for many years with the exception of arguments over email privacy and the “Work from Home” employee. The more employees there are, the more obfuscated technology and network security becomes.

Offensively, what any user wants to insure is that communications that move to the outside of the local area network (LAN) are maintained as both secure and private. What this means is that we want to make sure that no one else on the network is intercepting or harvesting our communications. It is both possible, and unfortunately common, for bad actors with network credentials to act as “Man In The Middle” of our communications. In such situations, if an email is sent from one device, it is first intercepted by someone else on the network, read or possibly modified, then sent on to the intended recipient. The recipient replies but that reply is intercepted and read or modified then sent on. In more advanced situations, a person can even assume the identity of what would be a trusted individual to try and dupe the victim into divulging information. This is exactly the situation we want to take offensive measures against and prevent from happening. If possible, we even want to catch the corrupt and bring them to justice as well for those who are capable and so inclined to do so however, that is beyond the scope of this particular article.

The easiest offensive measure anyone can do is to start using The Onion Router (TOR) Browser. The benefit to using this browser over others is to create an encrypted connection from ones workspace to the outside world which then “bunny hops” between a number of servers from differing countries before allowing the user to explore the Internet to browse. This action provides a level of security to prevent eavesdropping on browsing activity, another well known administrative intervention on privacy. If ones workplace prevents the use of the TOR Browser then we can deduce that browsing activity is actively being monitored. The downside to using this very secure browser is the response speed and that some servers will refuse to connect to hidden activity. Some would argue that only those who are trying to hide unlawful activity use such technology while the other side of the coin argues that such technology is used as a preventative measure against privacy invasion. For those considering, it is wise to research for ones self then make an educated decision.

An alternative to using the TOR Browser is to acquire services from a VPN provider. VPN services allow for one to connect their device through a provisioned server located elsewhere so that all data transmission is encrypted from the user's device to that server then to proceed on to its intended destination as normal. This method is becoming more common as people are becoming more aware that many organizations are choosing to monitor, harvest, and in some cases MITM user communications for their own self gain. The following graphic shows how a VPN service works in a simplified manner.


VPN services are actually pretty cheap in comparison to the advantages they provide. By using such services, anytime a person is in a remote location that requires access through an unknown network, one can almost guarantee a significantly improved level of privacy and security from their network activity. The image above shows a simplified version of this. The laptop establishes an encrypted connection between itself and the VPN server and then access the Internet from that remote location. Any device between the laptop and the server which may try to monitor or intercept data only sees encrypted streams which are indecipherable and appear as a garbled mess. In most cases, less than $10 a month for a subscription fee will provide a more than adequate secure connection.

For the more technology inclined, or those who utilize their own servers such as from companies like DigitalOcean, Rackspace, or Amazon, one can simply establish a port forwarding connection between their device and their remote server. This technique is essentially the same as subscribing to a service but requires a little more technical “know how” to establish the same level of connection. While requiring a bit more wok from the user, the cost can be reduced to as little as $6 a month or less to rent a remote server instance suitable for the task. Many people who utilize this level of secure communications often use their home devices as way points for their communications when out and about. In establishing this type of way point, one must consider the implications of possible security breaches to their home devices as their ability to connect remotely also includes the potential for a malicious individual to break in. In any case, one must always weigh their threat level with caution and examine all positive and negative possibilities.  

Aside from establishing a secure connection to transmit data across, one can also focus on the security of the data itself. At this point, we begin to consider applying technologies that can insure our communications arrive at their destination undefiled, and in tact, from our device to our recipients. It is at this point we would have to include some level of encryption or digital signature which can be verified by the recipient as good or valid. This level of security requires active participation from both parties. While it's entirely possible to digitally sign communications at the user end and still have that communication be read at the recipient end without validation, doing so negates the security advantage of the applied technologies. In my years of experience with encrypted communications, I have found that an extremely small percentage of the general public is knowledgeable or capable of applying such security technologies and thus one should not assume a recipients compliance to verify against such protocols regardless of application.  

Lets consider a few scenarios in which encrypted communication can and should be applied by default as well as the benefits and pitfalls of applying such technologies. Applying technologies such as GnuPG to encrypt ones communication prior to being sent across any network is as easy as installing a program then following step-by-step instructions. Decades ago, this was a lengthy and complicated task that only a very small few who worked at the highest security levels would consider applying. However, in light of recent events and thanks to developers, applying such security technologies has advanced to a level of ease that even young school children can master and apply. The following are only a couple of examples where encryption of communications or applying a verifiable digital signature can be beneficial to the average user who understands and is aware of the pitfalls associated with insecure networks.

The average public school actively monitors all communications across their networks. They look for signs of harassment, illegal activity, emotionally troubled students, and academic integrity (cheating). In an “ideal” world, this would be the extent to which monitoring of communications would be active to insure the integrity of the administration and the student body. However, network administrators are human just like anyone else and are just as prone to corruption as anyone else. We must always remember that “hard access is full access” and a corrupt administrator (even in a public school) can access most forms of data at varying levels as well as cover their tracks from supervisors if necessary. Suppose a “good friend” of one of the schools network administrators has trouble with their boyfriend who cheated on her and wants to get “even”? Suppose a corrupt administrator wants the position as an instructor that pays better? What if a failing student absolutely “needs” to pass a certain class or a corrupt instructor is passing students who in all reality shouldn't be? The list of possibilities can go on for a long time. What can we do to protect ourselves from corruption at the network administration level in a public school?

One could potentially change to a different school. This may be an option for some, but in many cases, changing schools is not an option as the next closest school may be too far away. Maybe file a complaint with the school? This may be an option but don't count on the complaint getting too far unless one has undeniable, conclusive evidence to support their claim. Public school network administrators are part of a labor union. The labor unions assign individuals to act as defense attorneys to protect jobs, even in the case of corruption. The best one could expect from a complaint might be a slap on the wrist to the administrator unless the collected evidence is compelling enough to elicit real legal action by way of attorney. One must also consider that the corruption may go as high as the school president in some cases. It's unfortunate and may seem the “odds are against” but taking offensive precautions can help prevent such atrocities.

One simple precaution a person can take is to digitally sign communications used in public schools. Digitally signing can at least certify that any communication from ones device was in fact originated from that person and delivered across the network to its recipient unmodified from its original form. Any individual with the public key of the author can verify the integrity of the communication. Should the verification process fail, then evidence shows conclusively that the communication has been tampered with sometime during transmission. Digitally signing, and not fully encrypting, allows “plain text” communications to be stored and potentially reviewed should any problems arise that would require review of communications between two parties. Only digitally signed communications can be considered as trustworthy since unsigned communications are, for all intensive purposes, suspect of forgery. One should also be wary of digital communication platforms provided that do not provide a means of digitally signing communications. Many public school administrations pass on providing these securities as they are “options” to their adopted platforms to which they feel the added technology and expense are unnecessary. In essence, it tilts the security in favor of possible corruption within the system.  

Another scenario includes communications between government entities and contractors. Competing contractors, corrupt employees, foreign governments, or possibly even ISP personnel could potentially intercept communications between two points. Communications could be modified to tilt in a competitor's favor or for the financial gain of said entities. In such a scenario, fully encrypted communications would be more beneficial. Remember the news article of the cell carrier employee who monitored the US President's instant messaging contacts? Realistically, there is little one can do to protect their personal or business interests against such corruption other than taking offensive precautions with our information to insure private communication with their intended recipient. In comparison, ones digital communications are like sending a message through the mail on either a post card or in a security envelop. The choice is ultimately up to the sender to the degree that they determine what their security needs are and what their proposed threat level is.

Ultimately each company or individual must decide for themselves what level of communication security is appropriate for them. There is an old saying within the technology field that states “security and simplicity are not good bedfellows”. The greater level of offensive security is always going to mean a decrease in user simplicity and one must always give way for the other. Often, ignorance to the possibility gives way to simplicity until a person actually experiences the ramifications associated with not applying the necessary level of security. In most cases, and with most people, it's a “live and learn” scenario. Just the “thought” of the scenarios proposed are enough to make a person's stomach turn and more times than not we have to have faith that these types of things are not happening. The unfortunate truth is that they happen more frequently than many would want to admit or even think about.

For further reading and understanding of applying digitally signed or encrypted communications, read the following blog post or research “the benefits of digitally signing or encrypting”.

http://roguehorse-how-to.blogspot.com/2015/01/basic-security.html



Sunday, January 11, 2015

Basic Security

People constantly ask me about the precautions one should take to keep their data safe and secure from those who would either try to snoop their communications or steal their data in some way. One of the most fundamental understandings a person has to accept concerning privacy and security is that attack vectors come in various forms; technological, direct, and indirect. Locking down ones computer with IP tables, firewalls, and antivirus is all fine and good for keeping out the random, anonymous attacker but one must also consider the direct vectors which are those people who have physical access to you and your device as well as any parties they may be associated with. In short, your privacy and security may possibly be compromised by anyone around you or has access to you. However, do not let this concept stir up exceptional levels of paranoia but instead, simply a heightened awareness of one’s surroundings and the current situation.

Also, never be overly forthcoming in telling people the methods you use for security. One never knows who is reading, listening, or trying to gather information in an attempt to hack your own personal security. In the following article, I give examples of best practices one should use to keep their data and communications safe. There are lots of different ways a person can do this and the less information given out the more “in the dark” the asshole is that wants desperately to break into your security. Always get multiple opinions of best practices as well, never trust the opinion of just one person regardless of who they are. Research and follow up, then use good judgement based on correlating information.


Passwords


For years, technology experts have been trying to drive the concept of good passwords into the heads of the gp (general public). Good passwords are the first essential line of defense for any security model. The arguments for what constitutes a good, strong, password is as endless as the arguments for just about anything including religion or government. Too many people use poor passwords without enough entropy (disorder in a system) as most will believe that passwords need to be memorizable. To a degree, there is some truth to this although there are a number of password management systems now available for free to the gp that can overcome the need to have poor, memorizable passwords. Research these programs and make good use of them. The easiest passwords to crack are those that have commonly used strings or dictionary words, i.e. 13579 or theaccount. Good passwords should look something like the following which was generated on a Linux system using the following command:  


cat /dev/urandom | tr -dc [:graph:] | fold -w 20 | head -n 1


password = X=UyY^+fq.!AE?9OGIC{


While many would agree that the likelihood of the ‘average’ user being able to memorize such a password is extremely low, the odds of a brute force attack or someone trying to memorize such a password from watching over one’s shoulder is also unlikely as it presents no memorable pattern or words that someone would easily commit to memory. Another method that might be easier for someone to remember, and nearly as effective, is the use of memorable phrases such as “I have two cats and I love them both” however, to avoid the usage of common dictionary words, one would apply this phrase in a manner with much higher entropy:


1-hv-(1+1)=2c&I<3ThM2!


One should also never use the same password twice. A person never knows what account may get attacked or compromised thus, not having the same password that works on multiple accounts can save a lot of headache and disaster down the road. If a person uses the same password for one account and that network becomes compromised by either an outside attacker or a malicious administrator, all is lost and that person now can get access to anything that would use the same credentials. Remember, it’s not always an attack from the outside that one has to worry about, people on the inside can be just as shitty and malicious.


Foreign Tech


Always be wary when working on an unknown network or device. Most places such as an office, school, or any other public place should be considered a hotspot for disaster. In cases such as a workplace or school, a technology policy will be given to employees to acknowledge that automatically states one should not expect any level of privacy while using the network. Many people construe this as not sending personal email or spending any time on social networks while on the network, however, other factors may be involved and should be considered. The more one knows of the various ways a person can gather information from any device on a network, the better prepared they can be to protect their own personal interests and their privacy while on an insecure network. An insecure network is any network that a person does not have full control of from the terminal to the outside.

The first concern is the possibility of keyloggers. Keyloggers record every keystroke a person types on a computer and stores it in a file. That file can then possibly be sent to anywhere or anyone who is on the network as determined by the administrators of those networks. If you are not the owner of the physical technology, the best defense is to work under the assumption that a keylogger has been installed and is running on the foreign technology.

http://compnetworking.about.com/od/networksecurityprivacy/g/keylogger.htm

Any employer, school, or public office personnel who are legit would never coerce an individual into using foreign tech for logging into a personal account of any type. I worked at a place once where they were slow at providing a company email address and tried to force me into logging into a personal email account on a company computer. Needless to say I was completely irate and never trusted my direct supervisor after that. In the long run, I was right after a number of these idiot attempts. If this situation arises, try to use your own device such as a tablet or smartphone for lobbing the “immediately important” emails but be aware of any spamming which may occur afterwards as well as bad actors now that a stranger has your personal email address. If the entity in question does manage to ‘blackmail’ you into using a personal account on foreign tech for any reason, change the password immediately after or even consider shutting down the account. Don’t get overly attached to email accounts.

Another good defense against the keylogger is the password safe mentioned earlier. In many situations, the password safe will allow the user to copy and paste the username and password from the safe into the required field completely bypassing any keystrokes that would normally occur. If no keys are pressed, nothing can be logged.

The Network

Once we have acknowledged the potential of the keylogger, we can also be guaranteed that the network is compromised. This concept is usually told to employees up front and one ‘really’ needs to make sure and remember it at all times. What this means is that any website, program, data entered, stored, or emailed to anyone else on that network is being recorded, stored, and possibly reviewed by entities who you will most likely never know. In some situations, it’s possible to read the faces and actions of people who would be likely candidates of having access to such information and determine through observation how active their monitoring is. Some people have good poker faces and some don’t. The dumbest ones try to create ‘real world’ actions from the information they collect. Don’t be one of these people as it’s a stupid and predictable thing to do which only creates mistrust and puts you on the asshole list.

Storing and or monitoring is a fact one needs to get used to. It’s actually a security precaution that can help save companies and institutions from lawsuits. If done properly, no one would know anything is going on as it’s only when unfortunate situations arise from crazy people looking to cause trouble that the collected information comes into play. Thus the best offense it to say as little as possible to the least amount of people possible on an untrusted network. Never assume anyone is your friend or that anyone is going to back you up; not your employer, not your school, not your union...no one. It’s always a “user has been warned”  scenario and one has to use their own precautions and best judgment to how careless or carefree they are willing to be on an untrusted network.

If possible, try to use a VPN (virtual private network). This entails either having an account with a VPN provider or creating what is known as an ssh tunnel to a remote device. The way this works is that an encrypted tunnel is created between the user terminal and a privately owned and trusted server somewhere else. Any data passing through any device that is on the path between the user terminal and the remote server is completely encrypted and useless to any shitty snoop and their monitoring tools. Using Tor can help immensely in private browsing and communication however, most companies and institutions will not allow tor on their networks simply because it gets a bad wrap from misinformed FUD (fear, uncertainty, doubt) spreaders. The truth about the Tor network is that it is used by law enforcement, corporate entities, government agencies, and special interest groups such as witness protection and battered spouse protection so that they may sustain anonymity while using technology to go about their lives.

https://www.torproject.org/

http://www.pcworld.com/article/2030763/how-and-why-to-set-up-a-vpn-today.html

https://chamibuddhika.wordpress.com/2012/03/21/ssh-tunnelling-explained/

Current measures are being taken by various groups to try and bring HTTPS to every website so that the concern for insecure browsing is greatly reduced. While this is becoming more prevalent, it is not a global deployment yet. Always try to insure a solid HTTPS connection between your device and any site that requires login credentials. Pay attention to any variations or strange activity from regularly visited sites, even if they are HTTPS sites. There are ways of spoofing HTTPS but it’s not very common and becoming less common as cryptography and site certification techniques continue to mature.

https://www.eff.org/https-everywhere

https://www.eff.org/deeplinks/2014/11/certificate-authority-encrypt-entire-web

EMail

Email is it’s own animal and security debate has (and will be) going on for quite some time about what is warranted interception and what is not. People constantly bring up to what degree does a company have the right to store and read email that is created by their employees using company technology and the expected level of privacy a person should be able to expect from their communications. The unfortunate (current) truth is that any email message that has been generated on foreign tech and is carried on a private network before reaching the outside lines is considered monitorable by the network and hardware owners. As such, it is vitally important that nothing is said in emails generating from such devices or networks that would not be said in a public forum. Company provided email accounts should be considered to have the same level of insecurity and distrust. The best defense is to assume that the entire email system is bugged and compromised from the very onset.

One should also be aware of email spoofing on such networks. Do not automatically assume that the emails received from person X are ‘actually’ from person X and a conversation with person Y is not actually taking place as a MITM (man in the middle) scam. Do not automatically assume that the conversation between you and X is being regarded as private either. Person X may be providing ‘bait’ to try and get sensitive information or instantiate an entrapment scenario that may lead to disciplinary measures later down the road.

Email spoofing is when an asshole tries to impersonate someone else to get you to share information with them that you would otherwise not share. It’s not exceptionally hard to do but a person typically has to have a criminal mind to even consider such activity. Using good mail filters, spam control, and phishing protection can stop much of what the average asshole will try to pull over on someone. Being able to spoof emails has become much harder with modern email security protocols, however, some persons with advanced network access or connections to such individuals can still find ways to spoof mail.

http://www.pcworld.com/article/253305/minimize_your_exposure_to_email_spoofing.html  

The MITM takes a little more work to set up and requires a bit of advanced knowledge which usually requires someone to have administrative capabilities to any network. The MITM simply does what they can to monitor and record any plain text messages that travel between two points. If the person doing this is a real jackass, they may also monitor any web activity that happens from the same device address. An aggressive MITM unfortunately puts you on the defensive and to get around such activity requires a VPN, ssh tunnels, encryption, or even the use of the Tor network for all data that travels between you and the rest of the world.

http://www.makeuseof.com/tag/man-middle-attack-security-jargon-explained/

https://en.wikipedia.org/wiki/Man-in-the-middle_attack

The very best defense for secure email is to use end-to-end cryptography. What this means is that as soon as you are done composing your message to X, a program on your computer encrypts the entire message to where only the intended recipient is capable of decoding the message. To a MITM or anyone along the network path, the message will look something like this:

hQIMA+UPxzxVNX89ARAAg3wu6XZXirFydYXZjeG1B42Jm1lsxhR3i82pLedCcz3z
gzUumIjrVGAr2ZcGdADubv6Mt0SjGnCLn/OsAaUte6dWmH9yIrFwCB8vVP6luah6
KoosNwriPqNOQfgw0ck3y+ZBqkC/fCv5MTc/UDWeWq9N9Cv33TGtJqNHJu3DkOf3
m/MBnvezKN4/8uAeMFD4LAY5jbg94XMkAPSNLpcE1gzLQmYRATf75Xs3kjSU+Gzm
zbfBiMElMSNfbVd8md/d4GySJPfA15l06CKGUn4WlD1DCzF/kfFiMq9dscBDXs6d
07SK/yrWBhhh4OD3jvVrYhMoc9pwmZaNbteTGqkA7lHHWshX0a2YOUmBVoRJkAQL
03FZ9qEbk9X85x8Gp6a0A/arZUgQp2g6pMyauiRi1+v/5qfnGC5T68qnO+6YUHwG
wx8sNxHAe2wbNlcGzyLuNEhWPTmmOzkkKAVj5JF5JXuip0gWHJt+U5SjKOdi/+qD
yZt8Q0nz6k48OOkSFJQIPukUOgvN8c9mvsjfRJw5x88uUy+XgEbJvX4Fq4Lj9eth
wYnhNmPWFkdQUIxmGPxN5dl5yZTPGe7D8IOS1CAFONXm0vdAWGSeFro2uxOUH3Gs
Daiu19g/5KzzQVQEdRGfeaM8DUMqAUBVyUBOoRYQAibZ3/6m3SO7Oyi6QpQtRWvJ
Mp1hTjG6ot2ne+UPfDFrRVwHytxHjIp2wlliRrmr+BYKkLU0qwfm7YCghno8izAz
bJcn
=YzyG

Believe it or not, the above message ‘actually’ says “this is an encrypted message”. Your recipient, X, would then use their encryption program to decrypt the message which requires another password. This provides a level of protection even in the case of a person getting access into X’s machine and opening their mail program or getting access to a web mail account and looking for any information they could use to screw you or X over.


Encryption is not as difficult to set up as most people seem to think and is the best method to insure that any message sent from you to any other person reaches it’s destination unedited and unread along the way. Once encryption has been established, most programs handle all the difficult work automatically,

As a secondary measure, not as good as encryption, but as a means of making sure messages reach their intended recipient and have not been edited along the way, is to digitally sign the message after it has been composed. This level of security requires the same encryption software to be installed and utilized although the difference is that the message can still be read by anyone along the message path between you and X. Although, when X receives the message, they can validate the signature on the message and be assured that what was wrote did in fact come from you and was in no way edited along the way. A signed message looks similar to this using the older inline message signing:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


This is an example of a signed message
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)


iQIVAwUBVLL3DUCnAjFhe0E3AQL7zg/9EPJmSW6giQRXdDFUC8RXaqpepDNpaq7a
QCkWROO/aUKYQwhUbvZjRc8miYDp/fms2/Iye6JKmcMrcD04RRrqkPrDGgZIigSv
jOimB5VSIAX1Mu5yZoZch4KCP9Gs0pBRvk6brjHACTitBhTDMswiLCFxB/yyI2jg
jGkMY11G8DiZjeWGfyEX8a3OOYu5lWfxw5gsY85SV3Dzq48ca4fJ0Nn+om1jljSr
np8xCm88fDQyo41NCTWTKTwJXlpjWcDcJ2j0S7L8ZaTfqS22Qd2DPo4f+/TYMQZf
/fpHk9pxU/HmkN55kJ0firdSdrqQBk28RK2ZtNFiPa0qZF1vP7iVHMNs6J/Dbbzo
uuza3nZktr/Txgirk3l3bIgw+mGaiYIEJ6/0xWDVBI5lcu6ddA/mZW1XAuYJOwT5
1oOwxZxE+Kd9wXXAcEqguT+2PXtEeHC5XNH1Fpp6phToiNNgao2G/AG84FD3BpEY
2a/hFXwU1MsykYEzny5vynxFk7YzzUOOvtEeQHidMCBr0s8F+PwH0O81JZKwls8f
MEi2efg2bfIvDtot6iBZ89NlPWTYHMq65M7G2Nzonv/N4ym+kegIVYGWVnypSDIc
JnnriMGJYVbpnfYI9D00fZ35heiy+vuaPL1ssXP24+khNnylqj5izMAnO+KEBC1m
qoba3LCPYfI=
=Gi4g
-----END PGP SIGNATURE-----

As one can see, the original message can still be read and the big blob of encryption at the end can be digitally verified by X’s system that the message has not been altered in transmission. Digitally signing cuts out the potential for a MITM to hijack communications as only you and X have the key pairs required to verify each others signatures and if the MITM tries to change the conversation in any way, the signature would then become invalid and you and X can then call each other on the phone or determine a different platform to discuss the problem in the network line of communication.


The newer method called PGP/MIME uses attachments to the message so that the message body is not so cluttered with the addition of the signing encryption. Many modern mail programs can automatically read both types of signatures and the ones that can’t should be avoided.

The signing method is great for companies and institutions such as schools to digitally verify ‘beyond a doubt’ that messages between individuals have not been tampered with during transmission while also keeping messages in clear text for liability reasons in case they should arise. Without digitally signing at a minimum, there is no guarantee on any network that communication between parties has not been compromised whether by an external deviant criminal or a malicious employee with criminal intent.

http://threatpost.com/google-releases-end-to-end-chrome-extension-to-open-source/109935

https://ssd.eff.org/en/module/introduction-public-key-cryptography-and-pgp

Some people use the excuse that using crypto is only for criminals or those who are trying to hide something; this is FUD and complete BS. Cryptography is used every time a person visits a website with the HTTPS protocol and to insure that no asshole can hijack communications or steal our private conversations or data. It doesn’t matter if a person is just sending an email about what they had for dinner to their grandmother, the point is that this information can be hijacked by malicious criminals and used against someone who might be personal enough to cause harm to either of the two parties. Using full encryption or digitally signing eliminates that risk and puts malicious assholes out of business; period. Legitimate people are the ones who do not care if a person uses encryption or not as it’s only a means of guaranteeing the information sent to them has not been read or tampered with by anyone along the message path.

When the topic of handling email is presented to me, I simply point people to what the Federal law says about US mail in general. For those who have taken the time to consider the legalities surrounding the movement of mail whether it is in physical or electronic form, precedent dictates what is the legal handling of mail. Unfortunately lawless and criminal people don’t care about this and it is one’s ability to follow the law or negate the law that dictates their character as either a criminal or quality citizen.

http://www.law.cornell.edu/uscode/text/18/1708

Update 1/15/2015

Concerning EMail beyond the actual messages sent, make every effort to use two step authentication. Using two step can be a PITA but is a very good method of insuring your account stays in your control. Learn to work with two step as it can be rather complex when multiple accounts become involved and linking devices together as well as setting up MTA's (Mail Transfer Agent) and securing MUA's (Mail User Agent). More than once I have gotten alerts from mail accounts that someone didn't have the right credentials as well as my own testing to insure the account is still in my control.

The Hotspot

In most homes there is a device referred to as the modem. There is only one modem on most home networks and what this device does is modulate and demodulate the analog signal that come over the wire into a digital signal that electronic devices can understand. This device is the single point of personal security deterioration in the home. Both ISP companies and any person with administrative access (account holder) to this device can snoop network traffic and destroy the privacy of anyone who passes data through this device.  

It’s an unfortunate situation but many large ISP’s simply can’t be trusted to play a neutral role in moving traffic through their network. Some of this is based on company policy, some of it is from rogue employees who abuse their positions, and some of it comes from government agencies who impose themselves on the carriers. Other possibilities include merit-less warrants that are not questioned for validity by the carrier. Whatever the circumstances may be, one should not necessarily put any level of significant trust that data passing through their modem is being handled with proper care to insure data privacy or security.

http://politicalticker.blogs.cnn.com/2008/11/21/verizon-employees-fired-over-obama-cell-phone-breach/

https://www.techdirt.com/blog/netneutrality/articles/20141012/06344928801/revealed-isps-already-violating-net-neutrality-to-block-encryption-make-everyone-less-safe-online.shtml

http://www.dslreports.com/shownews/Comcast-Users-Struggle-To-Keep-Rented-Routers-From-Sharing-WiFi-131719


Social Engineering

One of the hardest security issues anyone will have to face is social engineering. This includes what gets said to who, who is eavesdropping on a conversation, who is ‘overly’ eager to be one’s friend and those individuals that stalk their targets trying to dig up useful information that can be used in a malicious way. Social engineering takes time to spot and unfortunately can come from a variety of sources not necessarily technical in nature. One needs to exercise caution when dealing with strangers above and beyond just what is said but also what information is passed along as well as what information is left exposed that can be harvested by malicious individuals.

Be cautious when entering passwords for people who would look over your shoulder while doing so. I once worked with a technician who would watch over my shoulder while I unlocked a secure file cabinet from which I had previous problems of important documents going missing. Knowing full well what was going on, I would immediately change the code as soon as the technician left. Reporting the incidents to management didn’t make a difference, the standard response was “not my problem”. Quality and legitimate people will turn away when passwords or security codes are being entered; it will be an immediate sign of separating the quality people from the assholes.

Always be wary of the individual who tries too desperately to be your friend. These are the people who, more often than not, probably know someone who is using them as puppets to dig information from you on their behalf. Joe claims to have so much in common with you and wants to be your friend, Joe and Dave (who you don’t care for much) are best of friends but you don’t know that. Everything you say and do gets reported from Joe back to Dave. These situations happen all the time and in reality, Dave is still an asshole and Joe is a puppet. In real situations, people are cautious of strangers and are not very likely to want to be friends too eagerly. When a person encounters this scenario enough times, it becomes much easier to distinguish the social engineers from the legitimate people.

In some situations, Joe might legitimately want to be your friend. You might get a good sense of legitimacy from Joe and decide he’s ok so start a relationship. Joe might still be feeding information back to Dave but you are still in control of what information you share with Joe. If Joe begins to become overly demanding to discuss things that you are not comfortable sharing with anyone, a simple response of “I’m not comfortable talking about that” should in all cases suffice and the topic is dropped. If Joe is trying to pump you for information, he will become aggressive at either trying to ‘force’ you to give up the information through badgering or, may bring the topic up again at a later date. Use your gut instinct as more often than not, it’s better to be safe than sorry with the information that you share with other people.

http://www.howtogeek.com/180186/htg-explains-what-is-social-engineering-and-how-can-you-avoid-it/

https://blog.spideroak.com/20140521100000-considering-you-most-vulnerable-secuirty-links-how-to-combat-social-engineering-attacks

http://www.academia.edu/7978172/Social_Engineering_Human_Hacking

http://www.ieee-security.org/TC/SPW2014/papers/5103a236.PDF


Conclusion

Ultimately it is our understanding of situations we’re in that dictates the level of security measures we need to take. If one is unsure, look it up and ask people who you trust. With the levels of technological data theft that are available to the average criminal, one has to be more cautious than ever before with the information that is shared between people. Good people will understand security concerns and measures one takes as they, most likely, use similar measures and share the same concerns. Criminals, and those with an intent to do harm, are detectable but it takes time to learn how to read behavioral patterns which exposes them. The best advice to anyone is to deploy the most sophisticated security measures you are capable of to insure your own safety and security in any situation whether on a technical device or among the general public.

This post is only a small portion of the dangers one may encounter or deal with on a daily basis. I don’t want to be one to alarm people and I wouldn’t suggest that absolutely no one can be trusted. Real trust takes time to establish between two people regardless of their relationship with each other. However, if people respect the privacy of others to the degree they wish it to be respected, then trust can be built much faster between the two parties. Often a person will try to use their rank within a company or institution as leverage for being trusted, don’t buy into it. Persons of all levels in an organization or institution can be corrupt or be involved in unlawful or criminal behavior. While this is by no means a suggestion that one should be disobedient, it’s simply an overview of awareness of the potential that can happen and in some regards, situations that I have encountered or experienced.


EFF ID: 1731778