instruction
stringlengths
24
27.2k
I have sometimes run into a situation where I see a root CA certificate which is set to expire sooner than the intermediate CA certificate. My question is - if you were interested in keeping your intermediate CA active, and needed to update it to reference a newly created root certificate, what about the intermediate...
Assuming I have created an email in hushmail through of tor, and if I use it as my official email in a site such as Github. Will it throw my anonymity away as I use github from a regular browser?
Startcom issues client certs. I'm using mine for seamless authentication in nginx as follows, in somewhat the same manner as was suggested by this Q/A: server { ssl_certificate /path/to/my/webserver.crt; ssl_certificate_key /path/to/my/webserver.key; # concatenated Startcom ca-bundle.pem and sub.class1.cli...
Occasionally I need to generate a password while working at the Unix command line. I have the following alias in my zshrc: alias randpass='openssl rand -base64 32 | tr -d /=+ | cut -c -30' These commands generate a string of 30 alphanumeric characters by doing the following things: Use OpenSSL to generate 32 bytes of...
I'm setting up some externally accessible services for a small business, and evaluating some of the different options I have. This is all new to me. I have found the question, "is this secure?" to be very vague and misleading. So, to weigh the pros and cons of these options in terms of security, I am trying to divide t...
Is there any drawback for creating a separate AD forest for external users of organization to authenticate them to access some web applications? Is there any performance and synchronization issues when the number of external users reach over 20,000 or 50,000? Is it a bad idea to create a separate domain and authentica...
I am new to Google Authenticator mechanism. I have gone through the basics of mechanism but I couldn't understood the logic behind it to make a connection to the Linux machine. I have a Linux machine which has no Internet connectivity and its stored in an internal network where 'n' number of people will access the mach...
I had a requirement of rate limiting and dynamically access controlling access to web application dynamically I want to be able to rate limit access turned on / off dynamically black/white list certain IP dynamically certain request pattern needs to be blocked (this decision needs to be taken dynamically) for each of...
Intel SGX is an intriguing new technology that will ship as part of upcoming Intel processors. It is designed to enable running software in a secure enclave. Code running in the enclave will be isolated by the hardware from untrusted code running on the same processor, so you can execute security-critical code in the...
I'm teaching myself a touch of the most basic information security while toying with web dev, so that I can get a better understanding of the whole picture. Let's assume my website has user accounts that have nonzero personal information stored in them. Is it ever appropriate to store session IDs associated with this c...
I recently came across an old website of mine that I had used the PageProtectionPlus MediaWiki extension to encrypt parts of. I'm curious to see what I wrote, but the extension is no longer supported and incompatible with updated MediaWiki and PHP. So I have to decrypt it "by hand", as it were. All I have to go on ...
Suppose there is an evil Google administrator who has full access to every server or network at Google. Will such a person be able to abuse the Google Authenticator technology to gain access to non-Google services which uses the Google Authenticator technology for access? In other words: Suppose I setup Google Authenti...
With port knocking, you have to "knock" on specific ports in defined order to expose a port on which service is running. How about password knocking? For example you have three passwords: A, B and C. None of them is correct by itself, but entered one-by-one in this order they will grant you access. Some scenarios to ma...
I'm involved in the development of a SaaS application. We host the application for different customers. A customer is a company. Each customer gets access to their hosted instance of the application via a URL https://example.com/customername. We already got one instance where a customer tried different other companies ...
I am wondering how PuTTY stacks up against other SSH implementations with respect to scrutiny and security of its SSH2 protocol implementation. PuTTY is probably the most-used SSH client on the Windows platform, so its importance cannot be understated. I am aware that there have been several very crafty attacks in pa...
I don't see how they're different then hash functions. Couldn't Alice use Bob's key to produce a MAC and send the message to Jim.
Oracle presents a fairly restrictive password policy: Passwords can be from 1 to 30 characters. The first character in an Oracle password must be a letter. Only letters, numbers, and the symbols “#”, “_” and “$” are acceptable in a password. These kind of restrictions pass through to web applications sometimes - ei...
I am using proxpy, a proxy server written in Python. It comes with its certificates and after installing one of the certificates in Firefox, I got 'Connection is untrusted'. Any help in this regard would be greatly appreciated.
I'm a developer and I'm implementing a socket connection with SSL (using javax.net.ssl.SSLEngine). For testing I'm opening connections to arbitrary HTTPS servers on the Internet to see how the handshake process proceeds after opening the connection and before closing the connection. My question is about the handshake j...
So you get a raw image of a compromised system and then you load it on an application suite like Autopsy. If the system had some kind of malware, could it spread to the operating system in which Autopsy is installed? I mean basically for loading the image, not because there is some vulnerability in the application itse...
How can i share internet over WiFi. I am bad at using commands is there any easy way?
There has been quite a bit of concern noted relating to the recent discovery that Lenovo are pre-installing a piece of Adware (Superfish) which has the capability of intercepting SSL traffic from machines on which it is installed. What are the security risks of having OEMs or other companies installing this kind of sof...
Referring to this PCI DSS 2.0 and ssh keys I want to ask Is this PCI section 8.2 only for individual users or also valid if a user connects via ssh to a root account? I prefer to ssh root@localhost instead of sudo, because you once unlock the key in ssh-agent and then can do passwordless actions on multiple servers. ...
I want to know technical details about how public PGP keyservers synchronize the keys. If I send my key to one keyserver, how exactly does it "travel" to all the other ones? Who sends it to who and how? What would I need to know it I wanted to write my own public key server software from scratch? I am trying to look f...
I am the system administrator of my local computer (Windows 7) and I am unable to write to an external hard drive if it is not encrypted using Bitlocker to go. The local computer is not encrypted and I have searched for a way to turn off the need for encryption, but have been unsuccessful in finding an answer. Any help...
If I have 2 websites, a.example.com and b.example.com. Those sites use TLS and SNI, and require client authentication with certificates created with my own CA. The use case is that some clients have access to *.example.com, other clients have access only to a.example.com. Is it possible to create a certificate so that...
I develop a lot of internal applications/websites for my work using our standard SSO. It uses SAML2 and has a few different levels of security available. We have vendor who is using it for one of our internal CMSs. Basically you have to sign into SSO every day to access the site. You are just required to meet SSO au...
So I am trying to figure out what the packet payload is off of a possible TLS HeartBleed alert from my IDS. I have read that Wireshark is able to do it with some certain keys, but isn't that in real time (ish). Would I be able to put that capture into wireshark if I can use the certificate from my server? I believe it...
After months of logging, I have collated a list of rogue IP addresses trying to perform SSH brute-force logins, send SPAM, hack Wordpress admin logins, upload spammy links, etc: SSH logins SRC Count 222.186.15.202 121 115.231.218.23 114 218.77.79.43 97 103.41.124.60 80 61.160.224.128 47 ... So far ...
The site has already a discussion of the security risks of "Superfish". It seems to me that anything that tampers with the bits of one's connection is bad. If it tampers with TLS connections, it is evil. How can I determine if I am vulnerable to Superfish? Lenovo has issued a statement on Superfish (after they got caug...
I am working on a website and would like to have it under revision control. I have used git for earlier projects before and I like it. This project though is a website written in Django. I am totally for open source, but I am wondering if it would be a bad idea to leave the source code for the website public, so that s...
Answers to Why is HTTPS not the default protocol? state that a lot of sites still use clear HTTP instead of HTTPS because all of these are true: A substantial number of visitors to the site use Internet Explorer 6, 7, or 8 for Windows XP (IE/XP). IE/XP can see only the first certificate on port 443 of a given IP addre...
I'm not sure if this is the right medium to ask this but I'm looking for pointers or if this is being done. I realize that this is still a bit of a open question. When internal network holds critical data and control software/hardware, airgapping is the norm. But as we've seen in Stuxnet/Flame and their siblings, it ha...
I've just read the RFC 4880 specs and there is nothing about OAEP; only PKCS#1 v1.5. If it is true that the OpenPGP-standard only supports the PKCS#1 v1.5 padding-scheme, is this a security issue? Usually it's said that you should not use PKCS#1 v1.5 anymore or just for legacy reasons because it allows padding-oracle-a...
I'v succesfully configure and test character String signin usign Java and HSM Luna SA through PKCS11. My question is, In wich processor cryptographic operations are perform? In wich way HSM Luna could speed up masive signing.
How to test if I'm vulnerable regarding CVE-2014-3515? My vendor supplied me with a patch and verified that it installed however I would like to verify that I am no longer vulnerable. My vendor currently does not provide any instructions on how to do this. I am working with a Linux platform.
I'm pentesting a client's website but could not find a syntax to tell SQLMap that the variable it should test doesn't have an explicit name in the URL. I've already tried the MVC method that says to use * (asterisk - did not work), but this is a little different. Instead of: http://web.site/index/aksjdnas it is in the...
I am in the process of developing an application for an organization, and am looking for a sanity check on my strategy, especially given the the nature of the SuperFish nonsense that was exposed. The users are on a windows domain and the desktop application will be deployed as a ClickOnce application. These deployment...
In situations where the consumer doesn't trust/control the workstation and the network, can consumer safely do potentially sensitive activities (like making a payment or transferring confidential documents) over the internet when HTTPS is used? For instance: when I use my employer's computer and am on the company netwo...
I'm working on a program that downloads and analyzes historical stock data from Yahoo Finance. I download the data in my program by using the wget command. I have a list of about 3,000 stock symbols and the .csv files for each one are downloaded twice (for weekly and monthly data). Could Yahoo flag my large amount of w...
I presume that the main reason phone operators require a SIM card to get access to the network is due to security and/or authentication purposes. Just wondering why this is? What does a SIM card do that a phone can't? I imagine a SIM card is just data storage right for either some data or some algorithm that generates...
I would like to examine the Lenova/Superfish root certificate being used in the wild. I've worked through articles like Lenovo PCs ship with man-in-the-middle adware that breaks HTTPS connections, and looked at similar questions like How to detect if I am vulnerable to “Superfish”, and how to remove it? and What securi...
I'm not asking about bitcoin's design...but am interested in the hashing capacity of a bitcoin miner. To be short: do bitcoin miners(or some of them) accept customizable inputs and hash them in bulk(instead of accepting some more high-level instruction and do mining works automatically)? The real question is, I've rea...
Given some JavaScript which modifies the page's title by taking in variable data document.title = someVariable I am looking to address dom based XSS while keeping the title fairly readable. Therefore, doing something like escape() or encodeURI() will not work. I do not necessarily have control over how the document.t...
Robert Graham detailed on the Errata Security blog how he was able to get the private key of the Superfish certificate. I understand that attackers can now use this key to generate certificates of their own which will be signed by the Superfish CA. Won’t the same attack work on other root certificates already on a comp...
Is it okay to store single-use beta keys in plain-text in the database? I'll be pre-generating and storing about 2M keys. The keys get passed around so that people can sign up with it, rather than let random people sign up. The only bad thing is that if someone could steal all the beta keys with a db dump, if that ever...
I have public WCF web service which works over https. There are lots of technical restrictions on client side, so I can't use any advanced schemes like oauth. I have registered users and some of them can access WCF service using their credentials. Should client pass credentials with every request or I can design login ...
I would like to have general infos about crypto and commom SIM card in mobile phone(I know there may be different implementations, technos according to the operator...). Is crypto used only for authentication ? Is crypto used also for encryption ? symmetric encryption ? I heard about a private key embedded in it for ...
I am implementing a webserver and the guideline I am following suggests: - to create token by a Serializer that takes the IdUser, a symmetric key and an expiry date - provide it to the user but not store this token in a database - to check a request with a token by decrypting the token by the same symetric key, check t...
I have searched the web a numerous times but haven't found an explicit answer to my question. I've studied (at school and on my own) computer networks for 2 years, doing active programming for 4 years now and am willing to move a step forward. To make the question short. Can I do efficient network penetration using Win...
As discussed here, a DNS leak is where DNS lookups ignore your current routing (in the example of a VPN connection) and still end up going out over your normal internet connection. This can obviously lead to the anonymity provided by the VPN (in this example) being undermined and thus tools like DNS Leak Test and IP L...
What is WebRTC and what is it intended to be used for? According to this Browser Leaks Test for WebRTC and IP Leaks, I am currently leaking IP information for IP addresses that I do not believe anybody on the internet needs to know, ever. I installed a plugin for Google Chrome (WebRTC Block) which apparently disables ...
I want to use a hybrid encryption scheme for file encryption. The scheme must use PKCS#1 v1.5 – which is vulerable to padding oracle attacks – because many smartcards (e.g. the OpenPGP Card) only support PKCS#1 v1.5. So I came up with the following scheme (the RSA-keys are 4096-bit large, the symmetric algorithm is eit...
Reason for this question: This article regarding NSA / GCHQ SIM Hacking) states some manufacturers of SIM-Card have been hacked to steal SIM-Card "Ki". I want to know the likelihood of the SIM-Cards I deal with being compromised. Is it possible for me to identify the manufacturer of a given SIM Card? If yes: How? EDIT...
I am looking for a handy cheat sheet/cookbook recipe for how to locally generate a solid Certificate Signing Request in OS X (10.9; Linux would be of course similar if not the same), that I can use to purchase an SSL cert for my website. I have seem some options out there on the web but haven't seen good rationale for...
In the enrollment stage an attacker could intercept the message and answer with a signature based on the correct challenge. I know that normally you include a symmetric secret in such a challenge, but here there is only a random value which will be signed. I do not see the advantage of using this scheme. I think you ca...
I'm receiving spam emails that, looking at the email headers, appear to be coming from a variety of computers around the planet. They're always the same type of email that contains invalid URLs inside of HTML IMG tags. I've set Thunderbird to never show images, so these URLs are (I assume) never passed to the network c...
Let's say that I'll download an installer for a program on Windows and the publisher has released PGP Signature for the file. The installer file does not have any code signing certificates. If I connect to the publisher's website with https and check that the URL is correct, do you think I should still verify the hash?...
I am working on this matter as a graduate, but I need some help. how can extract a valid digital certificate to put it on other program? can I put a digital certificate on other executables and be valid? I tried disitool by Didier Stevens: disitool.py extract signed-file signature But it is not a tool to digitally s...
I'm new in the Network world so I'm still trying to figure things out. I have a server with an IP address like 192.168.1 etc. There is other devices that communicate and share information with the server, all of them are DHCP enabled and the IP address is also something like 192.169.1.etc. but sometimes they reset afte...
My Situation: I am creating a web application with PHP which allows users to scan their files for viruses. It allows the user to upload their files via the html "file" input type or via a URL. I have successfully built the html and PHP side of things and users are able to successfully upload files onto my server. I am ...
I've noticed some suspicious activity in my webser logs: 188.165.66.110 - - [20/Feb/2015:03:58:28 +0000] "GET /?x=()?x=()?x=()?x=() {:; }; echo Content-type:text/plain;echo;echo;echo M`expr 1330 + 7`H;/bin/uname -a;echo @ HTTP/1.0" 301 178 "() {:; }; echo Content-type:text/plain;echo;echo;echo M`expr 1330 + 7`H;/bin/un...
Apache Tomcat has the ability to use the TLS Session ID instead of a session cookie or JSESSIONID in the querystring. My site is HTTPS Everywhere. This seems useful in that I don't have to worry about session cookie theft, and can use sessions for user agents that don't do cookies. Am I immune to Session Hijacking / Se...
So we're trying to prevent brute-force attacks on our web server login page--currently we just do IP-based locking if x failed attempts from IP address Y occur over z time period. After a security review we realized that we might be locking out users sharing an IP, which the OWASP article on the subject confirmed is a ...
There isn`t a clear, step-by-step explanation about Superfish adware here, all questions and answers are kind of specific for different aspects of it, but nothing in general. So, how Lenovo's Superfish actually works under the hood when it comes to it's MiTM SSL part? How the encryption is bypassed and the authenticity...
Let us say your web app is sanitizing bad input and displaying the user what the bad input was. Before XSS measure was put in place web app is spitting out malicious script as is. For example Bad address value : <script>bad script goes here </script> Now after careful sanitizing output could be something like this. Bad...
I have a Thompson TG585v7 router/firewall whose firewall is configured to FORWARD several ports to a computer X54 within the LAN. These ports are in the range 1024 through to 2500 That X54 computer is now gone and so there is nothing "listening" on those final destination ports If I use scan the firewalls public IP...
On my request, a developer gave me a new version of his Android app to test. The app requires root permissions. I do not know the developer personally. I have no specific reasons to trust or distrust him/her. How can I check the APK to best ensure it is safe? Virustotal is a common site to check files, but it's uncl...
There's been lots of talk about the allegedly improved encryption in Android 5. Some questions about this: What is the maximum length for passphrases? (i.e. is it still limited to 16 characters?) Can you have separate passphrases (or PINs) for encryption and unlocking? Considering that only the /data partition will ac...
This article: Life in a post-database world: using crypto to avoid DB writes Prompted me to write this url-crypt Node.js module to convert a Secret into secure urlsafe base64 strings. Think of an email verification link that doesn't need to store it's data in the database. Or, a JWT token whose claims are secret ins...
Today I encountered something I have certainly not seen before first hand. Our IDS blocked some outbound traffic attempts from 5 servers with no WAN access. This traffic was leading to an inactive address hosting a nonexistent wpad.dat file. 208.91.197.132/wpad.dat is the address and file. These devices do not use DHCP...
Malicious request can come in the form of user agent string, referrer or cookie. To prevent being pawned by zero day attacks such as Shellshock, I have created a whitelist of characters for user agent string: a-zA-Z0-9,.:;?/ ~!@()+_- Is the above useful and effective? Also, does anyone have a list of acceptable charac...
How can I change the default symmetric cipher used by GnuPG from CAST5 to another? I'm using GPG4Win on Windows, but would also be interested in a solution for Linux.
I've been working with WPS assessment tools like Reaver and Bully for some time and i could successfully crack my router's PIN code and find its password on both QSS PBC and QSS PIN code. when each of those options was enabled on my router, it appeared in the scan results of WASH command in Linux as a WPS-enabled route...
As long as I know, the encrypted PDF files don't store the decryption password within them, but a hash asociated to this password. When auditing security, a good attemp to break PDF files passwords is extracting this hash and bruteforcing it, for example using programs like HashCat. What is the proper method to ext...
I have a Windows 8.1 Lenovo laptop. The evil Superfish app and certificate have been removed. My laptop has 36 certificates in certmgr.msc current user\third-party root certification authorities\certificates. Is there a way to know if a certificate might be malicious or compromised? Since certificates are so import...
Currently all of the network is using PKI standards and we are facing many problems. I don't mean every time and if new technologies arise we will also have to face the same, but for my curiosity. Are there any alternative technologies available which completely don't use the approach of PKI?
I am using rdesktop client on Linux to connect to windows machines. If some of these machines were compromised by some evil malware/virus/worm/trojan, is there any way for the malware to "jump" to my computer over the rdesktop connection? I have always thought this is impossible, but recently I have read that similar t...
Assume that I don't have any Internet access in my country. The only thing that I have is a mobile phone with a 3G or 4G SIM card inside. The mobile operator didn't provide any Internet access also. Now I want to send some data (Text/Voice) to my friend in another country. Is there any way? How I can do it? And if I wa...
I am new to computer security. I was wondering what an experienced information security user would do when inspecting a file for potential download. Obviously, it would be very difficult to look through all of the files that download and all of the source code (the package is open-source). How does one know what to dow...
I tested their server using https://www.ssllabs.com/ssltest/ and, apart from the disappointing "B" rating (it handles financial transactions, after all), the server only allows the following two RC4 cipher suites, both of which are considered weak: TLS_RSA_WITH_RC4_128_MD5 (0x4) WEAK 128 TLS_RSA_WITH_RC4_128_SHA (0x...
I am testing/setting up a Thompson TG585v7 router/firewall. Results when running nmap from a computer INSIDE the LAN $ sudo nmap -O 210.86.xxx.xxx Starting Nmap 6.40 ( http://nmap.org ) at 2015-02-22 10:55 NZDT Host is up (0.0049s latency). Not shown: 995 filtered ports PORT STATE SERVICE 21/tcp open ftp 23/t...
What I'm about to say is probably going to make me look like an idiot but it's better to be wrong and learn than have unanswered questions. Ever since I started dealing with passwords I wondered what the big fuss about hashing passwords is anyway, since if somebody got a hold of your database they could find out any pa...
Can you detect a keylogger when it is placed? Would it be possible to do that via a keyboard removed event, expecting the keyboard is not removed regularly? So that you for example get a pop-up/alert every time your keyboard (wired) is unplugged and the end-user has to approve that he/she checked if there was a keylog...
There is something that I can not understand. If you are preparing, building up an attack from a public place (coffee shop, restaurant ect.). How can you be tracked by law enforcement? I'm asking this because the public IP address will be the one from the public place (sub-network) from where you are performing the at...
Suppose I, as an iPhone owner, have enabled Control Center access from the Lock Screen, and I have enabled the GPS features, to be able to trace the phone should it be stolen. Why did Apple engineers put the Airplane Mode button in the Control Center? If someone steals the phone, they don't need to know the password to...
Can a wireless (bluetooth) headphone store data? Also, if it can, then can someone put malware in it? I assume that the device must necessarily be able to store some sort of data, since it has buttons for skip and pause songs and buttons to change the volume. So it must contain some software to do this built inside it...
Is it enough to use only SSL/TLS for client-server application with authentication, registration and data transmission (like chat)? If it is not what I also need to use?
I am studying digital forensics and have been working with both AccessData's FTK and Autopsy to analyze disks for different assignments. I keep hearing that Autopsy findings should not be admitted in a court of law due to a lack of proof of reliablity, integrity, etc. This is bothersome, as I find Autopsy to be the b...
I found several lines of this request in my web server access log: Source IP Dest IP Request Stat User agent 217.172.190.19 1.2.3.4 POST /?cmd=info&key=a7aa3875fc4422ca78f7b4216205b9a5&ip=1.2.3.4 HTTP/1.1 200 Net-Worm.PHP.Mongiko.a Tried to Google,...
I have a system that uses openx for serving banners. I have recently noticed that several cache file in /var/cache contain infected code. The code contains sql queries that create several php files in the filesystem. These files are web shells that contain code that enables an attacker to execute operation system comma...
The following mutual authentication protocol has been designed to be resilient against reflection attacks. This is done by ensuring that the challenge from the initiator looks different from the challenge from the responder. Msg1 A → B : I’m Alice,R 2 Msg2 B → A : R 1 ,{Bob,R 2 } K AB Msg3 A → B : {Alice,R 1 } K AB Su...
I know that OpenSSL requires the CSR to be signed for a reason: to assure CSR validity, the fact that it was requested by the actual private key owner of the attached public key. It is absolutely fine, but in theory a CA can assure validity in other ways, especially when the CSR is never in transit. This is the case wi...
My Girlfriend has a years-old laptop from lenovo. I checked it over and wasn't surprised that the Superfish / Komodia Root CA certificate was not present. However I found some others that appear to be similar in function if not purpose. There's keys which appear to have been installed by Avast anti-virus and Skype, b...
I have a system that needs to send a key to the user. This key is used for validation after work and needs to be shown that we do not change it mid-work so we send to the user in the middle of work a hash using SHA256 and after the work is done we send the real key and the hashed key so he could check if the key was th...
Let us say I have a volume encrypted under LUKS with a 512-bit key. That would mean there are 2 ^ 512 possible values which the key may be. Now I need a passphrase which is at least as resistant to brute force as the actual 512-bit volume encryption key. Correct me if my assumptions below are wrong, all numeric value...
Let's assume ssh key brute force is unrealistic. It seems to me your greatest vulnerability would be someone gaining access to a client filesystem. If that's the case then key loggers and a host of other nasties are possible, making a passphrase a minor obstacle. Is key bruteforce actually unrealistic? If key brutefor...
There have been cases where a photo's meta data was used to track people who posted the photo...Is this the same with audio? Is there a way to wipe this meta data? Also, what about when this audio is uploaded to Soundcloud or Youtube? Is the meta data only seen by Soundcloud because they convert it to their format, or ...
I'm working on an embedded project that needs to communicate with a server. Both the server and the device have an AES key pre-installed. I have a network device that provides http services but not https. My proposal is to AES encrypt the data in the body of the post command. Given that I have the IP of the server,...
A more general question How do bots communicate in the Zeus botnet? doesn't really address my question. I'm trying to understand how a bot can communicate with command and control (CC) machine. On a technical level, I know bots use sockets (for example), but I really have no idea how the CC can send commands to a bot/...