Sensitive data in scripts

Ask a Question related to UNIX Programming, Design and Development.

  1. #1

    Default Sensitive data in scripts



    This question is so naive I am almost embarrassed to post it. I
    want to write a Perl script for myself that uses several sensitive
    passwords. If someone broke into my account it would be bad, but
    if someone read this script, they could easily clean me out
    financially. What are ways that programmers use to protect sensitive
    data that is required for a program to run?

    Thanks!

    -Jill

    J Krugman Guest

  2. Similar Questions and Discussions

    1. SQL 92 - case sensitive
      Hi, I would like to know if the use of " " in the tables creation in SQL or in the fields definition, is a specification of SQL 92 ? Where...
    2. question: how to preload data and excute table creation scripts
      On Wed, Dec 08, 2004 at 08:58:49AM -0800, Mark wrote: Create a file with the SQL statements you'd like to run. There are several ways to get...
    3. space sensitive?
      Is PHP space sensitive?? ________________________________________________________________ The best thing to hit the internet in years - Juno...
    4. Case Sensitive
      I did the following: 1. create table amit (name varchar(10) not null Primary key) 2. insert into amit values ('a') 3. select * from amit 4....
    5. Is varaible name case sensitive?
      Hi all, I have wrote a ASP page: ********************************************* <%@ LANGUAGE="JSCRIPT" %> <% var pricelist = "a"; ...
  3. #2

    Default Re: Sensitive data in scripts

    In article <bfmiso$i49$1@reader1.panix.com>,
    J Krugman <jill_krugman@yahoo.com> wrote:
    >This question is so naive I am almost embarrassed to post it. I
    >want to write a Perl script for myself that uses several sensitive
    >passwords. If someone broke into my account it would be bad, but
    >if someone read this script, they could easily clean me out
    >financially. What are ways that programmers use to protect sensitive
    >data that is required for a program to run?
    Make the user type the password when they run the program.

    If the program needs several passwords, and you don't want him to have to
    enter them all, you could put them in an encrypted file, and just have him
    enter the key to decrypt that file.

    --
    Barry Margolin, [email]barry.margolin@level3.com[/email]
    Level(3), Woburn, MA
    *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
    Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
    Barry Margolin Guest

  4. #3

    Default Re: Sensitive data in scripts

    On Wed, 23 Jul 2003 18:07:20 +0000 (UTC), J Krugman
    <jill_krugman@yahoo.com> wrote:
    >
    >
    > This question is so naive I am almost embarrassed to post it. I
    > want to write a Perl script for myself that uses several sensitive
    > passwords. If someone broke into my account it would be bad, but
    > if someone read this script, they could easily clean me out
    > financially. What are ways that programmers use to protect sensitive
    > data that is required for a program to run?
    >
    > Thanks!
    >
    > -Jill
    >
    >

    There's really nothing at all you can do. All of the passwords will have to
    be in the clear. But, don't worry, there's really nothing at all that can
    go wrong, so go ahead and put all your money into these accounts.

    If you like, I'd be happy to check your work after all the money is
    deposited to make sure you've done it right. Please email me the URLs and
    logins for the accounts.

    [Just kidding! The other respondents have you on the right track...]

    --Marc
    Marc Rochkind Guest

  5. #4

    Default ARe: Sensitive data in scripts


    "J Krugman" <jill_krugman@yahoo.com> wrote in message
    news:bfmiso$i49$1@reader1.panix.com...
    > This question is so naive I am almost embarrassed to post it. I
    > want to write a Perl script for myself that uses several sensitive
    > passwords. If someone broke into my account it would be bad, but
    > if someone read this script, they could easily clean me out
    > financially. What are ways that programmers use to protect sensitive
    > data that is required for a program to run?
    I wouldn't advise any approach other than splitting the passwords. Have
    on password that the script uses that only has permission to do what the
    script is allowed to do. The other password, that can clean you out
    financially, goes in your brain only.

    Any other mechanism requires a high level of expertise to implement
    reliably.

    DS


    David Schwartz Guest

  6. #5

    Default Re: Sensitive data in scripts

    * [email]phil-news-nospam@ipal.net[/email]
    | OpenSSH has a way to deal with that in a fair compromise. You start
    | running a special daemon, which can decrypted the encrypted private
    | keys (you would do this with passwords if you emulate the same
    | thing, as the private keys are as exposing as passwords).

    I assume you're talking about ssh-agent here?

    man ssh-agent:
    A unix-domain socket is created (/tmp/ssh-XXXXXXXX/agent.<pid>,) and
    the name of this socket is stored in the SSH_AUTH_SOCK environment
    variable. The socket is made accessible only to the current user.
    This method is easily abused by root or another instance of the same
    user.

    So, if one is concerned about root misusing its powers, or a breakin
    while I'm away from keyboard, this might not be a solution.

    R'
    Ralf Fassel Guest

  7. #6

    Default Re: Sensitive data in scripts

    In <TmATa.352$0z4.287@news.level3.com> Barry Margolin <barry.margolin@level3.com> writes:
    >In article <bfmiso$i49$1@reader1.panix.com>,
    >J Krugman <jill_krugman@yahoo.com> wrote:
    >>This question is so naive I am almost embarrassed to post it. I
    >>want to write a Perl script for myself that uses several sensitive
    >>passwords. If someone broke into my account it would be bad, but
    >>if someone read this script, they could easily clean me out
    >>financially. What are ways that programmers use to protect sensitive
    >>data that is required for a program to run?
    >Make the user type the password when they run the program.
    >If the program needs several passwords, and you don't want him to have to
    >enter them all, you could put them in an encrypted file, and just have him
    >enter the key to decrypt that file.
    This is the part I need help with. Can you suggest any software/libraries
    that I can use to program this password-based encryption and decryption?

    TIA,

    -Jill
    kynn Guest

  8. #7

    Default Re: Sensitive data in scripts

    kynn wrote in article <bfojoo$930$1@reader1.panix.com> on Thursday 24 July
    2003 14:34 in comp.unix.programmer:
    > This is the part I need help with. Can you suggest any software/libraries
    > that I can use to program this password-based encryption and decryption?
    >
    There's a libcrypt-gpg-perl library which provides an interface to GnuPG for
    perl.

    Sam
    --
    "If sharing a thing in no way diminishes it, it is not rightly owned if it is
    not shared."

    - St Augustine

    Sam Zoghaib Guest

  9. #8

    Default Re: Sensitive data in scripts

    In <bfnlld0mf5@enews3.newsguy.com> [email]phil-news-nospam@ipal.net[/email] writes:
    >A command is used
    >to give the daemon the text key (passphrase) to decrypt the key and
    >it then stores the key in its virtual memory in a way that is not
    >supposed to be swapped out to hard swap space.
    How does one control swapping from within a program?


    J Krugman Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139