instruction
stringlengths
24
27.2k
For a Diffie–Hellman (D-H) key exchange (TLS) the server generates a prime p and a generator g, which is a primitive root modulo p. When setting up a webserver with SSL/TLS (e.g. nginx) one can use a directive ssl_dhparam dhparam4096.pem The dhparam4096.pem file can be generated using openssl dhparam -out dhparam4096.p...
When generating a 4096 bit RSA key pair, do both the private and the public key always have exactly 4096 bits, thus do not start with a 0 in binary representation?
Tools in Kali Linux generally crack Wi-Fi password by injecting packets. Is there a tool that can crack or get the password only by capturing the traffic?
I am following instructions as shown here Operating Windows 7, so have downloaded GPG4WIN. Next instruction: is to enter this command: $ wget -q -O - https://www.kali.org/archive-key.asc | gpg --import So, newbie here, ...am I to enter that into Command Prompt? When I do I get error message: '$' is not recognized as a...
Can someone trace the MAC address of an email to the point of origin if the email address has been deleted? I received an email from an unknown sender regarding an issue at my work, and when I tried to reply to it, I got a "message send: failure" email from my email provider. This tells me that whoever sent me this mes...
Email addresses can be hacked or perhaps even spoofed. I need to pay individuals via paypal and I fear that over time people's email will change or become compromised. How can I ensure I am paying the right individual? If I ask them to give me a personal password and in return I give them each a unique public key, will...
Is there any query that I can use to know which SQL platform a website is using ? ( Oracle - MySQL - MSSQL - PostgreSQL - Ingres.... )
Running below command in as admin from Windows : C:\Windows\system32>netsh wlan show profile name=MY_WIRELESS_NAME key=clear Outputs : Security settings Authentication : WPA2-Personal Cipher : CCMP Security key : Present Key Content : PASSWORD_OF_MY_LAN Outputs the passwo...
I've heard that encryption program, Truecrypt can create a hidden encrypted drive within an encrypted drive; and even if an attacker accesses the first encrypted drive he/she cannot prove the hidden drive exists. I'm not sure what you call this model of encryption security. Are there any password managers for Linux tha...
Recently, I've started a my educational project WAF as service. To develop this project as per my view, following things are required: Web Application Firewall is in-line with the web servers; it intercepts and inspects incoming and outgoing traffic, preventing attacks from reaching the web servers and preventing the ...
I want to evaluate a new antivirus product which obviously hasn't undergone the tests by known test labs. So I want to measure its performance in different aspects and come up with common comparisons and measurements that are available for popular AV products. My question is that, are there any formal or standard metho...
With arguments expressed in this answer, there is a few seconds delay between user enters an incorrect password and when he/she actually learns, that password was incorrect. This security solution is implemented in an operating system (here an elementary OS) and in console commands like sudo etc. Should I implement the...
I'm getting dirty and filthy mails send from past 2 years in my GMail account. I tried to ignore it, but it is getting filthier day by day. I need some advice and help.
In order to secure its public HTTP API (so called REST), my client is asking me to implement a simple HTTP reverse proxy that will verify (OAuth 2.0) access tokens and forward HTTP requests to internal web services for processing. The idea is that my client has "strong" network level security: the various web applicati...
I have an opened SMTP server that allows me to send emails. The problem is that I can send a massive amount of emails (80,000+) to a specific mailbox and block all the other legitimate emails (that are sent to other mailboxes). The specific mailbox is validated by size. However all the rejected emails that are sent af...
A bitcoiner trying to understand the nation-states. When I use my eID (I'm swedish and I have 'BankID'), and I sign something with my private key that's in the 'eID-file' that I've got on my laptop, how does anyone know that the public key I generate is linked to me ? I can sign something right now using my mobile ID,...
I'm pretty sure that we have malware code in our WordPress website - Here is the code in question, it is located at the top of every php file in the website; { $ua=strtolower($_SERVER["\x48\124\x54\120\x5f\125\x53\105\x52\137\x41\107\x45\116\x54"]); if ((! strstr($ua,"\x6d\163\x69\145")) && (! strstr($ua,"\x72\166\x3a\...
Presumably all unencrypted email is available to federal agencies including IP addresses, header information, and email content (eg, through SMTP with or without SSL and TLS -- thunderbird has an SSL/TLS option so it is not clear whether TLS will be used anyway, depending on the mail server). If PGP encryption is used,...
All machines from my network should have BitLocker successfully applied to them. Is there a way that I can remotely query the machines to see if: Bitlocker has been enabled, Bitlocker has fully encrypted the drive. Ideally I am looking for a way to do it without admin rights.
There are around 200+ nation-states on the planet. Most of these use eIDs. Do any of these nation-states have a public API to verify digital signatures? Example: Nation-state Canada issues a eID to Alice, through Canadas CA (certificate authority) Alice signs some legal document using her eID. Bob owns a service that n...
I am currently running a setup that interfaces with many appliances running HTTP servers (running on Windows Embedded). The connections I use are HTTPS connections. My problem is, every time I open the web portal of those appliances (simple HTTPS servers that display some info), I get a "There is a problem with this we...
I am currently exploring Nmap for its capabilities. Can anyone tell how can Nmap be used to query the machines connected to a network switch?
We want to implement a free solution to sign digitally internal documents. No legal value of this sign are requested. We want to consider to deploy an internal CA. Why is it always said that keeping your own CA is so much complicated? Where does that complication reside?
I am trying to write a php code test to write an nmap scan (with parameters) scheduled into crontab file. While the nmap is running I would like to get the status of that specific nmap scan. For example: how many IP addresses scanned, is the scan still running, or is it finished? Is is possible to get the status of any...
I'm trying to do a buffer overflow on SLMail 5.5. I see where EIP is when I send 2606 A's to the program using my script. However, I cannot get the Metasploit pattern creator to work. I want to use this as it helps find the offset. When I use the produced characters in my script, SLMail acts like nothing happened. I do...
Example Using find.c Using find.c as an example, how would this manual source code auditing process work? We need to start with user data entering the program. As seen in the preceding ITS4 output, a recvfrom() function call accepts an incoming UDP packet. The code surrounding the call looks like this: char buf[65536];...
If users bring their own device (BYOD) and they have corporate Exchange (or Goodlink email) on that device, could the other email accounts on that device be open to a legal search? Would the SMS messages (WhatsApp, or other) be open to a legal search? If the answer is yes, both accounts could be searched, what if the ...
Today I found a strange email (not sent, just a draft) on my Android smartphone, and this is not good. The screen was on standby and when I pressed the on/off button to see the clock, I found a draft email. Now I've changed the password of my Gmail account and I've disabled internet on my smartphone. What should I do, ...
Recently I got into passwords hashing (SHA256, HMAC-SHA1, PBKDF2, etc.) and one "statement" I've been reading over and over again, stuck in my mind and I can not find a satisfying answer. "When we say “Guid” above, we mean “the 16-byte array representing a Guid” – not “Guid string form”." from (http://securitydriven.ne...
I was hacked in an extremely intrusive manner in late 2013. Ever since then, not a day has passed where I don't think about this. A lot. My question has to do with the likelihood of the attackers having altered my BIOS so they would have persistent access to my information, even if I wiped the hard drive(s) and changed...
There are (or have been) various websites designed to educate and provide examples on good / bad configurations of security headers and TLS configurations (e.g. https://badssl.com/) I want to build a collection of tests and demos for security headers and TLS configurations, something like https://badssl.com/ I want to...
I was wondering if the majority of the viruses and worms are created to exploit vulnerabilities of the Windows system (not a third party app), also I would like to see a report. In Windows a normal user is always (the majority of the time) with admin rights, let's say that the user execute a virus/worm, after it's exec...
I realize something like this would be the holy grail of communications security and have never heard anything to suggest it has been done. Am just wondering. A lot of mathematicians and computer scientists spend time doing proofs for theoretical situations. Has anyone done a proof to rule out the possibility of ever d...
According to Wikipedia: DNSSEC introduces the ability for a hostile party to enumerate all the names in a zone by following the NSEC chain. NSEC RRs assert which names do not exist in a zone by linking from existing name to existing name along a canonical ordering of all the names within a zone. Thus, an attac...
I know that this could be a repeated question, but I'm freaked out right now, Maybe Im old or out of the 2015 technologies, but i just visited this page: http://whatismyipaddress.com. As I know, getting the IP address of someone can get you the close location, maybe state, country - all that. My browser just asked if I...
i was wondering if there is any securitiy risk involved with raising the client_max_body_size in nginx from 1MB to 20GB?
I am encrypting files inside a device and store it. So I need to maintain the same key throughout the life cycle of the device. For key derivation I use EVP_bytestokey() of OpenSSL. The problem in password based key derivation (PBKD) is that the attacker can guess the password if that password is from user. But in my...
If website A is having a video with a virus, then if we watch that video through another website B (like dirpy dot com or getaudiofromvideo dot com), is there mechanism for the virus from website A to reach our computer? We are not watching website A, we are watching it through website B, then what is the procedure...
I'm using a mobile browser. I found a program that can fake my User Agent (UA), so I changed to something else. Is this good practice or bad practice in terms of preserving privacy?
At work, I've been asked to look into creating a reference topology for a WebSocket chat application, which includes a proxy between the web-facing frontend server and the backend. At the moment, I am still running the frontend and backend on the same server for development, but I've temporarily set the WebSockets to p...
As shown Microsoft's TechNet, network shares that are mapped by logon scripts are shared with the standard user access token instead of with the full administrator access token. Here's the gist of it: Symptom After you turn on User Account Control (UAC) in Windows Vista or Windows 7, programs may not be able to access...
Not sure if I should report it here, but within my website I collect each request in DB, and from time to time view these records. Among data collected are user agent, reqested url, referrer (i.e. previous) url, time, and others. Today I found a following user agent bot (which seems to hide this): (Windows NT 6.1; WOW6...
Here is the system: The client side of our system generates confidential data that needs to be encrypted. Only the user should be able to read them, by that, I mean that even us who managed the data base and the whole application should not be able to decrypt this data. I cannot think of a good strategy for the key her...
Why does Apple include 5 COMODO root certs in OS X? There's "AddTrust {Class 1, External, Public, Qualified} CA Root" and also "COMODO Root Certificate". Why isn't one enough, if it's owned by a company?
How do I check in apache logs as to what cipher end users / browsers are using ? Are there other tools to achieve the same to get a result in percentage ? related link: How can I determine the encryption strength of an SSL connection
Does anyone have a good template email to use to send to remote system/mail/security administrators to alert them to the fact that emails to them would not be getting through either at all or securely because of their weak DH keys? I understand the OpenSSL team decision to disallow weak DH keys (under 768 bits for now,...
Considering a social website where members upload images which at times can be very similar - is there a way that images can be 'branded' steganographically with (salted+encrypted) text that identifies the owner's username and the date they uploaded it(for example)? The idea is not to hide or transmit secret messages b...
I've asked a similar question here earlier iOS: Is it ok to store a RSA private key (use to decrypt text) in your application document directory? However, the person recommend me to use keychain access. This will not work for me because after further research only mac users can use keychains in the first place. Which l...
I have to implement custom key derivation function which basically works as follows: I have encryption key K in secure container of HSM. K can't be exported and the only way how to use it is through HSM command or PKCS#11 function. The derived key DK is the output of encryption data with key K, so DK = E(data, K). My p...
I'm in the market for a new phone, and was wondering which modles/operating systems are the best to protect privacy/security. I don't use social media, so won't have Facebook/Twitter,etc. I am fairly diligent about keeping my info. private (i.e. for my browser, I have adblock, ghostery, do not track me ,etc.) and espe...
I've managed to get my tiny little app to send an email with a click of a button using this code (this is just the email part): http://pastebin.com/nR5g28ct But to avoid some error, I had to allow less secure apps in my account using the steps seen on this google support page. Gmail told me that's kind of bad thing, so...
Imagine you're running a service that implements an OAuth 2.0 flow to allow your end users to log into 3rd party apps, and authorize those apps to consume your service's data through some API. Upon successfully authenticating a 3rd party app through your OAuth flow, your service sends the 3rd party app a bearer token t...
The .netrc file can contain username and password credentials for various sites, to allow simpler invocation of tools. For example curl with the -n option will read credentials from the file, for the given target site. Or FTP does similar. Also custom written command-line tools and scripts can be designed to read cre...
I've used Eraser in the past, and recently became aware of the cipher command in Windows 8. Specifically, with the /w flag: /w removes data from portions of the volume it can access and have not been allocated to files or directories. It does not lock the drive, so other programs can obtain space on the drive, whi...
Regarding Jonathan Brossard's Hardware Backdooring is practical talk at Def Con 20 in 2012: What does the developer mean by "The payload is booted via Networkboot"? How does the bootkit (a modified version of Kon-Boot) infect the connected hard drive remotely? Does this mean that there is a boot partition somewhere on...
Could someone please tell me what a string comparison timing attack is in simple terms? I have Googled this, but all the explanations are very technical. Also, is this attack an better than a brute force attack? Please correct me if I am wrong, but I believe this attack is used to crack passwords.
Suppose I host some web app which stores information about its users. In the interest of confidentiality, that information is stored in an encrypted format. Under what circumstances could a legal authority require I decrypt it and give them access? Furthermore, suppose that the web app doesn't actually do the encryptio...
While pondering a question on SO about efficiently generating signed private-content URLs for CloudFront I decided to check what sorts of savings could be found by using a shorter RSA key. With the 2048-bit key AWS generates, our signing method runs in around ~1550µs on my laptop; using a 512-bit key cuts this down to ...
I'm currently building a B2B e-commerce site for a client using WordPress. We sell industrial machinery ranging in the upper $100k-$400k price range. My client would like to have their financing form online where customers/businesses enter bank account information, as well as social security numbers. He wants this form...
I just got put in charge of a network. In the logs on our firewall I noticed that we had a large amounts of machines trying to connect to port 53 as well as about a dozen other ports. Are these automated scans, PC's with malware or are we under some kind of attack? Most of these Ip's are not from the United States, I'v...
If we need to choose a vendor for the 2FA in our environment, what are the features that we should look for? Our selection process depends on the functionality and usability they provide. But when I went deeper, I got confused! So, when you want to choose a 2FA vendor, What should we look for, and why? given the foll...
What kind of attack are prevented by running code submitted by the user in a Javascript Web Worker? Do they prevent attacks like XSS, or is it better to use some other sandboxing method to protect against most vulnerabilities?
Q: Should I update my SHA-1 certificates? If so, how? Recently I noticed the "https:" has a red strike-through and warning in Chrome, but only on certain websites. Apparently this has been attributed to Google sunsetting SHA-1. A few comments here suggest getting the certificate re-issued in SHA-2. How do I get th...
I have been reading about computer security and at a point it mentioned Lucent Personalized Web Assistant (LPWA). Though I think I understood what it can offer, it doesn't say anywhere how/if a user can implement it. Also the website www.lpwa.com which it mentioned doesn't lead anywhere. Any ideas? P.S I haven't been ...
I've seen public web API's using keyed-MD5 to generate message authentication code rather than adopting the HMAC algorithm. People wouldn't just invent HMAC for fun, so it must have some advantages over keyed-MD5. (However, we do have a keyed MD5 authentication standard described in RFC 1828.) Are there any known vulne...
For a few weeks we observed a collision in session ID generation, resulting in two operators independently connected to a test web application sharing the same session. We investigated the issue and exercised the session ID generation to generate between 500 000 and 1 000 000 session IDs with various generation setting...
I need to discuss how to mitigate the risk of services which are vulnerable despite being patched (typically because they are not maintained by the vendor anymore, or because the vendor does not want to issue a patch, or for other reasons beyond control). I know how to check if a machine is vulnerable (via a patch inv...
I have been studying about computer security and at some point i came across the terms of onion routing and crowds. From what i have understood they are very similar in their usage (interchangeable). Is there any specific situation where anyone would want to use the one or the other better?
If a photo is taken using an iPhone, the image file can carry date, time and location information. If this original image is then screen shot, would this original information be copied with the screen shot
How many times would an attacker have to enter the same password when doing a string comparison timing attack? I assume it would have to be at least a few dozen times to average out network lag, for example. If the number is significantly more than the number a normal user would enter, is checking the number of times a...
When linking to OpenSSL (or other cryptographic libraries) would it be more secure to use a shared library and have address space layout randomization, or to use a static library and not have ASLR?
What's a good token character length for a token-based login? Currently I'm using the following code: <?php $token = bin2hex(openssl_random_pseudo_bytes(16)); Is 16 sufficient or should I change it with a more adequate number? Should be useful generating randomly the length? And if yes, what should be the rang...
I have been looking around the web for large data sets (specifically web related log files - MySQL, PHP, Apache, and so on) that contains data of attempted intrusions/exploits. I am doing some research on threat intelligence and I'd like to analyze log files to see what might be different (anomalies if you will) from t...
At work we are all using Windows 7+, with full administrative privileges. Each PC has a dedicated IP and a proxy is used. It is set as a HTTP proxy and the option to use this for all types of connections is checked. I have at home a "ddwrt" router with a SSH server. I use PuTTY to establish a SSH connection to my home ...
My application targets platforms starting with Windows 7 32bit. Many of them aren't up to date (i.e. may be missing many recommended updates from Microsoft). Given the constraints I must use SHA1 signature inside my userspace and kernel binaries. However, will it make the attacker's life harder if I also embed SHA256? ...
Just reading about the DYLD privilege escalation vulnerability reported by Stefan Esser at https://www.sektioneins.de/en/blog/15-07-07-dyld_print_to_file_lpe.html I understand this allows anyone to create or open arbitrary files owned by root anywhere in the filesystem but I want to understand more how leaking the fil...
I have some fundamental questions on using Cryptographically Secure Pseudorandom Number Generators (CSPRNGs). What should be the size of the seed that I initialize a CSPRNG with? How often should I reseed it? and how to determine the size of the reseeded entropy? Any pointers will be helpful.
When I run this command: openssl s_client -connect my.server:443 -starttls smtp Why does Apache 2.4 & OpenSSL 1.0.1h(running on server 2008R2) stop responding to request from other machines ? What I see when I run the command from the clients end: openssl s_client -connect my.server:443 -starttls smtp Loading 'screen'...
I have seen several academic sources mentioning covert channels in computers, such as one process sending data to another process/thread on the same machine in a way that attempts to avoid detection. Covert channels methods include for instance timing, resource contention... According to the Trusted Computer Security E...
I want to know how do malware like ZeroAccess hole punch the network without using a external server? Or do they just mainly infect non-NAT users? Does that mean all NAT users are safe?
What are the chances a third party could make changes to apps on Google Play that I have installed, so that when I next update I am compromised?
Does anyone know if it is ok to proceed to my bank website even if every time I type the website in it opens pages with an .rf extension? What is that extension about? The bank is Regions dot com.
Instead of blocking third-party cookies (which might be useful), why don't browsers allow them, but keep all cookies separate for each address-bar website? For example, if a third-party website sets a cookie while the user is viewing a page on a certain website, then that cookie would only be visible to the third-part...
I have a multitude of users that are requesting the ability to RDP from other workstations, on the same network, to their specific desktop computers. I would like to know what the risks of this are and reasons why this should not be granted.
Is it a safe practice to sync with a Keepass database that is stored on an off-site server? Database is accessed primarily through my Android running 4.4.2. I access/sync my Keepass database by accessing my Dropbox through the Dropbox app via the KeepassDroid app. I haven't been doing this over a VPN, as Bitmask has st...
We would like to secure our administration network from advanced persistant threats and also from rogue administrators. I have already read the best practices from SANS Institute, NSA or other guides. We have separate physical networks for administration and production and admin workstation don't have internet connecti...
If an attacker takes control of a server and a user tries to SSH into it using password authentication, can the attacker get the password? I was under the impression that there was an algorithm in place that demonstrated the client holding the password without revealing it to protect against the case of a malicious ser...
I'm aware that there are various tools for testing for XSS vulnerabilities. However, all the ones that I'm aware of (Vega, possibly BeEF, etc.) operate purely client-side. When testing for stored XSS vulnerabilities specifically, it seems that it would also be useful to directly modified the stored data on the server. ...
I am selling some fairly expensive furniture on CraigsList. A few hours after posting, I received an offer. They said to send them my PayPal email and the address so that movers could come pick it up when payment is received. This was discussed via text message, so they already have my phone number. I am sketched out...
I want to refer with my question directly to a question posted on the forum before. wifi topic I am running teamviewer on my android which is not rooted and i am not using a firewall on it. I guess Teamviewer could run such services AJ Henderson is reckoning in his answer that could be tried to get accessed by other co...
If I were to give someone a two 4096 bits keys, and say one was generated in a Linux OS with very very low entropy available, and one was generated in a Linux OS with more than enough entropy. Would be possible to differentiate between the two? Would be them be able to do any kind of attack on the low entropy generated...
Let's say a hard disk (A) is retrieved from a system to make a clone of it on hard disk (B) and use this clone for a forensic investigation. Is SHA-1 secure enough to make sure that no other information will be added to the cloned hard disk that can incriminate a person? What are the steps to consider in the process o...
I want to install a Git server for my company. I'm able to get a Windows virtual machine. Now I've been asked to assess its security aspects. I'm lost on how to achieve this goal. As it is a Windows virtual machine I'll be using this. Is there a way of evaluating the security risk?
We are trying to understand what a more secure installation is: a) A modem connected to the internet with PPPoE doing a NAT to the firewall than doing a second NAT for all the devices b) A modem acting like a bridge and the firewall doing the PPPoE? I guess that more layers could be beneficial for security because mali...
I need to distribute some content on a USB flash drive. This content should be available for a limited time only. I am looking for some approach to achieve above. So far I do not have information about what kind of content will be on there or what OS the consumers will use. I am looking for ideas, general information, ...
If you go to IE -> Internet Options -> Content -> Certificates -> Trusted Root Certification Authorities. Now Click on some CA certificates and click on Advanced You can add properties to the certificate. What exactly is this for? Does this mean that if a certificate doesn't have 'Server Authentication' property, ...
In a book I am reading, a system called Freedom is mentioned as a means to protect user privacy. Though at some point it mentions that it uses multiple proxies, so even if a node behaves maliciously for the user the attack won't be successful. From what I have read, Freedom only uses Anonymous Internet Proxies (AISs) s...
Can someone who really knows what they're looking at advise whether the patch published here by Stefan Esser is in fact safe to install? While I'm very concerned that Apple haven't published an official patch yet (especially now that I've tried Esser's example myself), this is a kernel extension so I'm equally hesitant...
I'm pentesting this web application developed in ASP.NET. I've found that I can upload any file as profile photo. When I later visit the profile page the site tries to display it like this: <img src="../attachments/open.aspx?Key=10350&ute=20069" /> So I have the possibility to upload any kind of file and they will be ...
I am implementing a web app with reset password flow. Here is what I've done to try to make it secure. Put in the email address in forgotten password form. Regardless of whether the customer exists, the application reports an email sent, this avoids giving away the existence of an email address. I generate a secure ra...