instruction
stringlengths
24
27.2k
Is there a way to remotely retrieve the UID of a user via a Samba share? I can get the user list with: rpcclient -W 'WORKGROUP' -c querydispinfo -U''%'' '192.168.21.129' 2>&1 index: 0xa RID: 0x4c0 acb: 0x00000011 Account: foo Name: foo Desc: (null) Or I can cycle the RIDs with rpcclient -W 'WORKGROUP' -c enumdomu...
Is there a way to fix Chrome against the Logjam TLS exploit on Windows? I have updated my Chrome to the latest version yet the https://weakdh.org/ website warns me that "web browser is vulnerable to Logjam and can be tricked into using weak encryption. You should update your browser." Has a fix / patch not been release...
I am preparing for my Information Security state exam. There is a question in preparation sheet that asks about order of operations to generate subkey for AES algorithm. Operations listed: XOR with constant XOR with first 4 bytes of subkey s-box Circular left shift I tried to google this question, but didn't find the...
Me and my colleague are trying to come up with a way around preventing a theoretical man in the middle attack. The scenario is: Communication is only through one channel and either sides isn't aware of what is going to be said. Alice and Bob want to communicate with each other. Eve is the "man in the middle". All com...
In a current project the NaCl-library crypto_box function has been used to encode and crypto_box_open to authenticate and decode data. However the library does not seem to support de- / encoding of large amounts of data, since the message and the buffer for the cipher text (plus nonce) as well have to be allocated in m...
I have Encase. and I'd like to know where can I find if someone ran CCleaner Or CleanUp software to erase evidence.
I started reading about password hashing recently on multiple sites like this page on crackstation and others, and for what I have understood, I should avoid using hashing algorithms like md5 and sha1 for they are outdated and instead, I should use sha256 with salt. But, after reading this page on the php manual, I not...
I'm thinking about implementing a single sign on service with a centralized permissions management for a distributed network of service providers (so authentication as well as authorization). The part about authentication is mostly solved (probably going to use SAML). The more difficult part is implementing a centraliz...
This is mostly a thought experiment for client/server communication, and I want to know the flaws. When a user account is created (with U as the username and P as the password,) I generate a random salt (S) and store these values in the database (on the server-side): U, S and H which is computed as H = hash(U+S+P). Whe...
Tomorrow will be my first day as a new Junior Information Security Analyst, and I'm nervous and excited at the same time. I want to apologize if this is the wrong place to ask such questions, but I think this is the best place to find people who can aid me in this situation. I've been through a long hiring process, 2 m...
A lot of people recommend using Ed25519 instead of RSA keys for SSH. The introduction page of Ed25519 (http://ed25519.cr.yp.to/) says: [..] breaking it has similar difficulty to breaking [..] RSA with ~3000-bit keys [..] So speaking only of security (not speed!), why should one not prefer RSA 4096 over Ed25519? If Ed25...
I understand that transport mode encrypts only the payload. Do IPSec clients such as Cisco's AnyConnect and/or Cisco VPN Client use transport mode? Or do these clients and others like them use tunnel mode?
I have read some textbooks and not found a convincing explanation. In the cipher suite ECDHE-RSA-AES128-GCM-SHA256, what is the role of RSA in the first part (ECDHE-RSA)? This part of the cipher suite indicates the key exchange algorithm, right? That is what ECDHE is used for: key exchange, so why do we need RSA? Are b...
Apparently Travel Sentry locks can only be opened: by their owner, by the TSA, CATSA and "other security agencies". How do they work technically? Is there some electronics embedded with authentication capabilities? Do the security agencies have a kind of master code/key? Do they have a big database giving the code fo...
is /dev/random any good in AWS EC2 for use in making a shared key that will be passed over a secure channel? i am concerned that a launched instance would have not much entropy to begin with. what if i delay using it for a couple minutes to get random EBS delays for more entropy? edit: i will not be logging in to the...
a virus code (x bytes long) is XORed with a x bytes long word (we call this T). This word T is built repeating multiple times a 8 byte secret key. the infected file contains this XORed (obfuscated) virus code, the 8 bytes secret key, and a loader. We don't know the location of those 3 entities inside the file. The load...
I implement simple user management. How an administrator should reset password for a user? Just provide a new password for a user (as in Active Directory)? Is it secure enough? Added Is it secure enough to do it as Active Directory only to type twice a new password? I wanted to create a dialog with 3 fields: user email...
I would like to ask this question as I'm not the first person which has this behavior. I'm trying to encrypt a simple message using GnuPG using a public key I've received from a friend, he's using DSA 3072 but for some reason, whenever I try to encrypt using his public key, I get gpg: <mailaddr>: skipped: unusable p...
I read the CVE-2015-3152 (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-3152) named BACKRONYM (http://backronym.fail/), and what I understood (ELI5 style) was the following: Attacker sniffs the network looking for packages from a MySQL client to a MySQL server. Attacker replies to MySQL client tricking it in...
I have an HTTP API endpoint on my server that is encrypted (TLS). It is not a public API; users must sign-in and validate their account/identity to access the API. When I connect with my test client (using a newly generated keypair client-side each time), I get this response: {[] [] [Domain Control Validated COMODO SSL...
China / Linux / Bank / Trojan / Backdoor / Executables Hey guys. I've got an account with a Chinese bank (I live here), and in the process of setting up an online account for the Chinese version of Amazon, I've been asked to install a plugin for the Unionpay debit card. The question is: Is there any way to analyze it ...
I recently read this paper "A Look Back at Security Problems in the TCP/IP Protocol Suite" (https://www.cs.columbia.edu/~smb/papers/acsac-ipext.pdf) explaining few attacks at the TCP/IP stack. One attack is at TCP layer (SYN flood, or DoS). Another is at the routing layer, i.e. RIP and BGP protocol. I understand that S...
...and nonces. Can someone show an example of how this actually works using small intelligible numbers? For example: secret key: "100" public key: "10" private key: "1000" I am just trying to better understand the concept of "signing" and how public keys are generated and what/how private keys are generated. Is this ...
I don't know if this is the right forum to ask this but I have a domain hosted (shared hosting) on godaddy.com and it has been hacked/defaced by a group of Bangladeshi hackers. Note that it is just a domain hosted with GoDaddy. I haven't developed/built the site yet. This is my site - http://anujitnene.com What should...
Are there industry-wide measures that identify how long it typically takes to identify, develop and distribute new malware signatures? I want to understand how long organizations are typically exposed to new malware before a signature is available to them.
I'm doing a security investigation for a friend of mine, working a bit of a Sherlock Holmes here... Trying to figure out a possible hack scenario for the following: My friend receives a "screw you and your Twitter profile" message on a vBulletin-powered message board, where no one know who she is. After a while she no...
In this relatively short Host Identity Protocol (HIP) overview Host Identity Protocol: Identifier/Locator Split for Host Mobility and Multihoming it is stated Most Internet applications can run unmodified over HIP, although only HIP-aware new applications using the extended socket interface can take bette...
Disclaimer: This is NOT intended to educate myself or others on carrying out illegal activities. I am interested in security topics and as a craftsman I pride myself on continued education. THAT SAID: Question: It is often said that things such as VPNs, proxy servers etc. mask your identity on the internets. The more I...
I caught a segment of an NBC news story describing how hackers can access messages, phone conversations, location, camera, microphone, and more provided that they can install a malicious app on your Android device. In the video, the cyber security expert gets the correspondent to click on one link on his phone and then...
I'm writing this post from chrome. If I go to a HTTPS site after this, the public keys built into the version of chrome I'm using will be used to verify the site's signature (unless I misunderstand). Since I downloaded chrome over the internet, how could I have prevented against a man in the middle attack? For example,...
My bank, Google etc. use two factor systems where they send me a One Time Password via out of band means. e.g. SMS or an App on my Cellphone or a standalone RSA token generator. This seems good except that it is vulnerable to a phishing attempt / rouge site that can get me to enter the OTP & then use it on the fly to ...
I log on to my works wifi throughout the the day whilst at work, I use apps like WhatsApp and iMessages to communicate when I need to, can my employer see the content of those messages (actually read what I'm sending and receiving) or can they just see that I have been logged into WhatsApp and iMessages over the wifi s...
What would be the equivalent to securing ECC private key similar to how RSA private keys are password protected through the PKCS#12 format? Another question I have is: how do I add ECC keys to a keystore such as JKS or BKS, or is there a mechanism to maintain ECC private securely on the server and password protected co...
I'm having a problem understanding the size of an RSA public key and its private key pair. I saw different key sizes for RSA algorithm (512, 1024,... for example), but is this the length of public key or the length of private key or are both equal in length? I already searched for it, but: In this question it is men...
How can RDP connections on the network be identified if they are no longer using TCP 3389 and instead using a non-standard port? If the administrator of a system changed the port for remote connections from 3389 to something else and not updated same in IDS or firewall, then how can someone detect the active remote con...
I am trying out the OpenVAS and the omp tool (version 5.0). I can connect to the OpenVAS manager and get the targets and configs but when I try to create a task, I get an error. $ omp -u test -w fa542f5d-7943-4a3a-800c-b3ec075dc5ea -T b493b7a8-7489-11df-a3ec-002264764cea Localhost $ omp -u test -w fa542f5d-7943-4...
A DoS (short for "denial of service") attack is a form of attack used on web services which aims to "crash" the service. Is there any motive of this form of attack besides crashing the service / website? For example, I could think of blackmailing/ doing harm to a competitor / political reasons as a direct motive for Do...
About ciphers that use ECDHE as Key Exchange and RSA as Authentication: How exactly this two algorithms work together, is ECDHE process encrypted by RSA public key? What are the DH parameters? Please explain this process as a whole, I'm in trouble to connected all parts of the authentication and key exchange process. ...
I got a TrueCrypt container which is using a 64 character password. This password contains all the different kind of characters available to me (upper case, lower case, digits, special). It's taken me a long while to remember this password, so I would not want to change it to a completely new password. What I am prot...
Sometimes when asking networking questions on StackExchange I want to publish some output where several internal IP adresses from my company appear (output of traceroute command for example). Since I know it is easy to link my StackExchange account to the company I work for, I was wondering if those IP adresses could b...
A friend of mine came to me for help with this issues. Her Gmail account has been hacked and keeps sending out spam emails to her contacts. This is happening to her on a monthly basis. Each time it happens she changes her password. She also went through and tweaked all her security settings. However, even after having ...
I'm looking at the code of a particular web application that handle file uploads. For some reason, instead of using the cryptographic hash function (SHA-256 in this case), they derive an ID from it, and use that everywhere instead, to identify files uniquely. The steps involved are as follows: Calculate the SHA-256 su...
I have searched for related topics, but found other existing answers to not be satisfactory, because they require installing special tools. This is a very common use case. For example, I want to share sensitive login credentials with other members of my team so that we can administer servers. Plaintext must be encryp...
I was reading through my infosec newsfeed and found this article: http://www.theguardian.com/technology/2015/may/27/iphone-crash-bug-text-imessage-ios It basically talks about a bug iOS has while parsing Arabic characters, specifically in notifications. Reading a bit further into the subject I learned that the bug is ...
Evidently, someone has discovered a Unicode bug in iOS, where if an app receives a specific Unicode sequence (infinitely-repeating Unicode code point), the OS will kill the Springboard as it allocates too much memory, restarting it immediately. I can't include the sequence here, because SE detects it and denies includi...
I am buying some products and have mostly communicated with the store via email. I am planning on paying by credit card, but the store doesn't have online billing. Normally, I would just phone the store and provide my credit card info but they are out of country and I can't make calls there. Is it safe to SMS my cre...
I recently found that my friend is using wifikill apk on his rooted android and I would like to get rid of that software as I always get kicked from my wifi. I have to give him the password of my wifi but he his been doing such things and I am pretending like I don't know. Is there anyway that I can make his wifikill ...
I have a minimal server install on a remote machine with a root password set to a temporary, but chosen, value. I have added a separate administrator user. This user has an authorized key for SSH, no password access, and passwordless sudo. I would like to remove any trace of the root password and lock the root user. Th...
I think we all heard the news that China used unencrypted HTTP-connections to drive DDoS attacks on targeted websites. Now within the last few months we've learned about three new attacks (FREAK/Logjam/POODLE) that allow us to recover the master-secret of SSL/TLS connections. So the following question came to my mind: ...
The POODLE vulnerability was discovered by Google in October 2014, and unlike heartbleed, it had a simple solution: just disable SSL v3. Now, most of the websites have disabled SSL v3 but ironically it is Google that still supports it. Any idea as to why Google still supports SSL v3? I tested the domain name in a POODL...
I was playing around with wpscan a little while ago. I was wondering if it makes sense to scan a site on your localhost server. I think that it is since there are examples like DVWA, but I imagine it does and doesn't for various other cases. Would it make sense to do this? If so, when might it not? I know there are a...
What if someone could steal a Certificate authority's private key? I know this will (probably) never happen, but what would happen to the certificates that were already signed with this private key? The person could start signing certificate as if he was the CA, but would it cause any harm to the certificates that were...
Various financial institutions, government agencies, etc., use public records information to confirm people's identities, as touched upon in UPS my choice -- How can I access my public records? The information often includes relatives, past addresses, banks that have serviced your loans, cars you've owned, etc. By def...
SQL injection attacks work by the attacker putting valid SQL into the text that goes back from the page to the server; something like Delete * from tblAccounts where 1=1. What I cannot understand is why this cannot be defeated by giving the account that a web user's post runs as read-only permissions. Not only that bu...
If the linux kernel is compiled to check for kernel modules signing, it checks the validity of the public key (X.509) w.r.t the current system time. For the first time the system is booting up, it hasn't received external time sync and the default time is still 1 Jan 1970. I am wondering how is this issue resolved in o...
I have created a New Trusted certification authority which issues certificate to the end entity and the end entity will use this certificate as trusted one for all their PKI operations. Some how the Root CA Key got compromised. Now my question here is how can I revoke the ROOT CA as its a self -signed ?
The question How to use TPM to perform platform authentication is basically asking if the TPM's EK can be used to "authenticate" a host/device. And one of the answers says The Endorsement Key (EK) is not directly accessible as this would be privacy issue - we could track a system using this unique identifier. But...
Lets say Alice@gmail.com wants to send message to Bob@secureMail.com Alice <--> gmail.com <--> secureMail.com <--> Bob We know gmail.com can read the unencrypted message. Is it possible for secureMail.com to receive the message such that only Bob can decrypt the message? If my understanding is correct, secureMail.com w...
So, long story short, I have been talking with a developer that is designing a website for us under a very high recommendation. They have had some break in's of late, and the developer has claimed it is all social engineering and falls under, 'not his problem'. With users current understanding, they have been very slac...
Is there any encryption algorithm that is generic across all platforms? Is RSA generic across SUN/IBM JRE? Another question: will base64Encoder / base64Decoder sun.misc.BASE64Decode / sun.misc.BASE64Encoder behave the same way in IBM JRE? Also are there differences in using this algorithms in the 32bit / 64bit JREs? If...
Wikipedia says: For example, if a certificate issued to "example.com" and issued by "Intermediate CA1", and the visiting web browser trusts "Root CA", trust may be established in the following manner: Certificate 1 - Issued To: example.com; Issued By: Intermediate CA 1 Certificate 2 - Issued To: Intermediate CA 1; Issu...
I just read that everyone in the world can ready my mails (if intercepted in traffic by eavesdropping?). Also, it reads that current versions (book's from 2004 so I assume that new versions adopt encryption policies) of Outlook and Eudora have built-in crypto. Is it sufficient or should I use PGP on every mail I send? ...
I am using CentOS 7. I need to give shell access to ssh users but restrict them in a jail. I have used jailkit to set up the jail. I have copied all necessary libraries, binaries that are needed for the user in the jailed environment. However, when the user logs in, he can cd into other directories in the jailed enviro...
I have developed different templates for local security policy. I have been using the program Nexpose to test the effects of those security policies but so far I am not able to detect the visible changes of policies on a vulnerability assessment tool. Can anyone guide me how can I measure the effect of local security p...
Recently we had an issue with the Exchange autodiscover.xml appending ".com" to our mail servers autodiscover address. It resulted in a certificate error due to the name not matching the certificate. After hunting that down and correcting it (by someone much smarter than me) I got to thinking how, other than by a dumb ...
A group of LINUX servers is using dm-crypt to encrypt data. The servers do not store data long-term but are only temporary stopping points for data before it is sent to other systems. The time the data is saved to disk on the server is typically minutes, but at peak time or if there are downstream outages could be sev...
A new server has just been installed but literally has nothing else running on it, no services setup to SSH in or anything yet (it's a Linux server). However, it is hooked up to the web so I can start pulling software down and installing it. So here is the question, is it at risk whilst it is plugged in? Obviously no ...
I have heard from others that there is a new worm called "moose". This actively targets and exploits home routers. What are the effects of this exploit? How can I protect myself from this? Can I check if my router is vulnerable?
I would like to consider three types of LAN: a) 2 computers are connected to a Hub, this Hub is connected to a router for e.g. internet access. b) 2 computers are connected to a Switch, this Switch is connected to a router for e.g. internet access. c) 2 computers are directly connected to the router (internal switch). ...
I apologize if this is an obvious question, I'm not very familiar with hardware. I am planning on hosting a few personal websites from my home, but I'm concerned about my security. I'm using a fairly old cable router (probably around 10 years old I would guess, it's ASUS RX3041). I was wondering if it would be possible...
I was wondering, does SSL protect from IP hijacking (an active, authenticated connection between two hosts is disrupted and the attacker takes the place of one of the hosts) and how?
I'm interested in blocking or reporting any application's usage of extended permissions, regardless if they are granted those rights, such as: GPS / Location / Wifi Radio signal data Telemetry My rational is related to a person's privacy. For example Facebook Messenger has an application-level icon to disable loca...
I had a friend try to convince me today that simply by signing into a wifi network, without any physical access to your computer, the network admin can see your computer's screen. Obviously this is false, but I don't enough about networking to explain why. Can someone explain what prevents a malicious network from hav...
My client has a wildcard certificate *.thierdomain.com that they are using for half a dozen of production web sites. For each of theses sites there are duplicates in several environments, dev, qa, pre-prod, etc. Up until now other environments than prod did not have a SSL certificate at all as there were no https speci...
I have been getting alerts from an anomaly based signatures for abnormally high SYN traffic. The traffic is coming from blackhole DNS servers. I hadn't had any experience with Blackhole servers prior to this so all of what I know has come from Wikipedia: http://en.wikipedia.org/wiki/Blackhole_server My question is: Why...
what is the required credentials for scanning a database server's vulnerabilities by using vulnerability assessment tools such as Rapid 7 Nexpose?
Recently I came across a gmail extension for Chrome browsers which claims to send self destructive emails. I tested by sending self destructive emails to my email account and it works fine Now my questions are few: Is there any way to determine if the email I receive is an self destructive email? Is there any way to p...
We currently use some certificates in our application and we identify them by using the certificate's thumbprint. Like this: <serviceCertificate> <certificateReference x509FindType="FindByThumbprint" findValue="xxxx" storeLocation="LocalMachine" storeName="My" /> </serviceCertificate> Unfortunately when the cer...
It seems that most sites or systems will just state Invalid username or password As a means to not reveal usernames for use in brute force (and other) attacks. Seems like a good idea as a general rule. However, many of them you can follow the forgotten password? link and quite often you can get This email addres...
I have a apache server running and following configuration for ssl: Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains" SSLProtocol -all +TLSv1.2 SSLCompression Off SSLHonorCipherOrder on SSLCipherSuite "ECDH+AESGCM256:DH+AESGCM256:ECDH+AES256:SH+AES256:RSA+AESGCM256:RSA+AES256:!aNULL...
I want to know is there any way to hook (inline hook) an unexported API of a PE? I have this binary (PE 32 bit) which does not uses any DLL (A statically linked binary) and I would like to know what should be the approach to hook a function in this binary (in memory) ? Following is a thought of mine, but don't know ho...
I know it's not considered secure to grant GRANT ANY ROLE privilege to other users apart from admins. But what if the user is expired & locked? In particular, I see these 2 users having this privilege: SPATIAL_CSW_ADMIN_USR and SPATIAL_WFS_ADMIN_USR.
Why is Pubkey Authentication considered more secure than a password, and does this apply to my situation (described in more detail below)? I'm a scientist (no formal IT training), but I built and administer the small network for my research group. I'm not concerned with hardware key loggers being attached to our networ...
Currently looking at getting some of our web sites pen tested but there are some many companies offering the same, and who are probably using the same tools (not to mention the same wordpress layouts) I wondering if there is a modern approach that should be looked at, a company that's doing things a bit differently? S...
I recently bought a new domain name "familyname.net" and I redirect emails to this domain to my normal email address. Recently I received various emails, one of which came from Groupon to confirm the purchase of some things. The user used an email address sarah@familyname.net Groupon were useless in dealing with this, ...
CertiVox have designed a system with the aim of "getting rid of passwords". Essentially the system authenticates users with two factors of authentication: A 4 digit PIN and a token stored within the browser's HTML5 storage. There is also the option of authenticating with a mobile phone by entering a one time passcode w...
Im trying to figure out how SSL and ipsec works. I know the process in both SSL and ipsec but why do I need SSL if I can use IPsec when it runs below the transport layer. Wont IPsec encrypt everything ssl does? *What is the difference between the level of security provided by IPsec and SSL? If I use IPsec is SSL neces...
I ordered a certificate with SHA256 from Comodo and was wondering why Chrome shows this message: Your connection is encrypted with obsolete cryptography. The connection is encrypted using AES_256_CBC, with SHA1 for message authentication and DHE_RSA as the key exchange mechanism. It complains about SHA1 although the ...
Let's say I know the password starts with "1234" and after that there is a commonly used password. I would like to use the word list I have for the second part of the password, but to include somehow the "1234" before every password of the word list while cracking. It would be extremely time consuming to write a progra...
I have some HTTP logs where I see the hacker changing his IP every request, and occasionally changing his useragent. Is there a way to detect this automatically? Perhaps a snort rule? or any other way?
I have been tasked with evaluating Vault in our company and the first question asked by an architect was: If someone hacks our server, how can we prevent them from decrypting data stored in Vault? Due to my limited knowledge of Vault, I am unable to answer this question in a way that would satisfy an architect's mind...
What security advantages, if any, would be gained by enabling Firmware Password Protection on a mac that allready has filevault encryption for the disk?
I've been reading about the Logjam attack on Diffie-Hellman and about how to secure our TLC-based web servers based on the recent findings. The guide suggests that we create a Unique Diffie-Hellman group. As I understand the protocol, this group must be the same for only one TLS connection. That is, from the perspectiv...
Currently oscp student. I asked this on the oscp forum yesterday, but no responses so far. I am new to infosec, but have 18 years of education / work experience in IT. As far as I can tell, microsoft sysinternals tools will not work if you have a low priv shell that can't write to HKCU\Software\Sysinternals in the ...
Are there any utilities out there that can assist in building an IP exclusion list? Scenario: Recently suffered a brute force attack where 50000 failed login attempts came from a multitude of different IP addresses. Question: Is there a utility out there that can take a list of IP addresses and help build an IP exclusi...
Imagine a scenario that we are able to upload a PHP file on the server. However, we are not aware of the uploading path. I simply mean that, we are able to upload the file but we don't know where it would be stored after uploading. Is it possible to get the file path after the PHP script is uploaded? Somehow making the...
When we visit websites, unknowingly our computers can be a victims of a botnet. There should be a way to identify whether we are victims or not. What is the way to identify it and how to recover from it?
I have been learning about the SSL/TLS protocol (from https://www.rfc-editor.org/rfc/rfc5246) and have a few conceptual questions about the protocol. The client and server exchange "hello" messages during which they choose the SSL/TLS version and the cipher suites. More specifically, the client suggests a list of ciph...
I have had this functionality (csrf protection) for quite some time now. The thing I never liked about it is that it saved csrf tokens in the session file. While it may not be a real problem I see it as a pain because eventually tokens may build up so I need to utilize a gc mechanism and keep track of what was issued w...
Wondering if the following is sufficient for sanitizing input in a simple contact form that contains inputs for $name, $email, $phone, and $text. Thanks! There is no SQL. I am simply wondering if I am doing this right. <?php $name = $email = $phone = $text = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { $name =...