instruction
stringlengths
24
27.2k
I just read this example and explanation (below) in the OReilly book Security Power Tools (2007) in section 6.3 that is written by the creator of Scapy, Philippe Biondi. I think the example is very interesting, but I don't understand what it is saying. Can someone clarify this goldmine of info he is referring to? H...
There are few shared folders in my company that are accessed by applications from different branches across the country for different transactions. Hence they are kept "open". During a recent PT exercise, this was reported as a finding. Though no write access is given, I understand that this is a security risk. The app...
If I want to have some privacy and avoid the attention of publishing my email address to the public key server web of trust, yet have a secure two-way email conversation with one recipient, what are the ways in which we can share public keys, in order to have the secure conversation? I am concerned about: My email bei...
Currently we are creating one small service, where we are using some sensitive data from users(not worth zillions but to me it is like password). The idea is that application itself only inserts this data into db and creates some jobs to run in queue. The problem is how to secure this sensitive data? Currently the only...
We are updating our C, C++ and C# coding standards to include security requirements. I know there are coding standards based on the following: PCI-DSS CWE Top 25 OWASP Top 10 NIST SAMATE What is the difference bet these and the CERT C secure coding standard? Thanks
I noticed that every payload (for example bind_tcp) in metasploit comes with defaut encoder.( shikata_ga_nai for bind_tcp). Is there a way in metasploit to manualy choose encoding for payloads or way to cancel encoding at all? Many thanks!
Is there a problem with using a single SSL certificate for both SSL/TLS/HTTPS communication as well as to sign (external) digital timestamp certificates? Other than the obvious: if one key is compromised then both functions can be compromised as well. However, if I devise a secure method of handling keys, and also use ...
I've had difficuties finding all the informations I'm looking for on how to reduce one's fingerprints on the Internet, during "everyday" network surfing. I'm found this post which is interesting : Whats the best way to make my internet traffic anonymous? with the anwser made by Shnatsel [1] But it doesn't quite answer ...
I am asking these question because I am not very familiar with JavaScript or the Firefox plugin/extension system. The specific context is the Mailvelope pgp extension but the questions are general and would apply to all extensions. Can another extension access memory in use or previously used by another extension? C...
I am writing a Java application who needs three username/password pairs. I would like to add a "remember me" feature, implying I would have to store passwords on the user's computer. Knowing this application will be used everyday by some co-workers on their own machines, I considered storing the passwords on a local en...
I am making an web application who POST an username and password to an server who checks it. This communication is secure (SSL/TLS). What I was wondering if the secure SSL communication is set up before or after the first contact with the server? What I mean is that the POST data is the first data what will reach for ...
I understand nmap by default scans the top 1k 'most common' ports (-F reduces to 100) I understand it gets these 'most common' ports based on the nmap-services file, specifically the frequency (3rd column) Say you're curious or doing port-hardening, you'd be curious what those most common ports are. Short of opening ...
My Android phone (Kitkat) list a LOT of CA under setting->security->Trusted credential. Does it mean that anyone who has access to any one of those private keys of those CA(s) can monitor or do "Man in the Middle" attack on my phone when it communicates with the internet? I assume one can monitor not just the browser ...
I am currently renewing an SSL certificate, and I was considering switching to elliptic curves. Per Bernstein and Lange, I know that some curves should not be used but I'm having difficulties selecting the correct ones in OpenSSL: $ openssl ecparam -list_curves secp112r1 : SECG/WTLS curve over a 112 bit prime field ...
Is there a benefit to storing salt appended to hashed password in a single column of a table verses storing salt and hashed password in different columns of the table. The OWASP guide here https://www.owasp.org/index.php/Password_Storage_Cheat_Sheet says 'Store the protected form appended to the salt as follows' [prot...
Suppose your Aunt or Uncle is easily fooled by phishing attempts and their computer has multiple root kits and key loggers running. Assume their computing habits will never change. Looking at his wireless router you can see that he only visits a few dozen or a few hundred websites multiple times in a month. Instead...
I downloaded a pdf earlier, and I was trying to send it to my friend, but gmail said that it detected a virus. So I ran it through virustotal.com and only 1 out of 56 scanners came up with a virus - ClamAV returned with "PDF.Exploit.CVE_2014_8449". None of the other 55 scanners came up with anything. I looked up CVE_20...
I need to prevent Mallory from blindly matching encryption and signing keys to messages Hypothetical scenario: A user creates a public key An encrypted or signed payload exists. With only public key, and a signed or encrypted payload, Mallory wants to find out who signed the data. We want to prevent Mallory from ass...
Is Freenet secure? Of course, I must elaborate on what I mean by "secure". Suppose there is a banned book stored on Freenet. May I download it to local storage without the following groups knowing that I now have a copy? a. My roommate. He can see all packets I transmit or receive on my network interface. (He can't ...
The normal method of providing an encrypted channel appears to be negotiating a session key (using Diffie Hellman or similar), then using this key for a long lived session. Even IPSec that is message based negotiates a key first that is later used for many individual messages. What are the reasons against instead havin...
Specifically for the CISSP, trying to figure out what type of access control these would be considered.
Does Windows Embedded OS supports Microsoft Bitlocker? If yes what are the list of versions and does the windows embedded OS comes with bitlocker?
I'm doing some research on checklist, benchmark, hardening guidelines. And I couldn't find specific documents for security checklist for firewall. CIS had this document, but it was only for Cisco firewall, and also one for Checkpoint firewall. And I found another one from NIST, named "Guidelines on Firewalls, policy",...
What is the best way to upgrade an OpenPGP key that was created 11 years ago? It's 1024-bit and is published on the key server. I can create a new key, but what's the proper way to update the existing public key on the server?
Given an algorithm (say, AES), how to create/generate test vectors? I have tried using the NIST test vectors for AES and found it to be working fine with a package of "chilkat". Suppose, for a certain algorithm, NIST has not provided test vectors, how do I generate test vectors to test the algorithm?
Reference forum questions and a couple answers posted on 10 December 2014 What are these unknown visits to my private, unlisted webpage? One of the answers contained this phrase: "Given the fact that they are hitting your page with another host name..." Here is my delimna. I have 2 websites, one that is about 1.5 year...
I’m working for a large organization which is using some Windows products that require python to work. Python is used to execute built in utility scripts and the user never recognizes that python is involved, Since the security requirements of the system are quite strict we are trying to lock down python as much as po...
So I'm running a long-standing role-playing game wherein the players' characters in the game are unknowingly working for another character who wants access to the data of the United States Intelligence Community regarding a particular topic and plans to have them excavate the ruins of certain key data storage facilitie...
We are using a third party payment service for our web users to be able to pay for courses. Once payment is completed however, payu attempts to connect to our site and run an IPN. However, they get the following error: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path buildi...
How do you make sure that in your environment, you have proper controls of your source code. For example, before deployment of any application, there must be approval from the boss and other parties. Do you have some products or solutions you can recommend to make this automatic? I also understand that sometimes, audit...
Ideally a security patch released by a vendor such as Microsoft for the Windows OS is required to be patched immediately. What would be the recommended patching period that Microsoft or best practices would require by which the systems should be updated? Microsoft as I understand releases patches every second Tuesday o...
The reason I ask whether HTTPS protects the metadata of your Internet activity from a wiretapping entity on the backbone like the NSA or not, is the following scenario: Say I am browsing the encrypted https://xsite.com/page.html and it calls to an unencrypted javascript library at http://ysite.com/library.js or externa...
This question has a follow-up question here: How to securely encrypt data with a public-private key encryption scheme, but also allow decryption if the private key is lost? TL;DR: Can I use plaintext passwords for a device which doesn't hold any sensitive data? No, because password reuse. Okay, can I use prehashed pa...
Recently IBM and Microsoft showed their interest (IBM post, Microsoft post) in utilizing bitcoin's blockchain for internet of things (IoT) development. Let's assume that in close future the blockchain technique to be implemented in smart cars overlaying road conditions or traffic data to each other. Bitcoin's Blockchai...
So recently I have been working on some projects one of them is keylogger and the second is SYNflood (both in python). I want to know if ,is it a good practice to use python language for such purposes? (Maybe you know from your own experience)
Due to stories like the following: https://hackerone.com/news/pink-panther (forced at airport customs to decrypt laptop) being more and more frequent, I thought of the following. What if you simply travel with a laptop where you encrypted the unencrypted parts in a LUKS FDE setup via a script and a live cd. Your entire...
I know that PKCS12 private key is protected by a password, but what is actually done with the password ? Does it use PBKDF to derive the key from password ? That would be a problem as if you change the password, the private key would no longer be the same. Is it like truecrypt volume, the password derives a key which i...
I understand PCI DSS 3.0 allows hashes of cardnumbers to be stored separately from encrypted values, but I'm startled at the efficiency of tools like hashcat in discovering card numbers from hashed data given the limited entropy. Since, for lookup purposes, a random salt is not an option (since often you only have the ...
We've established that, for all intents and purposes, HTTPS hides what page you visit on a given server from NSA backbone wiretapping, but not the domain itself. But that's only IP / domain correlation (across multiple domains), and nothing more. As far as I understand, that's not fingerprinting. I use the Tor Browser,...
Background: I want to try unprivileged lxc containers a try on my small web server (hosting 2-4 users). Since the server is shared among friends, we decided to separate our services from the machine using lightweight containers. We envision that each user will run a host of unprivileged containers for each service of h...
I own my domain and blog infrequently, when I try to access it over https I'm first shown a warning which says that the certificate isn't trusted. This is expected as I never configured SSL for my blog, when I proceed it takes me to a random site. I've attached the screenshots as people may be hesitant to click the lin...
Is there a way for me to set up DHCP so that only domain devices get an IP Address from a certain subnet, say 192.168.12.x, and other non-domain devices would be assigned to a different subnet? Edit: I'm currently running Windows Server 2008.
I'm writing a password manager for Windows which I want to protect against keyloggers. There is a timeout of 5000 ms for keyboard hooks. The hook procedure should process a message in less time than the data entry specified in the LowLevelHooksTimeout value in the following registry key: HKEY_CURRENT_USER\Control Pane...
I have four pcs connected to a switch connected to a router that gets connected directly to the internet. How safe is a NAS attached to the same router along with the switch plug? I'd like to have the NAS available internally but safe from any intrusion (it contains sensitive data). Edit: it was asked to add more detai...
Scenario: You are on Craigslist searching for cheap electronics and come across an add for cheap E-reader. It's a bit of a deal with about 20-40% off the retail price so you contact the seller and all seems normal. You meet up to buy it and while you are discussing the E-reader you want to catch the seller off guard (i...
Reading the API definition of SetWindowsHookEx, I see Calling the CallNextHookEx function to chain to the next hook procedure is optional, but it is highly recommended; otherwise, other applications that have installed hooks will not receive hook notifications and may behave incorrectly as a result. You should call Ca...
I have just finished reading "Why information security is hard - An economic perspective", the term asymmetric information is mentioned. An example in this paper mentions "The technical bias in favour of attack is made even worse by asymmetric information. Suppose that you head up a U.S. agency with an economic i...
I have not found a straight forward way to determine where a given cipher list supports PFS or not. For instance, how can I use output of: $ openssl ciphers -v aECDSA:aECDH:kEDH:kRSA to determine if any of the configurations supports (non) PFS based communication?
There is a requirement for users to remotely access one of my corporate servers from internet. Policy wise, i would want them to at least use 2FA for communication,eg VPN Tokens, password+SMS etc. However, i also recognized that some users may not have the budget to implement at least 2FA. Hence, would like to gather f...
What additional security can a "password minimum age" provide? For example: the user can change their password only after 24 hours have elapsed since the last password change.
I'm suspicious. I wanted to forward a port (80) on my router and noticed that port forwarding didn't work properly, it didn't work at all. So I replaced the router and again, port forwarding was not working. There are no firewalls running and everything is configured as it needs to be, the only thing not working is the...
It was suggested by some consultants that We relocate some of our critical systems in our environment to cloud base architecture. Besides knowing the fact that on a cloud base architecture we have no control over their infrastructure, what other areas of concerns must I look out for when putting critical systems to the...
I've tried to sign in to Samsung Cyber Service Center1. Since I'm from Poland, at first I tried Polish version of that service. I have entered a password, that has: 6 numbers in total (in three groups of two numbers each), 6 lowercase characters, 3 uppercase characters, 1 special characer, in following order: NNccccc...
I would like to know the risks of a python script that is outside of public_html application/scripts/myscript.py public_html This script is called by the php application asynchronously. it receives an argument that determines which file folder will be deleted after x minutes and after update the mysql database The fol...
In ISO27002 section 14.2.7 it sets out the requirements for outsourced software development. By Outsourced software development are they referring to bespoke software or does this also include off-the-shelf software?
For many reasons, it's often convenient for organizations to have their own CA (self-signed or otherwise). As I understand it, adding the CA certificate to a OS or browser will make it trust the organization's servers - but also open the door for the organization (or any attacker to access to the CA key) to impersonate...
This question is a followup question to Storing plaintext passwords for cameras - Security concerns?. In that question, I posed what I thought was a simple question, which actually turned out to have various security holes. Thanks to the answers, I've been able to fix most issues, except this last one... We're develo...
In the question Do any security experts recommend bcrypt for password storage? Thomas Pornin recommends the hashing function scrypt but saying it is "too new to be recommended on a general basis". Scrypt is from 2009 and I would like to know, if any problems have been found with this function, yet? Also I would like to...
Using for example ECDH and ephemeral keys, it is possible for two parties to establish a shared key with perfect forward security, i.e. even if the long term keys are lost, it will not be possible to recreate the key generated by the process. Is there a way of achieving the same result but with one directional messages...
My situation looks like this: I have to verify signature on document. For this I will wait when next CRL will be published to check that involved certificate was not revoked. But what if certificate ends (notAfter from Validity of certificate) before next update of CRL? Schematically: CRL publishing Signature creatio...
When thinking about which messaging solution to use on my new "smart"phone I reflexively tended towards open source products, figuring that I could trust these more to actually provide the security they promise. Now that I have decided which to use and installed the app from an app store, I have been asking myself: eve...
I have decided to set my sights on the OSCP Certification and, after reading multiple reviews I've decided to take Abraham's advice to heart and sharpen my axe. I have experience with Shell scripting, PHP and Perl, but no experience with Python or x86 Assembly which I've read are both useful items to brush up on. I've ...
As I'm a newbie in this, I'm unaware of the differences between making a scan using nmap -v localhost and nmap -O localhost? Any help would be appreciated.
I want to scan printer IPs in my organization. Is there authentic method? I am using Nmap. I have already checked some commands like: 1) nmap -O 10.10x.x.0/24 -oG - | grep printer >> outfile 2) nmap -p 9100,515,631 192.168.1.1/24 -oX printers.xm With option 2 I have obtained an xml file, but I don't how to read this ...
What could be the threats of having the ports open, after performing a nmap scan and identifying the open ports? I already searched for some answers for this question, but couldn't find anything specific. Is there any particular issue with each and every port or are those threats common for all of them?
Google has released a new form of captcha identification of bots, that asks the user to click a single checkbox. It uses image-based verification only if necessary. Could someone please explain to me as to how such a program differentiates a human from a bot? There is a program here that can perform mouse clicks on you...
I have created an online web app for my company. It's being tested for security files. The tester loaded the EICAR text file. The virus scanner on the server caught and removed the file. I have only allowed text, gif, jpg and pdf files for upload. How likely can a text file, image file have a virus? I know things chan...
What are features of a suitable tool for tracking and reporting security incidents? Is it a bad idea to have one central repository for tracking all types of incidents, from helpdesk issues, to security attacks, failures, power outage, and downtime? Or it is better to use specific tools for tracking specific types of ...
As an exercise, I am writing some code that accepts a list of possibly secret properties (e.g. user ID, password, IP address), adds a timestamp, encrypts it, and signs it. Here's a high-level overview of what the code does - does this look correct from the point of view that it should ensure secrecy and integrity? The ...
A particular server I need to interact with has an ancient or crippled sshd installed, and only supports SHA1 algorithms for key exchange. From information in the Snowden documents, I am leery that keys exchanged with servers with weak key exchange algorithms may be intercepted. I keep a separate identity that I use wi...
I plan to create a 4096 bit RSA&RSA key pair: gpg --gen-key --personal-digest-preferences SHA512 --cert-digest-algo SHA512 Is there any difference in generated key quality between versions 1.4 (classic), 2.0 (stable), and 2.1 (modern)? Background: I consider creating the key on a cleanly booted Debian stable live syst...
To train the development team, there are various options one can take: inhouse presentation with code samples, CBTs so developers do it at their best time, instructor-led courses onsite or inhouse (expensive), using knowledge bases like https://owasp.teammentor.net/teamMentor We sent a developer to a very expensive co...
Who first formulated communication security in terms of the "man in the middle" attacks? I am writing a book on the history of computing and communications. The earliest source I have so far is: Larsen, Gerald H. “Software: A Qualitative Assessment, or The Man in the Middle Speaks Back.” Datamation 19 (November 1973): ...
Is there any risk, if a database of U2F device key handles are leaked? Enrolling a key works by: Send Enroll request with "AppID" to U2F device. U2F device answers with "Key Handle, Public Key". Authentication works by: Send Auth request with "AppID, Key Handle, Challenge" to U2F device. U2F device signs this and ret...
I need to know how to properly secure my consumers credit card info without buying expensive certificates? It is possible to use https:// and ssl or tls without an certificate and without scary warnings from browsers ? If yes what is the safest way ?
I'm curious if anyone knows whether the upcoming Let's Encrypt initiative would effectively require SNI. What I mean is, with the proliferation of the cloud, almost every web-site owner, even with the smallest possible web-site, has their own IPv4-address. However, every such owner may have several unrelated web-sites...
I am using windows server 2008 R2 and I have lot of customers who use windows XP,7 and 8 with some of them still using IE6. So now I want to disable SSL3 and enable TLS 1.1 as a security measure for POODLE vulnerability. But I have some doubts on this. 1)Should I enable TLS 1.1 in IE or using registry as mentioned her...
GitHub recently improved its SSL setup by removing RC4 support: To keep GitHub as secure as possible for every user, we will remove RC4 support in our SSL configuration on github.com and in the GitHub API on January 5th 2015. RC4 has a number of cryptographic weaknesses that may be exploited, impacting the security of...
I'm working with iptables in order to close one or two open ports. So I tried this rule in order to change the default policy. # iptables -A INPUT -p tcp --dport 3333 -j DROP Then I checked the policy using iptables -L -n -v where it showed the port which was dropped. I don't have a basic understanding on how does the...
I've been trying out the new ECC keys that have been added to GnuPG 2.1. I created a primary key, then added an ed25519 signing subkey. So I know get this: ➜ ~ gpg2 -K /Users/jonny/.gnupg/pubring.kbx ------------------------------- sec brainpoolP384r1/0x4E8DDC0EDE5D23A6 2015-01-09 [expires: 2016-01-09] Key fin...
There are four general cross-site request combinations security-wise, and I want to know whether ysite.com, in each case, knows that the reason I downloaded one of its resources was because I was visiting the specific URL that referenced it (xsite.com/page.html), or if not the specific URL, the site / domain perhaps: ...
I have decided to finally replace the closed source and privately owned Google Chrome with the open-source Chromium on my Mac OSX 10.9.2 (Mavericks). I have read the differences between both here: And the article suggests that in Chromium, unlike Chrome, not always the Sandbox feature is enabled (and to open "about:sa...
As software becomes more and more complex it's harder and harder to keep it secure down the entire line. Discussing this problem with a friend we were opting some pretty extreme solutions and wondered whether the following is done anywhere (presumably in companies that would also air gap at least parts of their infrast...
I suspect that my messages via Viber are being sent to another person - because to my mobile have access a lot of people and it could be possible that somebody installed there some software or configured it somehow to send my messages to another person Is there a way to sniff this application and find whether my packa...
On my way to Microsoft to download "security essentials", I noticed that the download page isn't a secure site. Is this legitimately the case, or an indication that I may be compromised in some way? (Some kind of name resolution hijack?)
Take a PDF, copy all, paste it into a .rtf document in textedit, --> make plain text. will this remove/nullify any malware from/in the pdf? In other words, if I open the PDF on one machine and convert it to plain text as such and then send the plain text file to a new machine, the new machine will not be at risk?
I received a key transition statement because somebody found himself in the exact same situation described here. This issue will target more and more OpenPGP users in future, probably even all of them. Instead of only replying in a private message, posting it as a Q&A seems more reasonable. Somebody wants to attack me,...
This question is a follow-up to a comment by Tobias Kienzler to an answer to "What is the purpose of the “Password minimum age” setting?". Consider a password policy that new passwords cannot be identical to the current password or any of the user's five passwords that precede the current password. Nor can they be simi...
I want to use a strong authentication scheme, so I decided to use PBKDF2. I'm using PBKDF2 with SHA256 algorithm, 5000 iterations and I use username (which is full email address of user) as salt. So every user have a unique email, their email address is their identifier. So when they enter password, I'll use PBKDF2 wi...
What should I use as a secure/strong salt for PBKDF2 hashing when salt is not available to use before login as it will be client-side javascript to hash user+pass with PBKDF2 ? I'm going to use sha(user+pass) as salt for pbkdf2. If I use a random generated salt, I should store it in DB, but when user wants to login, us...
The ssh private key file, stored under ~/.ssh/id_rsa in many *nix distros, is typically owned by the user, allowing any program invoked by that user to read the file, and perhaps upload it to a remote server. Is this accurate? Are there examples of malware known to have done this? How common is this?
I currently have a WordPress website that has been updated to latest version 4.1, also latest theme installed. The problem is this SAPE Russian link network that is injecting malware code into the footer.php. Have found the main source code under.. images/cache/'._SAPE_USER.'/cache.php' I delete the file, even set no w...
I have just started interviewing for new computer job after years of working from home. At home I feel very secure with how I protect myself from data loss and keeping my secrets secure. I backup both of our computers with the awesome-four-dollar-a-month CrashPlan, and, in addition to my programming projects, I use Bit...
I was looking at some code on codereview that is far out of my league of understanding and just screwing around, but it raised a question. This program (along with many other encryption programs, i assume) uses a keyfile. Now, if I use /dev/random as my keyfile, it'll (theoretically) never be the same. Therefore, I cou...
Recently I've been working on creating a self signed CA and had some success. Now I have a working CA with valid CRL server. The root CA has been deployed to all of my devices and had no problem. But I have a question, I would like to sign SSL certs to display the green bar like other commercial EV SSL products. I loo...
I am looking at IDS (intrusion detection sensor) logs where some one tired to get a .css sheet through a URL. Ex: www.site.com/CSS/Main.css - which throws a CSS sheet in the form of text file. Is this allowed for any user or something to concern ? I don't have much knowledge on these, so any help is appreciated. c...
First, sorry if my issue is a duplicate! This is an exercise that I can not solve. It is an authentication, simply. But the problem is that the application does not check both the password and nickname. A code is worth a thousand words: if ( isset($_POST) && (!empty($_POST['login'])) && (!empty($_POST['password'])) ) {...
I am learning about the Web of Trust and how to use it. However, I have some issues to fully grasp the concept of Signatory Trust. What is an easily understandable definition of signatory trust? An example would be very helpful.
I often log into X as normal user (of course), open terminal and switch to root: su - I have then a terminal owned by user but effectively with root privileges. Are there any security issues in this situation? Can a malware/exploit running under normal user potentially get access to the root console (possibly by expl...
I've seen that virtual machines in virtualbox or VMware can be encrypted so that no one on the outside can access the disk, ram or CPU cache since the entire hardware is emulated and encrypted too. I'm wondering if this is possible with a java environment. I want to make a secure java computing environment that cannot ...