Secrity project keyvan

701 views

Published on

security in ecommerce

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
701
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
23
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Secrity project keyvan

  1. 1. 1<br />
  2. 2. Security in Electronic Commerce<br />Keyvan vahidy<br />Graduate student<br />Collage nooretouba<br />Stno:8861097<br />1389<br />
  3. 3. abstract<br />
  4. 4. mechanismsCryptography<br /><ul><li>CryptographyPrinciples of encryption, the encryption</li></ul>Goals of Cryptography<br />Privacy<br />Authenticity<br />Determines who can<br />read the message<br />Determines who can<br />write the message<br /><ul><li>Prevent forgery
  5. 5. Prevent alteration
  6. 6. Prevent eavesdropping
  7. 7. Prevent tracing</li></li></ul><li>Mechanisms Cryptography types<br />
  8. 8. Type Method Symmetric<br />Cryptography Symmetric Key to encrypt, decrypt equal<br />Method Symmetric two type:<br />Stream cipher<br />Block cipher<br />
  9. 9. Type Method Symmetric<br />Block cipher<br />Stream cipher<br />
  10. 10. Type Method Symmetric<br />Stream cipher a string of data to continuously receive the encrypted<br />Stream advantages:<br />Diffusion<br />Immunity insertations & modifications<br />Stream disadvantages.:<br />Slow encryption<br />Error propagation<br />
  11. 11. Type Method Symmetric<br />Block cipher Into every block of data to which the blocks are individually password<br />Block advantages:<br />Speed of transformation<br />Low error propagation<br />Block disadvantages.:<br />Low diffusion<br />Malicious insertations & modifications possible<br />
  12. 12. Encryption algorithms for security<br />Two kinds of widely known Encryption algorithms :<br />DES<br />AES<br />
  13. 13. Data Encryption Standard (DES)<br />Released by NBS in 1976, based on ‘Lucifer’<br />Combination of substitution and transposition<br />16 iterations with 56-bit key (64)<br />Based on diffusion and confusion (Shannon)<br />Supported then adopted by NSA<br />Can be broken (in 22 hours, parallel attack)<br />Key length dilemma, new algorithm to be AES<br />
  14. 14. Data Encryption Standard (DES)<br />Firstly the IP (explained below) is applied to the 64 bit plaintext. The result is then divided into two 32 bit halves, named L0 and R0. Then, the following happens 16 times:<br />Key transformation number i (a permutation, but dropping 8 bits off - defined in the specification) is applied to the key to produce 48 bits.<br />Apply the function f(Ri,Ki+1) (explained below) to produce a 32 bit output.<br />Exclusive OR Li and f(Ri,Ki+1), and call this Ri+1.<br />Make Li+1 = Ri<br />
  15. 15. Data Encryption Standard (DES)<br />
  16. 16. RSA Encryption<br />1978. By Rivest-Shamir-Adelman ) is a popular asymmetric key encryption standard.<br />Difficulty of determinating prime factors<br />It is based on number theory (more specifically the difficulty in factorizing a large number).<br />The key size ranges between 512 and 2048 bits.<br />It is used in many e-commerce applications such as the Secure Electronic Transaction (SET) protocol for credit card payment.<br />
  17. 17. RSA Encryption<br />Picks two large prime numbers p and q<br />Multiplies p and q to obtain n<br />Chooses d, such that d and w=(p-1)(q-1)are relatively prime (no common factor).<br />Chooses e such that 1 = d x e mod w<br />Public key is: <e, n><br />Private key is: <d, n><br />Message code m, secret code c<br />c = memod n<br />m = cd mod n<br />
  18. 18. Public Key<br />Only the decryption key is kept secret. The encryption key is made public.<br />Each user has two keys, one secret and one public.<br />Public keys are maintained in a public directory.<br />To send a message M to user B, encrypt using the public key of B.<br />B decrypts using his secret key.<br />Signing Messages<br />For a user Y to send a signed message M to user X.<br />Y encrypts M using his secret key.<br />X decrypts the message using Y’s public key.<br />
  19. 19. Public Key<br />
  20. 20. Public Key Infrastructure(PKI)<br />A set of technologies and procedures to enable electronic authentication<br />Uses public key cryptography and digital certificates<br />Certificate life-cycle management<br />
  21. 21. Public Key Infrastructure(PKI)<br />Many products from many vendors are available for certificate issuance and some management functions<br />Interoperability is a big issue -- especially when it comes to policies<br />Enabling the use of PKI in applications is limited today<br />Building and managing policies is the least understood issue<br />
  22. 22. Public Key Infrastructure(PKI)<br />Authentication and registration of certificate applicants<br />System administration and access to signing keys<br />Application use and interfacing<br />Trust between hierarchies<br />Trust decisions to be made at different points within the application need different views<br />Certificate fields, authorization and allowed use is really the hardest issue<br />Authorization policies for management of CAs and RAs<br />
  23. 23. Public Key Infrastructure(PKI)<br />
  24. 24. Message authentication code (MAC)<br />
  25. 25. Malicious programs<br />
  26. 26. Viruses<br />Unauthorized software being run<br />Games<br />Widely distributed software<br />Shareware<br />Freeware<br />Distributed software<br />
  27. 27. Trojan horse<br />A Trojan horse, or Trojan, is that appears to perform a desirable function for the user prior to run or install but instead facilitates unauthorized access of the user's computer system<br />
  28. 28. computer worm<br />a computer worm is a self-replicating. It uses a computer network to send copies of itself to other nodes (computers on the network) and it may do so without any user intervention. This is due to security shortcomings on the target computer. Unlike a virus, it does not need to attach itself to an existing program. Worms almost always cause at least some harm to the network, even if only by consuming bandwith, whereas viruses almost always corrupt or modify files on a targeted computer<br />
  29. 29. Firewalls<br />A firewall is a barrier placed between the private network and the outside world.<br />All incoming and outgoing traffic must pass through it.<br />Can be used to separate address domains.<br />Control network traffic.<br />Cost: ranges from no-cost (available on the Internet) to $ 100,000 hardware/software system.<br />Types:<br />Router-Based<br />Host Based<br />Circuit Gateways<br />
  30. 30. View of a Firewall<br />
  31. 31. Firewall Types(Router-Based)<br />
  32. 32. Firewall Types(Host-Based)<br />
  33. 33. Secure Protocols<br />How to communicate securely:<br />SSL – “the web security protocols”<br />IPSEC – “the IP layer security protocol”<br />SMIME – “the email security protocol”<br />SET – “credit card transaction security protocol”<br />S-HTTP – “Secure Hypertext Transfer Protocol”<br />Others …<br />
  34. 34. SSL<br /><ul><li>Negotiates and employs essential functions for secure transactions
  35. 35. Mutual Authentication
  36. 36. Data Encryption
  37. 37. Data Integrity
  38. 38. Operates between application and transport layers</li></ul>Web Applications<br />HTTP<br />NNTP<br />FTP<br />Telnet<br />Future<br />Apps<br />Etc.<br />SSL<br />TCP/IP<br />
  39. 39. SSL and Security Attacks<br />
  40. 40. IP SEC<br />
  41. 41. SMIME<br />
  42. 42. SET<br />SET standard two companies by VISA, Master card with the aim of ensuring security in the credit transaction year 1997 was introduced<br />Privacy information: credit card numbers of buyers see the seller remains hidden (using DES)<br />Cardholder authentication: digital signatures with certificates X.509v3<br />Authentication vendor: Digital signature certificate X.509v3<br />
  43. 43. Goal SET<br />Maintain confidentiality and purchase order payment information<br />Owner authentication Azaynrvkh cardholder authentication of a legitimate user is using a credit card account<br />Maintain the integrity of data transferred kidney<br />Ensure the safety of data transferred all<br />Seller to provide authentication for the transaction<br />Ensure the best security techniques and systems designed to protect all existing laws on electronic commerce transactions<br />
  44. 44. Dual Signature(SET)<br />
  45. 45. S-HTTP<br />Security on application layer<br />Protection mechanism:<br />Digital Signature<br />Message authentication<br />Message encryption<br />Support private & public key cryptograph<br />Enhanced HTTP data exchange<br />
  46. 46. S-HTTP<br />Operate on application layer<br />Encryption and digital signature<br />Work only with (HTTP)<br />Application dependant<br />More secure than SSL at end point even after data transfer<br />No particular cryptographic system<br />Multiple times encryption<br />
  47. 47. Electronic Mail Security<br />E-mail is the most widely used application in the Internet.<br />Who wants to read your mail ?<br />Business competitors<br />Reporters,Criminals<br />Friends and Family<br />Two approaches are used:<br />PGP: Pretty Good Privacy<br />PEM: Privacy-Enhanced Mail<br />
  48. 48. E-mail Security(PGP)<br />Available free worldwide in versions running on:<br />DOS/Windows<br />Unix<br />Macintosh<br />Based on:<br />RSA<br />IDEA<br />MD5<br />
  49. 49. E-mail Security(PEM)<br />A draft Internet Standard (1993).<br />Used with SMTP.<br />Implemented at application layer.<br />Provides:<br />Disclosure protection<br />Originator authenticity<br />Message integrity<br />
  50. 50. Transaction Security<br />
  51. 51. Agents participating in a Transaction<br />
  52. 52. Agents participating in a Transaction<br />Financial Audit Institute (Acquirer): A financial institution required with the following tasks:<br />Open an Account for Sellers<br />Ceiling set and enabled them credit cards<br />Deposit amount received by the card vendor account<br />Payment Gateway (Payment Gateway): processing messages and vendor payments by the Acquirer or the third person<br />Reference Certification (CA): X509 certificate issuer for cards owners, sellers, and payment gateway<br />
  53. 53. Payment Gatway<br />Verify all certificates<br />Decrypt the digital license to obtain and decrypt the symmetric key block<br />Verify the sign vendor<br />Decrypt digital pay to obtain and decrypt the symmetric key block<br />Verify the signature block double payment<br />Requested and received permission Sender<br />
  54. 54. Customer Account<br />
  55. 55. Order Buying(Customer)<br />
  56. 56. Order Customer(Merchant)<br />
  57. 57. Thank you for your attention dear<br />

×